2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2018-09-28 00:10:22 +08:00
|
|
|
string(REPLACE ";" " " BOARD_ROOT_SPACE_SEPARATED "${BOARD_ROOT}")
|
2019-01-14 23:11:15 +08:00
|
|
|
string(REPLACE ";" " " SHIELD_LIST_SPACE_SEPARATED "${SHIELD_LIST}")
|
2018-09-28 00:10:22 +08:00
|
|
|
|
2017-10-27 21:43:34 +08:00
|
|
|
add_custom_target(
|
|
|
|
usage
|
2018-04-25 15:17:18 +08:00
|
|
|
${CMAKE_COMMAND}
|
2020-02-25 18:42:00 +08:00
|
|
|
-DZEPHYR_BASE=${ZEPHYR_BASE}
|
2018-09-28 00:10:22 +08:00
|
|
|
-DBOARD_ROOT_SPACE_SEPARATED=${BOARD_ROOT_SPACE_SEPARATED}
|
2019-01-14 23:11:15 +08:00
|
|
|
-DSHIELD_LIST_SPACE_SEPARATED=${SHIELD_LIST_SPACE_SEPARATED}
|
2020-02-25 18:42:00 +08:00
|
|
|
-DCMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM}
|
2018-04-25 15:17:18 +08:00
|
|
|
-P ${CMAKE_CURRENT_SOURCE_DIR}/usage.cmake
|
2017-10-27 21:43:34 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
# NB: The reason it is 'usage' and not help is that CMake already
|
|
|
|
# defines a target 'help'
|