Skip to content

Commit c85b0bf

Browse files
Add boot/zephyr/Kconfig reference to module.yml
Adding a reference in module.yml to the boot/zephyr/Kconfig will define the MCUBOOT symbol before it is used/extended elsewhere. Building with `west build -p always -b nrf52840dk_nrf52840 mcuboot/samples/zephyr_external_config` fails with: Parsing /home/zephyr/mcuboot_dev/zephyr/Kconfig /home/zephyr/mcuboot_dev/zephyr/scripts/kconfig/kconfig.py: /home/zephyr/mcuboot_dev/mcuboot/boot/zephyr/Kconfig:674: recursive 'source' of 'Kconfig.zephyr' detected. Check that environment variables are set correctly. Include path: /home/zephyr/mcuboot_dev/zephyr/Kconfig:8 Kconfig.zephyr:39 modules/Kconfig:13 /home/zephyr/mcuboot_dev/build/Kconfig/Kconfig.modules:2 /home/zephyr/mcuboot_dev/mcuboot/boot/zephyr/Kconfig:674 CMake Error at /home/zephyr/mcuboot_dev/zephyr/cmake/modules/kconfig.cmake:326 (message): command failed with return code: 1 Call Stack (most recent call first): /home/zephyr/mcuboot_dev/zephyr/cmake/modules/zephyr_default.cmake:108 (include) /home/zephyr/mcuboot_dev/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include) /home/zephyr/mcuboot_dev/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate) CMakeLists.txt:6 (find_package) Building with `west build -p always -b nrf52840dk_nrf52840 mcuboot/boot/zephyr` now fails with: Parsing /home/zephyr/mcuboot_dev/mcuboot/boot/zephyr/Kconfig /home/zephyr/mcuboot_dev/zephyr/scripts/kconfig/kconfig.py: /home/zephyr/mcuboot_dev/build/Kconfig/Kconfig.modules:2: recursive 'source' of '/home/zephyr/mcuboot_dev/mcuboot/boot/zephyr/Kconfig' detected. Check that environment variables are set correctly. Include path: /home/zephyr/mcuboot_dev/mcuboot/boot/zephyr/Kconfig:674 Kconfig.zephyr:39 modules/Kconfig:13 /home/zephyr/mcuboot_dev/build/Kconfig/Kconfig.modules:2 CMake Error at /home/zephyr/mcuboot_dev/zephyr/cmake/modules/kconfig.cmake:326 (message): command failed with return code: 1 Call Stack (most recent call first): /home/zephyr/mcuboot_dev/zephyr/cmake/modules/zephyr_default.cmake:108 (include) /home/zephyr/mcuboot_dev/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include) /home/zephyr/mcuboot_dev/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate) CMakeLists.txt:44 (find_package) Signed-off-by: Gregory SHUE <[email protected]>
1 parent 986efe7 commit c85b0bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

zephyr/module.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ samples:
22
- boot/zephyr
33
build:
44
cmake: ./boot/bootutil/zephyr
5+
kconfig: ./boot/zephyr/Kconfig

0 commit comments

Comments
 (0)