Browse Source

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

* Properly handle not finding a shield in the board roots.
xmkb
Peter Johanson 3 years ago
parent
commit
d01bc6afc6
  1. 5
      app/cmake/ZephyrBuildConfig.cmake

5
app/cmake/ZephyrBuildConfig.cmake

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

Loading…
Cancel
Save