Commit f3503373 authored by Stefan Tauner's avatar Stefan Tauner

makefile: allow to disable all default-yes config variables with CONFIG_NOTHING=yes

All credit for this should be given to Patrick Georgi (see r1869).

Corresponding to flashrom svn r1944.
Signed-off-by: default avatarStefan Tauner <>
Acked-by: default avatarCarl-Daniel Hailfinger <>
parent 8d0d53fd
......@@ -642,6 +642,16 @@ CONFIG_CH341A_SPI ?= yes
# Disable wiki printing by default. It is only useful if you have wiki access.
# Disable all features if CONFIG_NOTHING=yes is given unless CONFIG_EVERYTHING was also set
ifeq ($(CONFIG_NOTHING), yes)
ifeq ($(CONFIG_EVERYTHING), yes)
$(error Setting CONFIG_NOTHING=yes and CONFIG_EVERYTHING=yes does not make sense)
$(foreach var, $(filter CONFIG_%, $(.VARIABLES)),\
$(if $(filter yes, $($(var))),\
$(eval $(var)=no)))
# Enable all features if CONFIG_EVERYTHING=yes is given
ifeq ($(CONFIG_EVERYTHING), yes)
$(foreach var, $(filter CONFIG_%, $(.VARIABLES)),\
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment