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,
22 driver-y += mainboard.o
23 driver-y += ../../../drivers/i2c/i2cmux2/i2cmux2.o
24 driver-y += ../../../drivers/i2c/adm1027/adm1027.o
26 #needed by irq_tables and mptable and acpi_tables
27 obj-y += get_bus_conf.o
28 obj-$(CONFIG_GENERATE_MP_TABLE) += mptable.o
29 obj-$(CONFIG_GENERATE_PIRQ_TABLE) += irq_tables.o
30 obj-$(CONFIG_USE_INIT) += cache_as_ram_auto.o
31 obj-$(CONFIG_AP_CODE_IN_CAR) += apc_auto.o
33 # This is part of the conversion to init-obj and away from included code.
35 crt0-y += ../../../../src/cpu/x86/16bit/entry16.inc
36 crt0-y += ../../../../src/cpu/x86/32bit/entry32.inc
37 crt0-y += ../../../../src/cpu/x86/16bit/reset16.inc
38 crt0-y += ../../../../src/southbridge/nvidia/mcp55/id.inc
39 crt0-y += ../../../../src/cpu/amd/car/cache_as_ram.inc
42 ldscript-y += ../../../../src/arch/i386/init/ldscript_fallback_cbfs.lb
43 ldscript-y += ../../../../src/cpu/x86/16bit/entry16.lds
44 ldscript-y += ../../../../src/cpu/x86/16bit/reset16.lds
45 ldscript-y += ../../../../src/southbridge/nvidia/mcp55/id.lds
46 ldscript-y += ../../../../src/arch/i386/lib/failover.lds
47 ldscript-$(CONFIG_AP_CODE_IN_CAR) += ../../../../src/arch/i386/init/ldscript_apc.lb
51 $(obj)/dsdt.c: $(src)/mainboard/$(MAINBOARDDIR)/dsdt.asl
52 iasl -p $(obj)/dsdt -tc $(src)/mainboard/$(MAINBOARDDIR)/dsdt.asl
55 $(obj)/mainboard/$(MAINBOARDDIR)/dsdt.o: $(obj)/dsdt.c
56 $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c $< -o $@
58 $(obj)/mainboard/$(MAINBOARDDIR)/apc_auto.o: $(src)/mainboard/$(MAINBOARDDIR)/apc_auto.c $(obj)/option_table.h
59 $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c -S $(src)/mainboard/$(MAINBOARDDIR)/apc_auto.c -o $@
61 $(obj)/mainboard/$(MAINBOARDDIR)/auto.inc: $(src)/mainboard/$(MAINBOARDDIR)/cache_as_ram_auto.c $(obj)/option_table.h
62 $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c -S $(src)/mainboard/$(MAINBOARDDIR)/cache_as_ram_auto.c -o $@
63 perl -e 's/\.rodata/.rom.data/g' -pi $@
64 perl -e 's/\.text/.section .rom.text/g' -pi $@