From 28956117d173b478d6e47b570aa05ea38d605976 Mon Sep 17 00:00:00 2001 From: Nathaniel Graff Date: Thu, 14 Mar 2019 14:22:51 -0700 Subject: BSPs are any directory with settings.mk Signed-off-by: Nathaniel Graff --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1769d44..c513359 100644 --- a/Makefile +++ b/Makefile @@ -106,11 +106,12 @@ clean: # format or fixed text of the output without consulting the # Freedom Studio dev team. ############################################################# -# -# Metal boards are any folders that aren't the Legacy BSP or update-targets.sh -EXCLUDE_TARGET_DIRS = drivers env include libwrap update-targets.sh + +# Finds all directories in bsp/ with settings.mk, extracts the name of those directories, and sorts them +ALL_TARGETS = $(sort $(patsubst $(TARGET_ROOT)/bsp/%/,%,$(dir $(shell find $(TARGET_ROOT)/bsp -name settings.mk)))) + list-targets: - @echo bsp-list: $(sort $(filter-out $(EXCLUDE_TARGET_DIRS),$(notdir $(wildcard bsp/*)))) + @echo bsp-list: $(ALL_TARGETS) # Metal programs are any submodules in the software folder list-programs: -- cgit v1.2.3