summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2019-04-06 16:16:36 +0200
committerNico Huber <nico.h@gmx.de>2019-06-04 13:33:40 +0000
commit12f0e42cb4e66f0ebe198b051be31b68d876d2e5 (patch)
tree133eaf48f14071b698f6b2fab70505b2d43be300
parent2dbc09567780b7d1bbb311dff5b2789b5c2184a4 (diff)
downloadcoreboot-12f0e42cb4e66f0ebe198b051be31b68d876d2e5.tar.gz
coreboot-12f0e42cb4e66f0ebe198b051be31b68d876d2e5.tar.bz2
coreboot-12f0e42cb4e66f0ebe198b051be31b68d876d2e5.zip
kconfig: Drop IS_ENABLED() macro
We keep its definition in libpayload, though, to maintain compatibility with existing payload code. For now. Change-Id: I8fc0d0136ba2316ef393c5c17f2b3ac3a9c6328d Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32230 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
-rw-r--r--Documentation/getting_started/kconfig.md2
-rw-r--r--src/include/kconfig.h1
2 files changed, 0 insertions, 3 deletions
diff --git a/Documentation/getting_started/kconfig.md b/Documentation/getting_started/kconfig.md
index 249fd4600e9f..852ca08bf94f 100644
--- a/Documentation/getting_started/kconfig.md
+++ b/Documentation/getting_started/kconfig.md
@@ -1165,8 +1165,6 @@ saved .config file. As always, a 'select' statement overrides any specified
- coreboot has added the glob operator '*' for the 'source' keyword.
- coreboot’s Kconfig always defines variables except for strings. In other
Kconfig implementations, bools set to false/0/no are not defined.
-- IS_ENABLED() is ‘false’ for undefined variables and ‘0’ variables. In Linux
- (where the macro comes from) it’s ‘true’ as soon as the variable is defined.
- coreboot’s version of Kconfig adds the KCONFIG_STRICT environment variable to
error out if there are any issues in the Kconfig files. In the Linux kernel,
Kconfig will generate a warning, but will still output an updated .config or
diff --git a/src/include/kconfig.h b/src/include/kconfig.h
index 0478548d5987..50ef3022935b 100644
--- a/src/include/kconfig.h
+++ b/src/include/kconfig.h
@@ -17,7 +17,6 @@
#define __config_enabled(arg1_or_junk) ___config_enabled(arg1_or_junk 1, 0, 0)
#define ___config_enabled(__ignored, val, ...) val
-#define IS_ENABLED(option) config_enabled(option) /* deprecated */
#define CONFIG(option) config_enabled(CONFIG_##option)
#endif