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
The Zephyr build system expects CMakeLists.txt to be only
in directories beneath the module-level CMakeLists.txt. The
solution most consistent with Zephyr led to putting the
subsystem-specific build logic within the `zephyr/` subdirectory.
This also led to relocating the `boot/bootutil/zephyr/CMakelists.txt`.
It also led to adding an explicit `name:` setting in `module.yml`
to ensure files can consistently reference the module independent of
where the module is mounted.
Created a module-level CMakeLists.txt for extending the include paths
to find "mcuboot-mbedtls-cfg.h" within the boot/zephyr component.
Incremental verification:
1. (Pass) west build -p always -b nrf52840dk_nrf52840 mcuboot/boot/zephyr
2. (Pass) ./zephyr/scripts/twister --testsuite-root zephyr/tests/subsys/dfu
3. (Pass) ./zephyr/scripts/twister --testsuite-root zephyr/samples/subsys/mgmt/mcumgr/smp_svr/
4. (Pass) ./zephyr/scripts/twister --testsuite-root mcuboot/boot/zephyr
5. (FAIL) ./zephyr/scripts/twister --testsuite-root mcuboot/samples/zephyr_exernal_config
This new sample is expected to fail while we evolve the minimum
implementation to support it.
Currently the build failure message is:
'''
...
/home/zephyr/zephyr-sdk-0.15.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/libzephyr.a(image_validate.c.obj): in function `bootutil_find_key':
/home/zephyr/mcuboot_dev/mcuboot/boot/bootutil/src/image_validate.c:215: undefined reference to `bootutil_key_cnt'
/home/zephyr/zephyr-sdk-0.15.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.bfd: /home/zephyr/mcuboot_dev/mcuboot/boot/bootutil/src/image_validate.c:215: undefined reference to `bootutil_keys'
/home/zephyr/zephyr-sdk-0.15.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/libzephyr.a(image_validate.c.obj): in function `bootutil_img_validate':
/home/zephyr/mcuboot_dev/mcuboot/boot/bootutil/src/image_validate.c:530: undefined reference to `bootutil_key_cnt'
/home/zephyr/zephyr-sdk-0.15.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/libzephyr.a(image_rsa.c.obj): in function `bootutil_verify_sig':
/home/zephyr/mcuboot_dev/mcuboot/boot/bootutil/src/image_rsa.c:316: undefined reference to `bootutil_keys'
collect2: error: ld returned 1 exit status
'''
Signed-off-by: Gregory SHUE <[email protected]>
0 commit comments