From 859e808709c352210eb1ad92bf805e3c36c06ec5 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Fri, 30 Nov 2012 12:03:46 -0800 Subject: [PATCH] Make set_boot_successful depend on PC80_SYSTEM Set_boot_successful depends on CMOS parts that non-PC80 platforms do not have. For now, make the current path depend on CONFIG_PC80_SYSTEM, and make the alternative empty. Signed-off-by: Ronald G. Minnich Signed-off-by: Stefan Reinauer Change-Id: I68cf63367c8054d09a7a22303e7c04fb35ad0153 Reviewed-on: http://review.coreboot.org/1954 Tested-by: build bot (Jenkins) Reviewed-by: David Hendricks --- src/include/fallback.h | 1 - src/lib/fallback_boot.c | 11 +++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/include/fallback.h b/src/include/fallback.h index ffcbafb6e1..7f3c82310b 100644 --- a/src/include/fallback.h +++ b/src/include/fallback.h @@ -3,7 +3,6 @@ #if !defined(__ASSEMBLER__) && !defined(__PRE_RAM__) -void set_boot_successful(void); void boot_successful(void); #endif /* __ASSEMBLER__ */ diff --git a/src/lib/fallback_boot.c b/src/lib/fallback_boot.c index b5ec6c3030..ce1ba851fe 100644 --- a/src/lib/fallback_boot.c +++ b/src/lib/fallback_boot.c @@ -1,11 +1,12 @@ #include #include #include -#include #include +#if CONFIG_PC80_SYSTEM +#include -void set_boot_successful(void) +static void set_boot_successful(void) { /* Remember I succesfully booted by setting * the initial boot direction @@ -25,6 +26,12 @@ void set_boot_successful(void) byte &= 0x0f; outb(byte, RTC_PORT(1)); } +#else +static void set_boot_successful(void) +{ + /* To be implemented */ +} +#endif void boot_successful(void) {