Lines Matching full:shield

7 # This module will validate the SHIELD argument.
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
22 # If the SHIELD variable is changed after this module completes,
35 # Check that SHIELD has not changed.
36 zephyr_check_cache(SHIELD WATCH)
38 if(SHIELD)
39 message(STATUS "Shield(s): ${SHIELD}")
42 if(DEFINED SHIELD)
43 string(REPLACE " " ";" SHIELD_AS_LIST "${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
52 # finding shields, e.g. x_nucleo_iks01a1/Kconfig.shield
53 file(GLOB_RECURSE shields_refs_list ${shield_dir}/*/Kconfig.shield)
55 # The above gives a list of Kconfig.shield files, like this:
57 # x_nucleo_iks01a1/Kconfig.shield;x_nucleo_iks01a2/Kconfig.shield
59 # we construct a list of shield names by extracting the directories
60 # from each file and looking for <shield>.overlay files in there.
61 # Each overlay corresponds to a shield. We obtain the shield name by
63 # We also create a SHIELD_DIR_${name} variable for each shield's directory.
68 get_filename_component(shield ${overlay} NAME_WE)
69 list(APPEND SHIELD_LIST ${shield})
70 set(SHIELD_DIR_${shield} ${shield_path})
76 if(DEFINED SHIELD)
82 list(REMOVE_ITEM SHIELD-NOTFOUND ${s})
84 # Add <shield>.overlay to the shield_dts_files output variable.
90 # Add the shield's directory to the SHIELD_DIRS output variable.
96 # Search for shield/shield.conf file
117 # Prepare shield usage command printing.
119 # - User specifies an invalid SHIELD
123 if(DEFINED SHIELD AND NOT (SHIELD-NOTFOUND STREQUAL ""))
127 foreach (s ${SHIELD-NOTFOUND})
128 message("No shield named '${s}' found")
134 message(FATAL_ERROR "Invalid SHIELD; see above.")
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.