diff options
author | Julius Werner <jwerner@chromium.org> | 2019-03-05 16:55:15 -0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-03-07 17:15:30 +0000 |
commit | eab2a29c8bb0fafebd398cf60425dee37df27820 (patch) | |
tree | 419dab747e0148442c1a7ac7082fcfe37784ea27 /payloads/coreinfo/coreinfo.c | |
parent | b431833c129e0d6402c6f7be8e6028e4b54e94fb (diff) |
payloads: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX)
This patch is a raw application of
find payloads/ -type f | \
xargs sed -i -e 's/IS_ENABLED\s*(CONFIG_/CONFIG(/g'
Change-Id: I883b03b189f59b5d998a09a2596b0391a2d5cf33
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/31775
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'payloads/coreinfo/coreinfo.c')
-rw-r--r-- | payloads/coreinfo/coreinfo.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/payloads/coreinfo/coreinfo.c b/payloads/coreinfo/coreinfo.c index 718c58972f..649bfde837 100644 --- a/payloads/coreinfo/coreinfo.c +++ b/payloads/coreinfo/coreinfo.c @@ -28,34 +28,34 @@ extern struct coreinfo_module cbfs_module; extern struct coreinfo_module timestamps_module; struct coreinfo_module *system_modules[] = { -#if IS_ENABLED(CONFIG_MODULE_CPUINFO) +#if CONFIG(MODULE_CPUINFO) &cpuinfo_module, #endif -#if IS_ENABLED(CONFIG_MODULE_PCI) +#if CONFIG(MODULE_PCI) &pci_module, #endif -#if IS_ENABLED(CONFIG_MODULE_NVRAM) +#if CONFIG(MODULE_NVRAM) &nvram_module, #endif -#if IS_ENABLED(CONFIG_MODULE_RAMDUMP) +#if CONFIG(MODULE_RAMDUMP) &ramdump_module, #endif }; struct coreinfo_module *firmware_modules[] = { -#if IS_ENABLED(CONFIG_MODULE_COREBOOT) +#if CONFIG(MODULE_COREBOOT) &coreboot_module, #endif -#if IS_ENABLED(CONFIG_MODULE_MULTIBOOT) +#if CONFIG(MODULE_MULTIBOOT) &multiboot_module, #endif -#if IS_ENABLED(CONFIG_MODULE_BOOTLOG) +#if CONFIG(MODULE_BOOTLOG) &bootlog_module, #endif -#if IS_ENABLED(CONFIG_MODULE_CBFS) +#if CONFIG(MODULE_CBFS) &cbfs_module, #endif -#if IS_ENABLED(CONFIG_MODULE_TIMESTAMPS) +#if CONFIG(MODULE_TIMESTAMPS) ×tamps_module, #endif }; @@ -114,7 +114,7 @@ static void print_submenu(struct coreinfo_cat *cat) mvwprintw(menuwin, 0, 0, menu); } -#if IS_ENABLED(CONFIG_SHOW_DATE_TIME) +#if CONFIG(SHOW_DATE_TIME) static void print_time_and_date(void) { struct tm tm; @@ -149,7 +149,7 @@ static void print_menu(void) mvwprintw(menuwin, 1, 0, menu); -#if IS_ENABLED(CONFIG_SHOW_DATE_TIME) +#if CONFIG(SHOW_DATE_TIME) print_time_and_date(); #endif } @@ -253,7 +253,7 @@ static void loop(void) while (1) { int ch = -1; -#if IS_ENABLED(CONFIG_SHOW_DATE_TIME) +#if CONFIG(SHOW_DATE_TIME) print_time_and_date(); wrefresh(menuwin); #endif @@ -291,7 +291,7 @@ int main(void) { int i, j; - if (IS_ENABLED(CONFIG_LP_USB)) + if (CONFIG(LP_USB)) usb_initialize(); initscr(); |