summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKevin Mills <43148204+sifivekevin@users.noreply.github.com>2019-01-24 14:14:33 -0800
committerGitHub <noreply@github.com>2019-01-24 14:14:33 -0800
commitf82706303f259afcc37b1b842d989a6978192803 (patch)
tree6fcea9114703ea9e3bd270bd200af6a76a406adb /Makefile
parent402f4e6176ef77131ec555e14e23d4220c2ffd75 (diff)
parent95ef0ba8ef47aa12dc650c760cf5a13b1c44eae9 (diff)
Merge pull request #155 from sifive/list-options-target
List options target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 5dcc215..c81fae8 100644
--- a/Makefile
+++ b/Makefile
@@ -104,19 +104,25 @@ 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)
# 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/*))))
-
+ @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-options: list-programs list-boards
+ @echo done
endif