From dcfebac3f6cc15a074c1f2c1f506a454daa2e574 Mon Sep 17 00:00:00 2001 From: Kevin Mills Date: Thu, 24 Jan 2019 13:41:54 -0800 Subject: Make list-options target for Freedom Studio to parse. --- Makefile | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.1-18-gbd029 From af5cde7e6bf14e0c8d1cb943776b73719c5590b4 Mon Sep 17 00:00:00 2001 From: Kevin Mills Date: Thu, 24 Jan 2019 13:50:14 -0800 Subject: Do this more efficiently and with less duplication. --- Makefile | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.1-18-gbd029 From 95ef0ba8ef47aa12dc650c760cf5a13b1c44eae9 Mon Sep 17 00:00:00 2001 From: Kevin Mills Date: Thu, 24 Jan 2019 13:54:27 -0800 Subject: make it clear --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4482edf..c81fae8 100644 --- a/Makefile +++ b/Makefile @@ -111,9 +111,9 @@ clean: # 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 +EXCLUDE_BOARD_DIRS = drivers env include libwrap update-targets.sh list-boards: @echo bsp-list: $(sort $(filter-out $(EXCLUDE_BOARD_DIRS),$(notdir $(wildcard bsp/*)))) -- cgit v1.2.1-18-gbd029