diff options
author | Nathaniel Graff <nathaniel.graff@sifive.com> | 2019-01-16 13:41:44 -0800 |
---|---|---|
committer | Nathaniel Graff <nathaniel.graff@sifive.com> | 2019-01-18 10:22:29 -0800 |
commit | 198911b52db2dd2f516c2e38f81a08a1557ba34e (patch) | |
tree | 10be8809528de2fbd51e461ec962bd698fefbd4f /Makefile | |
parent | 2a379b789c1bcba4934e0fe1da4017f07bc703be (diff) |
Enumerate MEE boards and programs
Make targets `list-boards` and `list-programs` will enumerate the
available boards and programs for use with Freedom Metal
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
Diffstat (limited to 'Makefile')
-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) |