summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8ac9564..120c9a4 100644
--- a/Makefile
+++ b/Makefile
@@ -103,6 +103,24 @@ help:
clean:
#############################################################
+# Enumerate MEE BSPs and Programs
+#############################################################
+
+ifeq ($(BSP),mee)
+
+# MEE boards are any folders that aren't the Legacy BSP or update-targets.sh
+EXCLUDE_BOARD_DIRS = drivers env include libwrap update-targets.sh
+list-boards:
+ @echo $(sort $(filter-out $(EXCLUDE_BOARD_DIRS),$(notdir $(wildcard bsp/*))))
+
+
+# MEE programs are any submodules in the software folder
+list-programs:
+ @echo $(shell grep -o '= software/.*$$' .gitmodules | sed -r 's/.*\///')
+
+endif
+
+#############################################################
# Compiles an instance of the MEE targeted at $(BOARD)
#############################################################
ifeq ($(BSP),mee)