New board extensions not supported by VSCode nRF extension?

Hello

When following the guidline of a new way to extend boards, VSCode "Add Build Configuration" is blank. Am I doing something wrong or this is not yet supported by nRF VSCode extension?

Attached is a sample project with the following "board.yaml":

board:
  extend: nrf52840dk
  variants:
    - name: test
      qualifier: nrf52840

extended_board_test.zip

Parents Reply
  • Hi! Kazi is out of office, so I'm replying instead.

    The CMake variable DTS_EXTRA_CPPFLAGS can be used to add more include paths, such as:
    -isystem${ZEPHYR_BASE}/boards/nordic/nrf52840dk

    The ideal place to set this variable would be pre_dt_board.cmake in the board extension directory. However, Zephyr doesn't source this file for board extensions. We have submitted a fix, but it needs more work before it's accepted: https://github.com/zephyrproject-rtos/zephyr/pull/87821


    Alternatively, DTS_EXTRA_CPPFLAGS can be set like any other CMake variable, e.g. before find_package(Zephyr) or on command-line. It's also one of the few variables allowed in snippets.

Children
Related