From c1fa61057c18e7d0a81ad127c67080e171f87756 Mon Sep 17 00:00:00 2001 From: Michael Zimmermann Date: Mon, 30 Sep 2024 21:23:09 +0200 Subject: [PATCH] cmake: modules: dts: print stderr on failure 059aae7c916 actually hid error messages completely instead of making them more visible. db7a3901bde 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 --- cmake/modules/dts.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/dts.cmake b/cmake/modules/dts.cmake index 19b168c74858e..6722c88ff5047 100644 --- a/cmake/modules/dts.cmake +++ b/cmake/modules/dts.cmake @@ -398,7 +398,7 @@ execute_process( ) if(NOT "${ret}" STREQUAL "0") - message(FATAL_ERROR "dtc failed with return code: ${ret}") + message(FATAL_ERROR "dtc failed with return code: ${ret}\n${stderr}") elseif(stderr) # dtc printed warnings on stderr but did not fail. # Display them as CMake warnings to draw attention.