Skip to content

Commit 48321ef

Browse files
tejlmandMaureenHelm
authored andcommitted
shield: cmake: adjust if(EXISTS <shield>.conf) to check for right file
Fixes: #32269 This commit is a followup to #31877 where the `${shield_dir}/${s_dir}` was adjusted to `${SHIELD_DIR_${s}}` to ensure only including shields and not boards in list of known shields. An `if(EXISTS ${shield_dir}/${s_dir}...)` was missed in this process which causes #32269. This is corrected in this commit. Signed-off-by: Torsten Rasmussen <[email protected]>
1 parent 3955540 commit 48321ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/app/boilerplate.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ foreach(root ${BOARD_ROOT})
349349
)
350350

351351
# search for shield/shield.conf file
352-
if(EXISTS ${shield_dir}/${s_dir}/${s}.conf)
352+
if(EXISTS ${SHIELD_DIR_${s}}/${s}.conf)
353353
# add shield.conf to the shield config list
354354
list(APPEND
355355
shield_conf_files

0 commit comments

Comments
 (0)