summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKevin Mills <kevin.mills@sifive.com>2019-01-24 13:41:54 -0800
committerKevin Mills <kevin.mills@sifive.com>2019-01-24 13:41:54 -0800
commitdcfebac3f6cc15a074c1f2c1f506a454daa2e574 (patch)
tree68114a54ee06d38121872c2e3c606f9567953a33 /Makefile
parent402f4e6176ef77131ec555e14e23d4220c2ffd75 (diff)
Make list-options target for Freedom Studio to parse.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 15 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 5dcc215..f34c8d2 100644
--- a/Makefile
+++ b/Makefile
@@ -108,15 +108,27 @@ clean:
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
+
+# MEE boards are any folders that aren't the Legacy BSP or update-targets.sh
list-boards:
- @echo $(sort $(filter-out $(EXCLUDE_BOARD_DIRS),$(notdir $(wildcard bsp/*))))
+ @echo bsp-list: $(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/.*\///')
+ @echo program-list: $(shell grep -o '= software/.*$$' .gitmodules | sed -r 's/.*\///')
+
+
+# List all available MEE boards and programs in a form that Freedom Studio
+# knows how to parse. Do not change the format or fixed text of the output
+# without consulting the Freedom Studio dev team.
+# MEE programs are any submodules in the software folder
+# MEE boards are any folders that aren't the Legacy BSP or update-targets.sh
+list-options:
+ @echo program-list: $(shell grep -o '= software/.*$$' .gitmodules | sed -r 's/.*\///')
+ @echo bsp-list: $(sort $(filter-out $(EXCLUDE_BOARD_DIRS),$(notdir $(wildcard bsp/*))))
+ @echo done
endif