zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.66k stars 6.53k forks source link

Out Of Tree Board sample doesn't take correct files #56262

Closed berkutta closed 1 year ago

berkutta commented 1 year ago

Describe the bug Building the Out Of Tree Board sample doesn't seem to use the Out of Tree configuration. Instead it uses the SDK configuration.

To Reproduce Steps to reproduce the behavior:

  1. west build -b nrf52840dk_nrf52840

Expected behavior It should use the configuration within the boards folder.

Logs and console output

➜  out_of_tree_board git:(f8f1133823) ✗ west build -b nrf52840dk_nrf52840                     
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/user/ncs/zephyr/samples/application_development/out_of_tree_board
-- Found Python3: /usr/bin/python3.10 (found suitable exact version "3.10.10") found components: Interpreter 
-- Cache files will be written to: /home/user/.cache/zephyr
-- Zephyr version: 3.2.99 (/home/user/ncs/zephyr)
-- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
-- Board: nrf52840dk_nrf52840
-- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
-- Found host-tools: zephyr 0.15.2 (/home/user/zephyr-sdk-0.15.2)
-- Found toolchain: zephyr 0.15.2 (/home/user/zephyr-sdk-0.15.2)
-- Found Dtc: /home/user/zephyr-sdk-0.15.2/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") 
-- Found BOARD.dts: /home/user/ncs/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Generated zephyr.dts: /home/user/ncs/zephyr/samples/application_development/out_of_tree_board/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/user/ncs/zephyr/samples/application_development/out_of_tree_board/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/user/ncs/zephyr/samples/application_development/out_of_tree_board/build/zephyr/dts.cmake
Parsing /home/user/ncs/zephyr/Kconfig
Loaded configuration '/home/user/ncs/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig'
Merged configuration '/home/user/ncs/zephyr/samples/application_development/out_of_tree_board/prj.conf'
Configuration saved to '/home/user/ncs/zephyr/samples/application_development/out_of_tree_board/build/zephyr/.config'
Kconfig header saved to '/home/user/ncs/zephyr/samples/application_development/out_of_tree_board/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/user/zephyr-sdk-0.15.2/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Configuring done (2.4s)
-- Generating done (0.0s)
-- Build files have been written to: /home/user/ncs/zephyr/samples/application_development/out_of_tree_board/build
-- west build: building application
[1/170] Preparing syscall dependency handling

[2/170] Generating include/generated/version.h
-- Zephyr version: 3.2.99 (/home/user/ncs/zephyr), build: v3.2.99-ncs2-34-gf8f113382356
[160/170] Linking C executable zephyr/zephyr_pre0.elf

[164/170] Linking C executable zephyr/zephyr_pre1.elf

[170/170] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       22868 B         1 MB      2.18%
             RAM:        7616 B       256 KB      2.91%
        IDT_LIST:          0 GB         2 KB      0.00%

Environment (please complete the following information):

nordicjm commented 1 year ago

You are using ncs which is not zephyr, can you reproduce this in upstream zephyr without ncs and see if it exists there, if not, close this issue and report it on https://devzone.nordicsemi.com/ Issue exists upstream