- include option_table.h when it is created, and that's HAVE_OPTION_TABLE
authorStefan Reinauer <stepan@coresystems.de>
Mon, 29 Mar 2010 21:50:53 +0000 (21:50 +0000)
committerStefan Reinauer <stepan@openbios.org>
Mon, 29 Mar 2010 21:50:53 +0000 (21:50 +0000)
- add some __PRE_RAM__ guards where needed
- use OPTION_TABLE_H

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5317 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/arch/i386/Makefile.inc
src/include/fallback.h
src/include/pc80/mc146818rtc.h

index 8d3e509670e7f25703b55988c3db9b3234d23d20..2712f7dd81617f98693db6ce8f7324b5cbe0950d 100644 (file)
@@ -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 $@
 
index 4af826616a16515c335fa9e0744834128cf7c31d..b639452bac1f1a5df29b75e96c346ea1861e9900 100644 (file)
@@ -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);
index 9fb04c220a6b003415c3a1d9297d614b85307d0e..4172a4a28ab6626c4478cf34bb6a3277d020fe8e 100644 (file)
 #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);