You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
zephyr: use REQUIRED in dt_nodelabel calls to fail early and with meaningful message
When the devicetree was missing a label, I'd get this kind of errors,
which were not very helpful:
CMake Error at workspace/zephyr/cmake/modules/extensions.cmake:3979 (message):
dt_prop(erase_size_slot1 ...) missing required argument: PATH
Call Stack (most recent call first):
CMakeLists.txt:496 (dt_prop)
The new error message looks like this:
CMake Error at workspace/zephyr/cmake/modules/extensions.cmake:3748 (message):
required nodelabel not found: slot1_partition
Signed-off-by: Benedek Kupper <[email protected]>
dt_prop(slot1_size PATH"${slot1_flash}" PROPERTY "reg" INDEX 1)
501
501
dt_get_parent(slot1_flash)
502
502
dt_get_parent(slot1_flash)
@@ -556,12 +556,12 @@ endif()
556
556
if(SYSBUILD)
557
557
if(CONFIG_SINGLE_APPLICATION_SLOT OR CONFIG_BOOT_FIRMWARE_LOADER OR CONFIG_BOOT_SWAP_USING_SCRATCH OR CONFIG_BOOT_SWAP_USING_MOVE OR CONFIG_BOOT_SWAP_USING_OFFSET OR CONFIG_BOOT_UPGRADE_ONLY OR CONFIG_BOOT_DIRECT_XIP OR CONFIG_BOOT_RAM_LOAD)
0 commit comments