Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 1 | ## CONFIG_XIP_ROM_SIZE must be a power of 2. |
| 2 | default CONFIG_XIP_ROM_SIZE = 64 * 1024 |
Carl-Daniel Hailfinger | b5e10bc | 2009-04-21 00:16:06 +0000 | [diff] [blame] | 3 | include /config/nofailovercalculation.lb |
| 4 | default CONFIG_ROM_PAYLOAD = 1 |
arch import user (historical) | ef03afa | 2005-07-06 17:15:30 +0000 | [diff] [blame] | 5 | |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 6 | arch i386 end |
arch import user (historical) | ef03afa | 2005-07-06 17:15:30 +0000 | [diff] [blame] | 7 | |
| 8 | |
| 9 | ## |
| 10 | ## Build the objects we have code for in this directory. |
| 11 | ## |
| 12 | |
| 13 | driver mainboard.o |
| 14 | |
| 15 | #dir /drivers/ati/ragexl |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 16 | |
Yinghai Lu | 968bbe8 | 2005-12-06 23:34:09 +0000 | [diff] [blame] | 17 | #needed by irq_tables and mptable and acpi_tables |
| 18 | object get_bus_conf.o |
| 19 | |
Myles Watson | b8e2027 | 2009-10-15 13:35:47 +0000 | [diff] [blame] | 20 | if CONFIG_GENERATE_MP_TABLE object mptable.o end |
| 21 | if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end |
arch import user (historical) | 6ca7636 | 2005-07-06 17:17:25 +0000 | [diff] [blame] | 22 | |
Myles Watson | b8e2027 | 2009-10-15 13:35:47 +0000 | [diff] [blame] | 23 | if CONFIG_GENERATE_ACPI_TABLES |
Myles Watson | 34b1d4e | 2009-03-10 20:56:54 +0000 | [diff] [blame] | 24 | object acpi_tables.o |
| 25 | makerule dsdt.c |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 26 | depends "$(CONFIG_MAINBOARD)/dsdt.dsl" |
| 27 | action "iasl -p $(CURDIR)/dsdt -tc $(CONFIG_MAINBOARD)/dsdt.dsl" |
Myles Watson | 34b1d4e | 2009-03-10 20:56:54 +0000 | [diff] [blame] | 28 | action "mv dsdt.hex dsdt.c" |
| 29 | end |
| 30 | object ./dsdt.o |
| 31 | #./ssdt.o is moved to northbridge/amd/amdk8/Config.lb |
| 32 | #./fadt.o is moved to southbridge/nvidia/ck804/Config.lb |
| 33 | end |
| 34 | |
arch import user (historical) | 6ca7636 | 2005-07-06 17:17:25 +0000 | [diff] [blame] | 35 | if CONFIG_USE_INIT |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 36 | makerule ./auto.o |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 37 | depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h" |
| 38 | action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) -I$(TOP)/src -I. -c $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@" |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 39 | end |
| 40 | else |
| 41 | makerule ./auto.inc |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 42 | depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h" |
| 43 | action "$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(TOP)/src -I. -c -S $(CONFIG_MAINBOARD)/cache_as_ram_auto.c -o $@" |
Stefan Reinauer | 4ed326b | 2008-11-28 12:09:17 +0000 | [diff] [blame] | 44 | action "perl -e 's/\.rodata/.rom.data/g' -pi $@" |
| 45 | action "perl -e 's/\.text/.section .rom.text/g' -pi $@" |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 46 | end |
arch import user (historical) | 6ca7636 | 2005-07-06 17:17:25 +0000 | [diff] [blame] | 47 | end |
| 48 | |
arch import user (historical) | ef03afa | 2005-07-06 17:15:30 +0000 | [diff] [blame] | 49 | ## |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 50 | ## Build our 16 bit and 32 bit coreboot entry code |
arch import user (historical) | ef03afa | 2005-07-06 17:15:30 +0000 | [diff] [blame] | 51 | ## |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 52 | if CONFIG_USE_FALLBACK_IMAGE |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 53 | mainboardinit cpu/x86/16bit/entry16.inc |
| 54 | ldscript /cpu/x86/16bit/entry16.lds |
Stefan Reinauer | 806e146 | 2005-12-01 10:54:44 +0000 | [diff] [blame] | 55 | end |
| 56 | |
arch import user (historical) | ef03afa | 2005-07-06 17:15:30 +0000 | [diff] [blame] | 57 | mainboardinit cpu/x86/32bit/entry32.inc |
arch import user (historical) | 6ca7636 | 2005-07-06 17:17:25 +0000 | [diff] [blame] | 58 | |
arch import user (historical) | 6ca7636 | 2005-07-06 17:17:25 +0000 | [diff] [blame] | 59 | if CONFIG_USE_INIT |
| 60 | ldscript /cpu/x86/32bit/entry32.lds |
| 61 | end |
| 62 | |
| 63 | if CONFIG_USE_INIT |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 64 | ldscript /cpu/amd/car/cache_as_ram.lds |
arch import user (historical) | 6ca7636 | 2005-07-06 17:17:25 +0000 | [diff] [blame] | 65 | end |
arch import user (historical) | ef03afa | 2005-07-06 17:15:30 +0000 | [diff] [blame] | 66 | |
| 67 | ## |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 68 | ## Build our reset vector (This is where coreboot is entered) |
arch import user (historical) | ef03afa | 2005-07-06 17:15:30 +0000 | [diff] [blame] | 69 | ## |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 70 | if CONFIG_USE_FALLBACK_IMAGE |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 71 | mainboardinit cpu/x86/16bit/reset16.inc |
| 72 | ldscript /cpu/x86/16bit/reset16.lds |
arch import user (historical) | ef03afa | 2005-07-06 17:15:30 +0000 | [diff] [blame] | 73 | else |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 74 | mainboardinit cpu/x86/32bit/reset32.inc |
| 75 | ldscript /cpu/x86/32bit/reset32.lds |
arch import user (historical) | ef03afa | 2005-07-06 17:15:30 +0000 | [diff] [blame] | 76 | end |
| 77 | |
arch import user (historical) | ef03afa | 2005-07-06 17:15:30 +0000 | [diff] [blame] | 78 | ## |
| 79 | ## Include an id string (For safe flashing) |
| 80 | ## |
Patrick Georgi | 436f99b | 2009-11-27 16:55:13 +0000 | [diff] [blame^] | 81 | mainboardinit arch/i386/lib/id.inc |
| 82 | ldscript /arch/i386/lib/id.lds |
arch import user (historical) | ef03afa | 2005-07-06 17:15:30 +0000 | [diff] [blame] | 83 | |
| 84 | ## |
| 85 | ## ROMSTRAP table for CK804 |
| 86 | ## |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 87 | if CONFIG_USE_FALLBACK_IMAGE |
arch import user (historical) | ef03afa | 2005-07-06 17:15:30 +0000 | [diff] [blame] | 88 | mainboardinit southbridge/nvidia/ck804/romstrap.inc |
| 89 | ldscript /southbridge/nvidia/ck804/romstrap.lds |
| 90 | end |
| 91 | |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 92 | ## |
| 93 | ## Setup Cache-As-Ram |
| 94 | ## |
| 95 | mainboardinit cpu/amd/car/cache_as_ram.inc |
arch import user (historical) | 6ca7636 | 2005-07-06 17:17:25 +0000 | [diff] [blame] | 96 | |
arch import user (historical) | ef03afa | 2005-07-06 17:15:30 +0000 | [diff] [blame] | 97 | ### |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 98 | ### This is the early phase of coreboot startup |
arch import user (historical) | ef03afa | 2005-07-06 17:15:30 +0000 | [diff] [blame] | 99 | ### Things are delicate and we test to see if we should |
| 100 | ### failover to another image. |
| 101 | ### |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 102 | if CONFIG_USE_FALLBACK_IMAGE |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 103 | ldscript /arch/i386/lib/failover.lds |
arch import user (historical) | 6ca7636 | 2005-07-06 17:17:25 +0000 | [diff] [blame] | 104 | end |
arch import user (historical) | ef03afa | 2005-07-06 17:15:30 +0000 | [diff] [blame] | 105 | |
| 106 | ### |
| 107 | ### O.k. We aren't just an intermediary anymore! |
| 108 | ### |
| 109 | |
| 110 | ## |
| 111 | ## Setup RAM |
| 112 | ## |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 113 | if CONFIG_USE_INIT |
| 114 | initobject auto.o |
| 115 | else |
| 116 | mainboardinit ./auto.inc |
| 117 | end |
arch import user (historical) | 6ca7636 | 2005-07-06 17:17:25 +0000 | [diff] [blame] | 118 | |
arch import user (historical) | ef03afa | 2005-07-06 17:15:30 +0000 | [diff] [blame] | 119 | ## |
Myles Watson | a67c354c | 2008-09-18 15:30:42 +0000 | [diff] [blame] | 120 | ## Include the secondary Configuration files |
arch import user (historical) | ef03afa | 2005-07-06 17:15:30 +0000 | [diff] [blame] | 121 | ## |
Stefan Reinauer | 3081bdf | 2009-04-01 13:43:21 +0000 | [diff] [blame] | 122 | config chip.h |
arch import user (historical) | ef03afa | 2005-07-06 17:15:30 +0000 | [diff] [blame] | 123 | |
Myles Watson | a3d6ea8 | 2009-10-06 20:36:34 +0000 | [diff] [blame] | 124 | include devicetree.cb |