Skip to content

Commit c1fa610

Browse files
committed
cmake: modules: dts: print stderr on failure
059aae7 actually hid error messages completely instead of making them more visible. db7a390 restored that for some processes, but not for dtc itself. Without this patch, a device tree error like a missing `reg` property failed the build without showing the reason. Signed-off-by: Michael Zimmermann <[email protected]>
1 parent 8fda052 commit c1fa610

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/dts.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ execute_process(
398398
)
399399

400400
if(NOT "${ret}" STREQUAL "0")
401-
message(FATAL_ERROR "dtc failed with return code: ${ret}")
401+
message(FATAL_ERROR "dtc failed with return code: ${ret}\n${stderr}")
402402
elseif(stderr)
403403
# dtc printed warnings on stderr but did not fail.
404404
# Display them as CMake warnings to draw attention.

0 commit comments

Comments
 (0)