diff --git a/src/arch/i386/boot/coreboot_table.c b/src/arch/i386/boot/coreboot_table.c index d956b127a9..6a45e4bac5 100644 --- a/src/arch/i386/boot/coreboot_table.c +++ b/src/arch/i386/boot/coreboot_table.c @@ -185,6 +185,7 @@ static struct lb_mainboard *lb_mainboard(struct lb_header *header) return mainboard; } +#if (CONFIG_HAVE_OPTION_TABLE == 1) static struct cmos_checksum *lb_cmos_checksum(struct lb_header *header) { struct lb_record *rec; @@ -202,6 +203,7 @@ static struct cmos_checksum *lb_cmos_checksum(struct lb_header *header) return cmos_checksum; } +#endif static void lb_strings(struct lb_header *header) { diff --git a/src/pc80/mc146818rtc.c b/src/pc80/mc146818rtc.c index 6978709379..e318167b42 100644 --- a/src/pc80/mc146818rtc.c +++ b/src/pc80/mc146818rtc.c @@ -95,6 +95,7 @@ static inline void cmos_write(unsigned char val, unsigned char addr) outb(val, RTC_BASE_PORT + offs + 1); } +#if CONFIG_HAVE_OPTION_TABLE static int rtc_checksum_valid(int range_start, int range_end, int cks_loc) { int i; @@ -120,6 +121,7 @@ static void rtc_set_checksum(int range_start, int range_end, int cks_loc) cmos_write(((sum >> 8) & 0x0ff), cks_loc); cmos_write(((sum >> 0) & 0x0ff), cks_loc+1); } +#endif #if CONFIG_ARCH_X86 #define RTC_CONTROL_DEFAULT (RTC_24H)