This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf9160 - configuring with west and different board always results in the same zeyhyr_settings.txt

Hi DevZone Team,

 when I use west to configure a project, build/zephyr_settings.txt always contains

"BOARD_ROOT":"/home/user/test/nrf"
"DTS_ROOT":"/home/user/test/nrf"

I would assume that when I configure with "west build -t nrf9160dk_nrf9160ns" the resulting build/zephyr_settings.txt contains:

"BOARD_ROOT":"/home/user/test/zephyr"
"DTS_ROOT":"/home/user/test/zephyr"

as the board nrf9160dk_nrf9160 is to be found in /home/user/test/zephyr/boards/arm

Could you explain why BOARD_ROOT is pointing to the nrf directory?

Regards

Stefan

Parents Reply
  • This comment from zephyr/cmake/app/boilerplate.cmake should explain it:

    # 'BOARD_ROOT' is a prioritized list of directories where boards may
    # be found. It always includes ${ZEPHYR_BASE} at the lowest priority.
    zephyr_file(APPLICATION_ROOT BOARD_ROOT)
    list(APPEND BOARD_ROOT ${ZEPHYR_BASE})

    In other words, nrf/zephyr/module.yml sets the BOARD_ROOT to point to nrf, so the boards defined in nrf is included, in addition to the boards defined in zephyr.

Children
No Data
Related