Lines Matching +full:if +full:- +full:no +full:- +full:files +full:- +full:found
1 # SPDX-License-Identifier: Apache-2.0
9 # If a shield implementation is not found for one of the specified shields, an
14 # - shield_conf_files: List of shield-specific Kconfig fragments
15 # - shield_dts_files : List of shield-specific devicetree files
16 # - SHIELD_AS_LIST : A CMake list of shields created from the SHIELD variable.
17 # - SHIELD_DIRS : A CMake list of directories which contain shield definitions
20 # - shields: when invoked, a list of valid shields will be printed
22 # If the SHIELD variable is changed after this module completes,
26 # - BOARD_ROOT: CMake list of board roots containing board implementations
29 # use only, and may be removed, renamed, or re-purposed without prior notice.
38 if(SHIELD)
42 if(DEFINED SHIELD)
45 # SHIELD-NOTFOUND is a real CMake list, from which valid shields can be popped.
47 set(SHIELD-NOTFOUND ${SHIELD_AS_LIST})
51 # Match the Kconfig.shield files in the shield directories to make sure we are
55 # The above gives a list of Kconfig.shield files, like this:
60 # from each file and looking for <shield>.overlay files in there.
75 # Process shields in-order
76 if(DEFINED SHIELD)
78 if(NOT ${s} IN_LIST SHIELD_LIST)
82 list(REMOVE_ITEM SHIELD-NOTFOUND ${s})
97 if(EXISTS ${SHIELD_DIR_${s}}/${s}.conf)
104 # Add board-specific .conf and .overlay files to their
119 # - User specifies an invalid SHIELD
120 # - User invokes '<build-command> shields' target
123 if(DEFINED SHIELD AND NOT (SHIELD-NOTFOUND STREQUAL ""))
127 foreach (s ${SHIELD-NOTFOUND})
128 message("No shield named '${s}' found")
137 # Prepend each shield with COMMAND <cmake> -E echo <shield>" for printing.
138 # Each shield is printed as new command because build files are not fond of newlines.
139 list(TRANSFORM SHIELD_LIST PREPEND "COMMAND;${CMAKE_COMMAND};-E;echo;"