From 50aab5d27ce541f643a0797ca79ac4507cb06a8e Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Thu, 14 Jan 2021 22:54:53 +0100 Subject: [PATCH] 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 --- cmake/app/boilerplate.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/app/boilerplate.cmake b/cmake/app/boilerplate.cmake index 3d49838995..1f03b0f8f0 100644 --- a/cmake/app/boilerplate.cmake +++ b/cmake/app/boilerplate.cmake @@ -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