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:
parent
1785129a3d
commit
50aab5d27c
|
@ -343,6 +343,11 @@ foreach(root ${BOARD_ROOT})
|
||||||
${SHIELD_DIR_${s}}/dts_fixup.h
|
${SHIELD_DIR_${s}}/dts_fixup.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
list(APPEND
|
||||||
|
SHIELD_DIRS
|
||||||
|
${SHIELD_DIR_${s}}
|
||||||
|
)
|
||||||
|
|
||||||
# search for shield/shield.conf file
|
# search for shield/shield.conf file
|
||||||
if(EXISTS ${shield_dir}/${s_dir}/${s}.conf)
|
if(EXISTS ${shield_dir}/${s_dir}/${s}.conf)
|
||||||
# add shield.conf to the shield config list
|
# add shield.conf to the shield config list
|
||||||
|
|
Loading…
Reference in a new issue