diff options
-rw-r--r-- | Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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) |