From 5f3d0eab4dfa110467a879489afbcf87da6b06ab Mon Sep 17 00:00:00 2001 From: cladmi Date: Tue, 18 Sep 2018 16:19:03 +0200 Subject: [PATCH] Makefile.include: also detect features and blacklist on flash Now also print warnings if there are missing features or a blacklisted board when doing 'make flash' Before, only when doing 'make' or 'make all' the FEATURES_REQUIRED, BOARD_BLACKLIST/WHITELIST and TOOLCHAINS were checked and a warning was printed. However as 'flash' triggers 'all' it is a common case to do 'make flash' directly instead of 'make all flash'. So better also print warnings in this case. --- Makefile.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.include b/Makefile.include index 313385ba21..18abfdc4c1 100644 --- a/Makefile.include +++ b/Makefile.include @@ -567,7 +567,7 @@ include $(RIOTMAKE)/vars.inc.mk include $(RIOTMAKE)/tools/targets.inc.mk # Warn if the selected board and drivers don't provide all needed features: -ifneq (, $(filter all, $(if $(MAKECMDGOALS), $(MAKECMDGOALS), all))) +ifneq (, $(filter all flash, $(if $(MAKECMDGOALS), $(MAKECMDGOALS), all))) EXPECT_ERRORS := EXPECT_CONFLICT :=