This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to specify BOARD from other than command line in NCS2.8.0

I work NCS2.8.0.

In NCS2.6.0, there was no problem if I put the BOARD settings in CMakeLists.txt and ran "west build".

However, in NCS2.8.0, an error occurs. (undefined BOARD)

I want to write the BOARD settings in a file and keep them. Please tell me how to set the BOARD from a source other than the command line.

Parents Reply
  • Is this an example of putting
    set(BOARD qemu_x86)
    at the beginning of CMakeLists.txt?
    This works fine, but I still need to specify the board with
    west build -b qemu_x86.
    My concern is that it's redundant to specify both the board name in west and the board name in set.
    Is there a way to build by just specifying BOARD in CMakeLists.txt, as was possible with ncs2.6.0?

Children
Related