summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKevin Mills <kevin.mills@sifive.com>2019-01-24 13:50:14 -0800
committerKevin Mills <kevin.mills@sifive.com>2019-01-24 13:50:14 -0800
commitaf5cde7e6bf14e0c8d1cb943776b73719c5590b4 (patch)
tree4662c28b7abe2dfbe95a34c7f96eb86de1e3ed7c /Makefile
parentdcfebac3f6cc15a074c1f2c1f506a454daa2e574 (diff)
Do this more efficiently and with less duplication.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 6 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index f34c8d2..4482edf 100644
--- a/Makefile
+++ b/Makefile
@@ -104,30 +104,24 @@ clean:
#############################################################
# Enumerate MEE BSPs and Programs
+#
+# 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.
#############################################################
-
ifeq ($(BSP),mee)
-
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 bsp-list: $(sort $(filter-out $(EXCLUDE_BOARD_DIRS),$(notdir $(wildcard bsp/*))))
-
# MEE programs are any submodules in the software folder
list-programs:
@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/*))))
+list-options: list-programs list-boards
@echo done
endif