boards: shields: add shield directories to SHIELD_DIRS

Keep a list of shield directories for use in other parts of the build
system.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
Henrik Brix Andersen 2021-01-14 22:54:53 +01:00 committed by Carles Cufí
parent 1785129a3d
commit 50aab5d27c

View file

@ -343,6 +343,11 @@ foreach(root ${BOARD_ROOT})
${SHIELD_DIR_${s}}/dts_fixup.h
)
list(APPEND
SHIELD_DIRS
${SHIELD_DIR_${s}}
)
# search for shield/shield.conf file
if(EXISTS ${shield_dir}/${s_dir}/${s}.conf)
# add shield.conf to the shield config list