From d21b03fe543aa090b6abf0a43633b721592a37d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= Date: Tue, 30 Apr 2019 16:40:39 +0200 Subject: [PATCH 1/2] makefiles/app_dirs.inc.mk: declare info-applications .PHONY --- makefiles/app_dirs.inc.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/makefiles/app_dirs.inc.mk b/makefiles/app_dirs.inc.mk index f39f261065..2a2c12ae18 100644 --- a/makefiles/app_dirs.inc.mk +++ b/makefiles/app_dirs.inc.mk @@ -1,3 +1,5 @@ +.PHONY: info-applications + # fallback so empty RIOTBASE won't lead to "/examples/" RIOTBASE ?= . From 79814b6ca9c9c7620bb078f977c0a62980f9f488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= Date: Tue, 30 Apr 2019 16:41:33 +0200 Subject: [PATCH 2/2] makefiles/app_dirs.inc.mk: target to list supported applications/boards Slow implementation to list all supported boards. It is adapted from what `.murdock` does without the `toolchain` handling. --- makefiles/app_dirs.inc.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/makefiles/app_dirs.inc.mk b/makefiles/app_dirs.inc.mk index 2a2c12ae18..6404b63894 100644 --- a/makefiles/app_dirs.inc.mk +++ b/makefiles/app_dirs.inc.mk @@ -1,4 +1,4 @@ -.PHONY: info-applications +.PHONY: info-applications info-applications-supported-boards # fallback so empty RIOTBASE won't lead to "/examples/" RIOTBASE ?= . @@ -15,3 +15,9 @@ APPLICATION_DIRS := $(sort $(patsubst ./%,%,$(patsubst %/,%,$(dir $(wildcard \ info-applications: @for dir in $(APPLICATION_DIRS); do echo $$dir; done + +# All applications / board output of `info-boards-supported`. +info-applications-supported-boards: + @for dir in $(APPLICATION_DIRS); do \ + make --no-print-directory -C $${dir} info-boards-supported 2>/dev/null | xargs -n 1 echo $${dir}; \ + done