From e6a538710d14e6b444fca276795861632be984b6 Mon Sep 17 00:00:00 2001 From: crasbe Date: Fri, 7 Feb 2025 23:21:08 +0100 Subject: [PATCH 1/2] Makefile.include: perform checks for all relevant targets Co-authored-by: mguetschow --- Makefile.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.include b/Makefile.include index dcea932fa1..2b4de05c96 100644 --- a/Makefile.include +++ b/Makefile.include @@ -934,7 +934,7 @@ include $(RIOTMAKE)/tools/targets.inc.mk include $(RIOTMAKE)/usb-codes.inc.mk # Warn if the selected board and drivers don't provide all needed features: -ifneq (, $(filter all flash, $(if $(MAKECMDGOALS), $(MAKECMDGOALS), all))) +ifeq (, $(filter help generate-Makefile.ci, $(MAKECMDGOALS))) EXPECT_ERRORS := # Test if there where dependencies against a module in DISABLE_MODULE. From 91dae97d7cc012837516dd6b3271e8a2ddb22bb7 Mon Sep 17 00:00:00 2001 From: crasbe Date: Mon, 10 Feb 2025 14:00:05 +0100 Subject: [PATCH 2/2] Makefile.include: Update help command to avoid checks Co-authored-by: mguetschow --- Makefile.include | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.include b/Makefile.include index 2b4de05c96..ab7309978a 100644 --- a/Makefile.include +++ b/Makefile.include @@ -1012,7 +1012,8 @@ endif help: # filter all targets starting with lowercase and containing lowercase letters, hyphens, or underscores; explicitly include generate-Makefile.ci - @$(MAKE) -qp | sed -ne 's/\(^[a-z][a-z_-]*\|generate-Makefile.ci\):.*/\1/p' | sort -u + # inspired by: https://stackoverflow.com/a/26339924 + @LC_ALL=C $(MAKE) -pRrq -f $(firstword $(MAKEFILE_LIST)) : 2>/dev/null | sed -ne 's/\(^[a-z][a-z_-]*\|generate-Makefile.ci\):.*/\1/p' | sort -u ifeq (iotlab-m3,$(BOARD)) ifneq (,$(filter iotlab-%,$(MAKECMDGOALS)))