mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-05 11:15:56 +00:00
Rather than specifying SHIELD via Kconfig, we move it to being specified via the command line, similar to board. So we can do: -DSHIELD=x_nucleo_iks01a1 or, for multiple shields: -DSHIELD="x_nucleo_iks01a1 frdm_kw41z" Following cmake change, update x_nucleo_iks01a1 sample in order not to enable CONFIG option anymore but set SHIELD cmake option. Last, update documentation to reflect this change. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org> Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
14 lines
449 B
CMake
14 lines
449 B
CMake
string(REPLACE ";" " " BOARD_ROOT_SPACE_SEPARATED "${BOARD_ROOT}")
|
|
string(REPLACE ";" " " SHIELD_LIST_SPACE_SEPARATED "${SHIELD_LIST}")
|
|
|
|
add_custom_target(
|
|
usage
|
|
${CMAKE_COMMAND}
|
|
-DBOARD_ROOT_SPACE_SEPARATED=${BOARD_ROOT_SPACE_SEPARATED}
|
|
-DSHIELD_LIST_SPACE_SEPARATED=${SHIELD_LIST_SPACE_SEPARATED}
|
|
-P ${CMAKE_CURRENT_SOURCE_DIR}/usage.cmake
|
|
)
|
|
|
|
# NB: The reason it is 'usage' and not help is that CMake already
|
|
# defines a target 'help'
|