[flashrom] [commit] r1944 - trunk
repository service
svn at flashrom.org
Sat Feb 27 00:51:22 CET 2016
Author: stefanct
Date: Sat Feb 27 00:51:21 2016
New Revision: 1944
URL: http://flashrom.org/trac/flashrom/changeset/1944
Log:
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).
Signed-off-by: Stefan Tauner <stefan.tauner at alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
Modified:
trunk/Makefile
Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile Thu Feb 25 21:10:26 2016 (r1943)
+++ trunk/Makefile Sat Feb 27 00:51:21 2016 (r1944)
@@ -642,6 +642,16 @@
# Disable wiki printing by default. It is only useful if you have wiki access.
CONFIG_PRINT_WIKI ?= no
+# 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)
+ endif
+ $(foreach var, $(filter CONFIG_%, $(.VARIABLES)),\
+ $(if $(filter yes, $($(var))),\
+ $(eval $(var)=no)))
+endif
+
# Enable all features if CONFIG_EVERYTHING=yes is given
ifeq ($(CONFIG_EVERYTHING), yes)
$(foreach var, $(filter CONFIG_%, $(.VARIABLES)),\
More information about the flashrom
mailing list