From ac9311a47a3f39ddbfe0e6baa59ffda1c300bb46 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Tue, 7 Aug 2018 16:25:26 +0200 Subject: [PATCH] makefiles/info.inc.mk: provide info targets about toolchain support --- makefiles/info.inc.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/makefiles/info.inc.mk b/makefiles/info.inc.mk index 0eb1bf46df..7003ce4784 100644 --- a/makefiles/info.inc.mk +++ b/makefiles/info.inc.mk @@ -1,7 +1,8 @@ .PHONY: info-objsize info-buildsizes info-build info-boards-supported \ info-features-missing info-modules info-cpu \ info-features-provided info-features-required \ - info-debug-variable-% + info-debug-variable-% info-toolchains-supported \ + check-toolchain-supported info-objsize: @case "$(SORTROW)" in \ @@ -130,3 +131,9 @@ info-features-missing: info-debug-variable-%: @echo $($*) + +info-toolchains-supported: + @echo $(filter-out $(TOOLCHAINS_BLACKLIST),$(TOOLCHAINS_SUPPORTED)) + +check-toolchain-supported: + @exit $(if $(filter $(TOOLCHAIN),$(filter-out $(TOOLCHAINS_BLACKLIST),$(TOOLCHAINS_SUPPORTED))),0,1)