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 <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/31774 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
committed by
Patrick Georgi
parent
b3a8cc54db
commit
cd49cce7b7
@ -32,7 +32,7 @@
|
||||
#include <reset.h>
|
||||
#include <boot/tables.h>
|
||||
#include <program_loading.h>
|
||||
#if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME)
|
||||
#if CONFIG(HAVE_ACPI_RESUME)
|
||||
#include <arch/acpi.h>
|
||||
#endif
|
||||
#include <timer.h>
|
||||
@ -81,7 +81,7 @@ struct boot_state {
|
||||
boot_state_t (*run_state)(void *arg);
|
||||
void *arg;
|
||||
int complete : 1;
|
||||
#if IS_ENABLED(CONFIG_HAVE_MONOTONIC_TIMER)
|
||||
#if CONFIG(HAVE_MONOTONIC_TIMER)
|
||||
struct boot_state_times times;
|
||||
#endif
|
||||
};
|
||||
@ -179,7 +179,7 @@ static boot_state_t bs_post_device(void *arg)
|
||||
|
||||
static boot_state_t bs_os_resume_check(void *arg)
|
||||
{
|
||||
#if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME)
|
||||
#if CONFIG(HAVE_ACPI_RESUME)
|
||||
void *wake_vector;
|
||||
|
||||
wake_vector = acpi_find_wakeup_vector();
|
||||
@ -198,7 +198,7 @@ static boot_state_t bs_os_resume_check(void *arg)
|
||||
|
||||
static boot_state_t bs_os_resume(void *wake_vector)
|
||||
{
|
||||
#if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME)
|
||||
#if CONFIG(HAVE_ACPI_RESUME)
|
||||
arch_bootstate_coreboot_exit();
|
||||
acpi_resume(wake_vector);
|
||||
#endif
|
||||
@ -238,7 +238,7 @@ static boot_state_t bs_payload_boot(void *arg)
|
||||
return BS_PAYLOAD_BOOT;
|
||||
}
|
||||
|
||||
#if IS_ENABLED(CONFIG_HAVE_MONOTONIC_TIMER)
|
||||
#if CONFIG(HAVE_MONOTONIC_TIMER)
|
||||
static void bs_sample_time(struct boot_state *state)
|
||||
{
|
||||
struct mono_time *mt;
|
||||
@ -267,7 +267,7 @@ static inline void bs_sample_time(struct boot_state *state) {}
|
||||
static inline void bs_report_time(struct boot_state *state) {}
|
||||
#endif
|
||||
|
||||
#if IS_ENABLED(CONFIG_TIMER_QUEUE)
|
||||
#if CONFIG(TIMER_QUEUE)
|
||||
static void bs_run_timers(int drain)
|
||||
{
|
||||
/* Drain all timer callbacks until none are left, if directed.
|
||||
@ -295,7 +295,7 @@ static void bs_call_callbacks(struct boot_state *state,
|
||||
phase->callbacks = bscb->next;
|
||||
bscb->next = NULL;
|
||||
|
||||
#if IS_ENABLED(CONFIG_DEBUG_BOOT_STATE)
|
||||
#if CONFIG(DEBUG_BOOT_STATE)
|
||||
printk(BIOS_DEBUG, "BS: callback (%p) @ %s.\n",
|
||||
bscb, bscb->location);
|
||||
#endif
|
||||
@ -339,7 +339,7 @@ static void bs_walk_state_machine(void)
|
||||
break;
|
||||
}
|
||||
|
||||
if (IS_ENABLED(CONFIG_DEBUG_BOOT_STATE))
|
||||
if (CONFIG(DEBUG_BOOT_STATE))
|
||||
printk(BIOS_DEBUG, "BS: Entering %s state.\n",
|
||||
state->name);
|
||||
|
||||
@ -359,7 +359,7 @@ static void bs_walk_state_machine(void)
|
||||
|
||||
next_id = state->run_state(state->arg);
|
||||
|
||||
if (IS_ENABLED(CONFIG_DEBUG_BOOT_STATE))
|
||||
if (CONFIG(DEBUG_BOOT_STATE))
|
||||
printk(BIOS_DEBUG, "BS: Exiting %s state.\n",
|
||||
state->name);
|
||||
|
||||
@ -367,7 +367,7 @@ static void bs_walk_state_machine(void)
|
||||
|
||||
bs_call_callbacks(state, current_phase.seq);
|
||||
|
||||
if (IS_ENABLED(CONFIG_DEBUG_BOOT_STATE))
|
||||
if (CONFIG(DEBUG_BOOT_STATE))
|
||||
printk(BIOS_DEBUG,
|
||||
"----------------------------------------\n");
|
||||
|
||||
@ -448,7 +448,7 @@ void main(void)
|
||||
|
||||
/* TODO: Understand why this is here and move to arch/platform code. */
|
||||
/* For MMIO UART this needs to be called before any other printk. */
|
||||
if (IS_ENABLED(CONFIG_ARCH_X86))
|
||||
if (CONFIG(ARCH_X86))
|
||||
init_timer();
|
||||
|
||||
/* console_init() MUST PRECEDE ALL printk()! Additionally, ensure
|
||||
@ -470,7 +470,7 @@ void main(void)
|
||||
post_code(POST_ENTRY_RAMSTAGE);
|
||||
|
||||
/* Handoff sleep type from romstage. */
|
||||
#if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME)
|
||||
#if CONFIG(HAVE_ACPI_RESUME)
|
||||
acpi_is_wakeup();
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user