2 ## This file is part of the coreboot project.
4 ## Copyright (C) 2007-2008 coresystems GmbH
6 ## This program is free software; you can redistribute it and/or
7 ## modify it under the terms of the GNU General Public License as
8 ## published by the Free Software Foundation; version 2 of
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ## GNU General Public License for more details.
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program; if not, write to the Free Software
18 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
23 ## This mainboard requires DCACHE_AS_RAM enabled. It won't work without.
26 driver-y += mainboard.o
28 #needed by irq_tables and mptable and acpi_tables
29 obj-y += get_bus_conf.o
30 obj-$(CONFIG_HAVE_MP_TABLE) += mptable.o
31 obj-$(CONFIG_HAVE_PIRQ_TABLE) += irq_tables.o
32 obj-$(CONFIG_HAVE_ACPI_TABLES) += dsdt.o
33 obj-$(CONFIG_HAVE_ACPI_TABLES) += acpi_tables.o
34 obj-$(CONFIG_HAVE_ACPI_TABLES) += fadt.o
36 #./ssdt.o is in northbridge/amd/amdk8/Config.lb
37 obj-$(CONFIG_ACPI_SSDTX_NUM) += ssdt2.o
38 obj-$(CONFIG_ACPI_SSDTX_NUM) += ssdt3.o
39 obj-$(CONFIG_HAVE_ACPI_TABLES) += ssdt4.o
40 driver-y += ../../../drivers/i2c/i2cmux/i2cmux.o
42 # This is part of the conversion to init-obj and away from included code.
45 # FIXME in $(top)/Makefile
46 crt0-y += ../../../../src/cpu/x86/16bit/entry16.inc
47 crt0-y += ../../../../src/cpu/x86/32bit/entry32.inc
48 crt0-y += ../../../../src/cpu/x86/16bit/reset16.inc
49 crt0-y += ../../../../src/arch/i386/lib/id.inc
50 crt0-y += ../../../../src/cpu/amd/car/cache_as_ram.inc
53 ldscript-y += ../../../../src/arch/i386/init/ldscript_fallback_cbfs.lb
54 ldscript-y += ../../../../src/cpu/x86/16bit/entry16.lds
55 ldscript-y += ../../../../src/cpu/x86/16bit/reset16.lds
56 ldscript-y += ../../../../src/arch/i386/lib/id.lds
57 ldscript-y += ../../../../src/arch/i386/lib/failover.lds
62 -DCONFIG_AP_IN_SIPI_WAIT=0 \
63 -DCONFIG_USE_PRINTK_IN_CAR=1 \
64 -DCONFIG_HAVE_HIGH_TABLES=1
66 $(obj)/dsdt.c: $(src)/mainboard/$(MAINBOARDDIR)/dsdt.asl
67 iasl -p dsdt -tc $(src)/mainboard/$(MAINBOARDDIR)/dsdt.asl
70 $(obj)/mainboard/$(MAINBOARDDIR)/dsdt.o: $(obj)/dsdt.c
71 $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c $< -o $@
73 $(obj)/ssdt2.c: $(src)/mainboard/$(MAINBOARDDIR)/dx/pci2.asl
74 iasl -p $(CURDIR)/pci2 -tc $(CONFIG_MAINBOARD)/dx/pci2.asl
75 perl -pi -e 's/AmlCode/AmlCode_ssdt2/g' pci2.hex
78 $(obj)/ssdt3.c: $(src)/mainboard/$(MAINBOARDDIR)/dx/pci3.asl"
79 iasl -p $(CURDIR)/pci3 -tc $(CONFIG_MAINBOARD)/
80 perl -pi -e 's/AmlCode/AmlCode_ssdt3/g' pci3.hex
83 $(obj)/ssdt4.c: $(src)/mainboard/$(MAINBOARDDIR)/dx/pci4.asl"
84 iasl -p $(CURDIR)/pci4 -tc $(CONFIG_MAINBOARD)/dx/pci4.asl
85 perl -pi -e 's/AmlCode/AmlCode_ssdt4/g' pci4.hex
88 $(obj)/mainboard/$(MAINBOARDDIR)/auto.inc: $(src)/mainboard/$(MAINBOARDDIR)/cache_as_ram_auto.c $(obj)/option_table.h
89 $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c -S $(src)/mainboard/$(MAINBOARDDIR)/cache_as_ram_auto.c -o $@
90 perl -e 's/\.rodata/.rom.data/g' -pi $@
91 perl -e 's/\.text/.section .rom.text/g' -pi $@