diff options
author | Martin Roth <gaumless@gmail.com> | 2015-07-11 13:42:54 -0600 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2015-07-12 18:14:23 +0200 |
commit | c4e49f62621429a363b092d1a6df11d2cf380465 (patch) | |
tree | f94744175c6dea9ccf4e7ac207a6b97da8464364 /src/lib | |
parent | d139c48a23cd308caef4e79aeedd03f6392d6847 (diff) |
Change #ifdef and #if defined CONFIG_ bools to #if IS_ENABLED()
Kconfigs symbols of type bool are always defined, and can be tested with
the IS_ENABLED() macro.
symbol type except string.
Change-Id: Ic4ba79f519ee2a53d39c10859bbfa9c32015b19d
Signed-off-by: Martin Roth <gaumless@gmail.com>
Reviewed-on: http://review.coreboot.org/10885
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/ramstage.ld | 2 | ||||
-rw-r--r-- | src/lib/rmodule.ld | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ramstage.ld b/src/lib/ramstage.ld index 402f495714..432df40da6 100644 --- a/src/lib/ramstage.ld +++ b/src/lib/ramstage.ld @@ -34,7 +34,7 @@ _etext = .; } : to_load -#ifdef CONFIG_COVERAGE +#if IS_ENABLED(CONFIG_COVERAGE) .ctors : { . = ALIGN(0x100); __CTOR_LIST__ = .; diff --git a/src/lib/rmodule.ld b/src/lib/rmodule.ld index 0e9c8804e8..e6b4da717a 100644 --- a/src/lib/rmodule.ld +++ b/src/lib/rmodule.ld @@ -30,7 +30,7 @@ SECTIONS /* C read-only data. */ . = ALIGN(16); -#ifdef CONFIG_COVERAGE +#if IS_ENABLED(CONFIG_COVERAGE) __CTOR_LIST__ = .; *(.ctors); LONG(0); |