Revert 5762. It silently broke a lot of boards because abuild was broken.
authorMyles Watson <mylesgw@gmail.com>
Thu, 2 Sep 2010 18:29:31 +0000 (18:29 +0000)
committerMyles Watson <mylesgw@gmail.com>
Thu, 2 Sep 2010 18:29:31 +0000 (18:29 +0000)
Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5764 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/include/pc80/mc146818rtc.h
src/mainboard/amd/dbm690t/Kconfig
src/pc80/Makefile.inc
src/pc80/mc146818rtc.c
src/pc80/mc146818rtc_early.c

index 032e3858bf8312f4467240e8ee8caf2657a61199..0abb2a6b4b5f91437f9c3d5a6ca7631402dcc687 100644 (file)
 #define PC_CKS_RANGE_END       45
 #define PC_CKS_LOC             46
 
+/* coreboot cmos checksum is usually only built over bytes 49..125
+ * LB_CKS_RANGE_START, LB_CKS_RANGE_END and LB_CKS_LOC are defined
+ * in option_table.h
+ */
+#if CONFIG_HAVE_OPTION_TABLE
+#include <option_table.h>
+#endif
+
 #ifndef UTIL_BUILD_OPTION_TABLE
 #include <arch/io.h>
 static inline unsigned char cmos_read(unsigned char addr)
index f9d61072f98c06011b659ff4a0e8b1d7f9027341..224a0be890c2dd831f4fcaf8ee8e905084702145 100644 (file)
@@ -25,6 +25,12 @@ config MAINBOARD_DIR
        string
        default amd/dbm690t
 
+# This is a temporary fix, and should be removed when the race condition for
+# building option_table.h is fixed.
+config WARNINGS_ARE_ERRORS
+       bool
+       default n
+
 config DCACHE_RAM_BASE
        hex
        default 0xc8000
index fe7e8e87508c875891e767ddc871242629ad8e5d..b7890f56b626abc28d3a999c543cdfec7f433cff 100644 (file)
@@ -8,4 +8,3 @@ initobj-$(CONFIG_CACHE_AS_RAM) += serial.o
 subdirs-y += vga
 
 $(obj)/pc80/mc146818rtc.o : $(OPTION_TABLE_H)
-$(obj)/pc80/mc146818rtc_early.initobj.o : $(OPTION_TABLE_H)
index d32b8623170fc333fb550a0a0c4f0acd9bc68246..23b834c06ad5994b3cdb0606392424e84e27a355 100644 (file)
@@ -2,9 +2,6 @@
 #include <pc80/mc146818rtc.h>
 #include <boot/coreboot_tables.h>
 #include <string.h>
-#if CONFIG_USE_OPTION_TABLE
-#include <option_table.h>
-#endif
 
 /* control registers - Moto names
  */
index 9ffb440d1a7c6766550087f143a98bf6e2a864aa..ed1f0926f0ab72c24d544f0e37f43f630cdd39f0 100644 (file)
@@ -1,10 +1,6 @@
 #include <pc80/mc146818rtc.h>
 #include <fallback.h>
 
-#if CONFIG_USE_OPTION_TABLE
-#include <option_table.h>
-#endif
-
 #ifndef CONFIG_MAX_REBOOT_CNT
 #error "CONFIG_MAX_REBOOT_CNT not defined"
 #endif