2019-04-06 15:08:09 +02:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2017-10-27 15:43:34 +02:00
|
|
|
# To avoid a lot of empty CMakeLists.txt files we assume it is not an
|
|
|
|
# error if it is missing
|
|
|
|
|
|
|
|
if(EXISTS ${BOARD_DIR}/CMakeLists.txt)
|
2018-09-27 18:10:22 +02:00
|
|
|
if(USING_OUT_OF_TREE_BOARD)
|
2018-09-27 17:15:24 +02:00
|
|
|
set(build_dir boards/${ARCH}/${BOARD})
|
2018-02-12 05:30:57 +01:00
|
|
|
else()
|
2018-09-27 17:15:24 +02:00
|
|
|
unset(build_dir)
|
2018-02-12 05:30:57 +01:00
|
|
|
endif()
|
2018-09-27 17:15:24 +02:00
|
|
|
|
|
|
|
add_subdirectory(${BOARD_DIR} ${build_dir})
|
2017-10-27 15:43:34 +02:00
|
|
|
endif()
|