This patch adds legacybios to buildrom. It has some options hardcoded in
[buildrom.git] / buildrom-devel / packages / legacybios / hardcode.diff
blob97c22104a6eb6ecc5fd75a69e46c3ce6b12dda8b
1 diff --git a/src/config.h b/src/config.h
2 index 4ae23dc..5ed9799 100644
3 --- a/src/config.h
4 +++ b/src/config.h
5 @@ -14,17 +14,17 @@
6 #endif
8 // Configure as a payload coreboot payload.
9 -#define CONFIG_COREBOOT 0
10 +#define CONFIG_COREBOOT 1
12 -#define CONFIG_DEBUG_SERIAL 0
13 +#define CONFIG_DEBUG_SERIAL 1
15 -#define CONFIG_FLOPPY_SUPPORT 1
16 +#define CONFIG_FLOPPY_SUPPORT 1
17 #define CONFIG_PS2_MOUSE 1
18 #define CONFIG_ATA 1
19 #define CONFIG_KBD_CALL_INT15_4F 1
20 #define CONFIG_CDROM_BOOT 1
21 #define CONFIG_CDROM_EMU 1
22 -#define CONFIG_PCIBIOS 1
23 +#define CONFIG_PCIBIOS 0
25 /* define it if the (emulated) hardware supports SMM mode */
26 #define CONFIG_USE_SMM 1
27 diff --git a/src/post.c b/src/post.c
28 index a6f7c3d..7890d65 100644
29 --- a/src/post.c
30 +++ b/src/post.c
31 @@ -83,7 +83,7 @@ ram_probe(void)
32 u32 rs;
33 if (CONFIG_COREBOOT) {
34 // XXX - just hardcode for now.
35 - rs = 128*1024*1024;
36 + rs = 128*1024*1024;
37 } else {
38 // On emulators, get memory size from nvram.
39 rs = (inb_cmos(CMOS_MEM_EXTMEM2_LOW)