fix(build): Another check w/ upstrream shields.

* Properly handle not finding a shield in the board roots.
This commit is contained in:
Peter Johanson 2022-06-04 05:26:14 +00:00
parent 9a9aef78c7
commit d01bc6afc6

View file

@ -114,8 +114,9 @@ endforeach()
# overlay/conf/keymap files. # overlay/conf/keymap files.
if(DEFINED SHIELD) if(DEFINED SHIELD)
foreach(s ${SHIELD_AS_LIST}) foreach(s ${SHIELD_AS_LIST})
message(STATUS ${SHIELD_DIR_${s}}) if (DEFINED $SHIELD_DIR_${s})
get_filename_component(shield_dir_name ${SHIELD_DIR_${s}} NAME) get_filename_component(shield_dir_name ${SHIELD_DIR_${s}} NAME)
endif()
string(REPLACE "_" ";" S_PIECES ${s}) string(REPLACE "_" ";" S_PIECES ${s})
list(LENGTH S_PIECES S_PIECES_LEN) list(LENGTH S_PIECES S_PIECES_LEN)
while(NOT S_PIECES STREQUAL "") while(NOT S_PIECES STREQUAL "")