Skip to content
Commit 86678000 authored by Benedek Kupper's avatar Benedek Kupper Committed by Jamie
Browse files

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: default avatarBenedek Kupper <kupper.benedek@gmail.com>
parent 351eb15a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment