BOARD_ROOT

I am working with SDK v2.3.0 and a custom board with nRF9160

When I wanted to start my project again after some time, the build configuration had disappeared.

And creating a new one is no longer possible. While building the configuration, the following message appears:


 BOARD_ROOT element without a 'boards' subdirectory:

  /usr
  

But the west command has this option

-DBOARD_ROOT:STRING="c:/Repos/Nordic/YYYYY"

Apparently BOARD_ROOT is being overwritten. What could be the cause of that?

Parents
  • You can try explicitly exporting BOARD_ROOT in your terminal before building:

    export BOARD_ROOT=path/to/your/board

    Also, double-check your west manifest and see if there are any overrides occurring in the west.yml or CMakeLists.txt files. Sometimes the environment variable is overridden by a hard-coded path in the build system.

    This post was last modified: 125-04-2025, 00:26 am by block blast

Reply
  • You can try explicitly exporting BOARD_ROOT in your terminal before building:

    export BOARD_ROOT=path/to/your/board

    Also, double-check your west manifest and see if there are any overrides occurring in the west.yml or CMakeLists.txt files. Sometimes the environment variable is overridden by a hard-coded path in the build system.

    This post was last modified: 125-04-2025, 00:26 am by block blast

Children
No Data
Related