zephyr/cmake
Anas Nashif e172fa3b52 build: support out-of-tree custom boards
This is one way we can support out of tree board definitions. Basically
all this needs is a board definition in the application source directory
that follows the same structure we have in the main Zephyr tree (also
allowing multiple custom boards). An application tree would look like
this for example:

boards/
CMakeLists.txt
prj.conf
README.rst
src/

with boards following the same structure as in Zephyr:

.
├── boards
│   └── x86
│       └── arduino_101
│           ├── doc
│           │   └── img
│           └── support
└── src

To use this, you need to specify the BOARD_ROOT variable on the command
line when building:

cmake -DBOARD=<board name> -DBOARD_ROOT=<path to boards> ..

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-02-14 19:20:29 -05:00
..
app build: support out-of-tree custom boards 2018-02-14 19:20:29 -05:00
compiler toolchain: organise toolchain/compiler files 2018-02-13 07:44:45 -08:00
emu cmake: Use path-corrected version of ZEPHYR_BASE 2018-01-11 14:59:03 -05:00
flash cmake: fix 'ninja flash' et al with multiple boards plugged in 2018-02-02 19:04:00 +01:00
reports scripts: fix ram_reports and generate bin file if missing 2018-01-29 05:16:52 +05:30
toolchain toolchain: organise toolchain/compiler files 2018-02-13 07:44:45 -08:00
usage cmake: Fix "make usage" regression from the ZEPHYR_BASE change 2018-01-18 10:44:19 -05:00
ccache.cmake
dts.cmake build: support out-of-tree custom boards 2018-02-14 19:20:29 -05:00
extensions.cmake build: deprecate ZEPHYR_GCC_VARIANT 2018-02-13 07:44:45 -08:00
extra_flags.cmake cmake: Fix EXTRA_LDFLAGS feature 2017-12-05 08:39:43 -05:00
fpu-for-gcc-m-cpu.cmake
gcc-m-cpu.cmake
hex.cmake
host-tools-zephyr.cmake cmake: sdk: Improve error message when INSTALL_DIR is wrong 2018-01-11 06:39:12 -05:00
host-tools.cmake cmake: do not error on missing 'config' 2018-01-16 17:03:48 -05:00
kconfig.cmake build: support out-of-tree custom boards 2018-02-14 19:20:29 -05:00
pristine.cmake
toolchain.cmake toolchain: organise toolchain/compiler files 2018-02-13 07:44:45 -08:00
version.cmake cmake: Use path-corrected version of ZEPHYR_BASE 2018-01-11 14:59:03 -05:00