From ced7ab66cfb1cc6f311f0ec5737b5d5ba368c3cf Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Mon, 19 Jan 2015 19:52:34 +0000 Subject: Allow to easily build all optional modules This patch adds a CONFIG_EVERYTHING flag to the Makefile that sets all CONFIG_* flags to "yes" if they were "no". This provides a comfortable way to ensure maximum code exposure to tools like coverity[0] or clang's scan-build. [0] https://scan.coverity.com/projects/1020 Corresponding to flashrom svn r1869. Signed-off-by: Patrick Georgi Acked-by: Stefan Tauner Acked-by: Carl-Daniel Hailfinger --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8cb39ed..a36628c 100644 --- a/Makefile +++ b/Makefile @@ -467,6 +467,13 @@ CONFIG_IT8212 ?= yes # Disable wiki printing by default. It is only useful if you have wiki access. CONFIG_PRINT_WIKI ?= no +# Enable all features if CONFIG_EVERYTHING=yes is given +ifeq ($(CONFIG_EVERYTHING), yes) +$(foreach var, $(filter CONFIG_%, $(.VARIABLES)),\ + $(if $(filter no, $($(var))),\ + $(eval $(var)=yes))) +endif + # Bitbanging SPI infrastructure, default off unless needed. ifeq ($(CONFIG_RAYER_SPI), yes) override CONFIG_BITBANG_SPI = yes -- cgit v1.1