zephyr/samples/application_development/out_of_tree_board
Sebastian Bøe d6de4c7a99 cmake: Fall back to ZEPHYR_BASE when the board is not in BOARD_ROOT
It is very inconvenient to maintain an application that both runs on a
Zephyr board and an out-of-tree board.

It forces one to write build scripts like this in the app:

if(BOARD STREQUAL my_out_of_tree_board)
  set(BOARD_ROOT some/out/of/tree/board/path)
endif()

To avoid this we change the semantics of BOARD_ROOT. Instead of it
being a path to the board root it is now a prioritized list of board
root directories. Zephyr will append ZEPHYR_BASE to BOARD_ROOT.

This ensures that Zephyr boards can be used when the out-of-tree board
directory can not supply the requested board.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2018-10-01 09:46:46 -04:00
..
boards/arm/nrf52840_pca10056 arch: nrf52: Remove ARM_MPU_NRF52X option. 2018-09-20 14:16:50 +02:00
src
CMakeLists.txt cmake: Prepend 'cmake_minimum_required()' into 'app' build scripts 2018-08-15 04:06:50 -07:00
README.rst
prj.conf
sample.yaml cmake: Fall back to ZEPHYR_BASE when the board is not in BOARD_ROOT 2018-10-01 09:46:46 -04:00

README.rst

.. _out_of_tree_board:

Out Of Tree Board
#################

Overview
********
A simple example that demonstrates how to place a custom board
definition outside of the Zephyr tree.

For details about custom board definitions see
:ref:`custom_board_definition`.