diff options
author | Michal Marek <mmarek@suse.cz> | 2011-07-20 17:38:57 +0200 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2011-07-29 21:53:30 +0200 |
commit | 2a11c8ea20bf850b3a2c60db8c2e7497d28aba99 (patch) | |
tree | 975a44ccb84f5fb182fa1d6d58025b0cde381965 /Makefile | |
parent | bac6aa865b3dc98e9fbc17f11d4d513d6b0bc435 (diff) | |
download | linux-next-2a11c8ea20bf850b3a2c60db8c2e7497d28aba99.tar.gz |
kconfig: Introduce IS_ENABLED(), IS_BUILTIN() and IS_MODULE()
Replace the config_is_*() macros with a variant that allows for grepping
for usage of CONFIG_* options in the code. Usage:
if (IS_ENABLED(CONFIG_NUMA))
or
#if IS_ENABLED(CONFIG_NUMA)
The IS_ENABLED() macro evaluates to 1 if the argument is set (to either 'y'
or 'm'), IS_BUILTIN() tests if the option is 'y' and IS_MODULE() test if
the option is 'm'. Only boolean and tristate options are supported.
Reviewed-by: Arnaud Lacombe <lacombar@gmail.com>
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -360,7 +360,7 @@ CFLAGS_GCOV = -fprofile-arcs -ftest-coverage LINUXINCLUDE := -I$(srctree)/arch/$(hdr-arch)/include \ -Iarch/$(hdr-arch)/include/generated -Iinclude \ $(if $(KBUILD_SRC), -I$(srctree)/include) \ - -include include/generated/autoconf.h + -include $(srctree)/include/linux/kconfig.h KBUILD_CPPFLAGS := -D__KERNEL__ |