diff options
-rw-r--r-- | src/arch/i386/Makefile.inc | 2 | ||||
-rw-r--r-- | src/include/fallback.h | 2 | ||||
-rw-r--r-- | src/include/pc80/mc146818rtc.h | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/i386/Makefile.inc b/src/arch/i386/Makefile.inc index 8d3e509670..2712f7dd81 100644 --- a/src/arch/i386/Makefile.inc +++ b/src/arch/i386/Makefile.inc @@ -196,7 +196,7 @@ $(obj)/mainboard/$(MAINBOARDDIR)/romstage.inc: $(src)/mainboard/$(MAINBOARDDIR)/ $(ROMCC) -c -S $(ROMCCFLAGS) -D__PRE_RAM__ -I. $(INCLUDES) $< -o $@ else -$(obj)/mainboard/$(MAINBOARDDIR)/ap_romstage.o: $(src)/mainboard/$(MAINBOARDDIR)/ap_romstage.c $(obj)/option_table.h +$(obj)/mainboard/$(MAINBOARDDIR)/ap_romstage.o: $(src)/mainboard/$(MAINBOARDDIR)/ap_romstage.c $(OPTION_TABLE_H) @printf " CC $(subst $(obj)/,,$(@))\n" $(CC) -MMD $(CFLAGS) -I$(src) -I. -c -S $(src)/mainboard/$(MAINBOARDDIR)/ap_romstage.c -o $@ diff --git a/src/include/fallback.h b/src/include/fallback.h index 4af826616a..b639452bac 100644 --- a/src/include/fallback.h +++ b/src/include/fallback.h @@ -1,7 +1,7 @@ #ifndef FALLBACK_H #define FALLBACK_H -#ifndef ASSEMBLY +#if !defined(ASSEMBLY) && !defined(__PRE_RAM__) void set_boot_successful(void); void boot_successful(void); diff --git a/src/include/pc80/mc146818rtc.h b/src/include/pc80/mc146818rtc.h index 9fb04c220a..4172a4a28a 100644 --- a/src/include/pc80/mc146818rtc.h +++ b/src/include/pc80/mc146818rtc.h @@ -82,11 +82,11 @@ #define PC_CKS_LOC 46 /* coreboot cmos checksum is usually only built over bytes 49..125 */ -#ifdef AUTOCONF_INCLUDED +#if CONFIG_HAVE_OPTION_TABLE #include <option_table.h> #endif -#if !defined(ASSEMBLY) +#if !defined(ASSEMBLY) && !defined(__PRE_RAM__) void rtc_init(int invalid); #if CONFIG_USE_OPTION_TABLE == 1 int get_option(void *dest, const char *name); |