Author: stepan Date: Thu Aug 26 14:42:43 2010 New Revision: 5741 URL: https://tracker.coreboot.org/trac/coreboot/changeset/5741
Log: kontron 986lcd-m: Fix compilation if there is no oprom execution at all...
Signed-off-by: Stefan Reinauer stepan@coresystems.de Acked-by: Stefan Reinauer stepan@coresystems.de
Modified: trunk/src/mainboard/kontron/986lcd-m/mainboard.c
Modified: trunk/src/mainboard/kontron/986lcd-m/mainboard.c ============================================================================== --- trunk/src/mainboard/kontron/986lcd-m/mainboard.c Wed Aug 25 20:35:42 2010 (r5740) +++ trunk/src/mainboard/kontron/986lcd-m/mainboard.c Thu Aug 26 14:42:43 2010 (r5741) @@ -21,7 +21,7 @@ #include <device/device.h> #include <console/console.h> #include <boot/tables.h> -#if CONFIG_PCI_OPTION_ROM_RUN_YABEL +#if defined(CONFIG_PCI_OPTION_ROM_RUN_YABEL) && CONFIG_PCI_OPTION_ROM_RUN_YABEL #include <x86emu/x86emu.h> #endif #include <pc80/mc146818rtc.h> @@ -34,7 +34,7 @@ return add_northbridge_resources(mem); }
-#if CONFIG_PCI_OPTION_ROM_RUN_YABEL +#if defined(CONFIG_PCI_OPTION_ROM_RUN_YABEL) && CONFIG_PCI_OPTION_ROM_RUN_YABEL static int int15_handler(void) { #define BOOT_DISPLAY_DEFAULT 0 @@ -228,7 +228,7 @@
static void mainboard_enable(device_t dev) { -#if CONFIG_PCI_OPTION_ROM_RUN_YABEL +#if defined(CONFIG_PCI_OPTION_ROM_RUN_YABEL) && CONFIG_PCI_OPTION_ROM_RUN_YABEL /* Install custom int15 handler for VGA OPROM */ int15_install(); #endif