CMakeLists.txt 336 B

1234567891011121314
  1. # SPDX-License-Identifier: Apache-2.0
  2. # To avoid a lot of empty CMakeLists.txt files we assume it is not an
  3. # error if it is missing
  4. if(EXISTS ${BOARD_DIR}/CMakeLists.txt)
  5. if(USING_OUT_OF_TREE_BOARD)
  6. set(build_dir boards/${ARCH}/${BOARD})
  7. else()
  8. unset(build_dir)
  9. endif()
  10. add_subdirectory(${BOARD_DIR} ${build_dir})
  11. endif()