From cd49cce7b70e80b4acc49b56bb2bb94370b4d867 Mon Sep 17 00:00:00 2001 From: Julius Werner Date: Tue, 5 Mar 2019 16:53:33 -0800 Subject: coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) This patch is a raw application of find src/ -type f | xargs sed -i -e 's/IS_ENABLED\s*(CONFIG_/CONFIG(/g' Change-Id: I6262d6d5c23cabe23c242b4f38d446b74fe16b88 Signed-off-by: Julius Werner Reviewed-on: https://review.coreboot.org/c/coreboot/+/31774 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/drivers/elog/boot_count.c | 2 +- src/drivers/elog/elog.c | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'src/drivers/elog') diff --git a/src/drivers/elog/boot_count.c b/src/drivers/elog/boot_count.c index fd86f39065..97d7098eeb 100644 --- a/src/drivers/elog/boot_count.c +++ b/src/drivers/elog/boot_count.c @@ -26,7 +26,7 @@ * This can either be declared as part of the option * table or statically defined in the board config. */ -#if IS_ENABLED(CONFIG_USE_OPTION_TABLE) +#if CONFIG(USE_OPTION_TABLE) # include "option_table.h" # define BOOT_COUNT_CMOS_OFFSET (CMOS_VSTART_boot_count_offset >> 3) #else diff --git a/src/drivers/elog/elog.c b/src/drivers/elog/elog.c index 0d16b2bed5..85b79983a5 100644 --- a/src/drivers/elog/elog.c +++ b/src/drivers/elog/elog.c @@ -13,14 +13,14 @@ * GNU General Public License for more details. */ -#if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME) +#if CONFIG(HAVE_ACPI_RESUME) #include #endif #include #include #include #include -#if IS_ENABLED(CONFIG_ARCH_X86) +#if CONFIG(ARCH_X86) #include #endif #include @@ -36,7 +36,7 @@ #include "elog_internal.h" -#if IS_ENABLED(CONFIG_ELOG_DEBUG) +#if CONFIG(ELOG_DEBUG) #define elog_debug(STR...) printk(BIOS_DEBUG, STR) #else #define elog_debug(STR...) @@ -207,7 +207,7 @@ static void elog_debug_dump_buffer(const char *msg) struct region_device *rdev; void *buffer; - if (!IS_ENABLED(CONFIG_ELOG_DEBUG)) + if (!CONFIG(ELOG_DEBUG)) return; elog_debug(msg); @@ -628,7 +628,7 @@ static inline u8 *elog_flash_offset_to_address(void) struct elog_state *es = car_get_var_ptr(&g_elog_state); /* Only support memory-mapped devices. */ - if (!IS_ENABLED(CONFIG_BOOT_DEVICE_MEMORY_MAPPED)) + if (!CONFIG(BOOT_DEVICE_MEMORY_MAPPED)) return NULL; if (!region_device_sz(&es->nv_dev)) @@ -651,7 +651,7 @@ int elog_smbios_write_type15(unsigned long *current, int handle) struct elog_state *es = car_get_var_ptr(&g_elog_state); size_t elog_size = region_device_sz(&es->nv_dev); - if (IS_ENABLED(CONFIG_ELOG_CBMEM)) { + if (CONFIG(ELOG_CBMEM)) { /* Save event log buffer into CBMEM for the OS to read */ void *cbmem = cbmem_add(CBMEM_ID_ELOG, elog_size); if (cbmem) @@ -790,7 +790,7 @@ static bool elog_do_add_boot_count(void) if (ENV_SMM) return false; -#if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME) +#if CONFIG(HAVE_ACPI_RESUME) return !acpi_is_wakeup_s3(); #else return true; @@ -802,9 +802,9 @@ static void ramstage_elog_add_boot_count(void) if (elog_do_add_boot_count()) { elog_add_event_dword(ELOG_TYPE_BOOT, boot_count_read()); -#if IS_ENABLED(CONFIG_ARCH_X86) +#if CONFIG(ARCH_X86) /* Check and log POST codes from previous boot */ - if (IS_ENABLED(CONFIG_CMOS_POST)) + if (CONFIG(CMOS_POST)) cmos_post_log(); #endif } @@ -869,7 +869,7 @@ int elog_init(void) */ static void elog_fill_timestamp(struct event_header *event) { -#if IS_ENABLED(CONFIG_RTC) +#if CONFIG(RTC) struct rtc_time time; rtc_get(&time); -- cgit v1.2.3