Fix some builds with Kconfig.
[coreboot.git] / src / mainboard / Makefile.k8_CAR.inc
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ## Copyright (C) 2007-2008 coresystems GmbH
5 ##
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
9 ## the License.
10 ##
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.
15 ##
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,
19 ## MA 02110-1301 USA
20 ##
21
22 ##
23 ## This mainboard requires DCACHE_AS_RAM enabled. It won't work without.
24 ##
25
26 driver-y +=  mainboard.o
27
28 obj-$(CONFIG_GENERATE_MP_TABLE) += mptable.o
29 obj-$(CONFIG_GENERATE_PIRQ_TABLE) += irq_tables.o
30 obj-$(CONFIG_GENERATE_ACPI_TABLES) += dsdt.o
31 obj-$(CONFIG_GENERATE_ACPI_TABLES) += acpi_tables.o
32
33 # This is part of the conversion to init-obj and away from included code.
34
35 initobj-y += crt0.o
36 # FIXME in $(top)/Makefile
37 crt0-y += ../../../../src/cpu/x86/16bit/entry16.inc
38 crt0-y += ../../../../src/cpu/x86/32bit/entry32.inc
39 crt0-y += ../../../../src/cpu/x86/16bit/reset16.inc
40 crt0-y += ../../../../src/arch/i386/lib/id.inc
41 crt0-y += ../../../../src/cpu/amd/car/cache_as_ram.inc
42 crt0-y += auto.inc
43
44 ldscript-y += ../../../../src/arch/i386/init/ldscript_fallback_cbfs.lb
45 ldscript-y += ../../../../src/cpu/x86/16bit/entry16.lds
46 ldscript-y += ../../../../src/cpu/x86/16bit/reset16.lds
47 ldscript-y += ../../../../src/arch/i386/lib/id.lds
48 ldscript-y += ../../../../src/arch/i386/lib/failover.lds
49
50 ifdef POST_EVALUATION
51
52 $(obj)/mainboard/$(MAINBOARDDIR)/dsdt.c: $(src)/mainboard/$(MAINBOARDDIR)/dsdt.dsl
53         iasl -p $(obj)/mainboard/$(MAINBOARDDIR)/dsdt -tc $(src)/mainboard/$(MAINBOARDDIR)/dsdt.dsl
54         mv $(obj)/mainboard/$(MAINBOARDDIR)/dsdt.hex $@
55
56 $(obj)/mainboard/$(MAINBOARDDIR)/dsdt.o: $(obj)/mainboard/$(MAINBOARDDIR)/dsdt.c
57         $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c $< -o $@
58
59 $(obj)/mainboard/$(MAINBOARDDIR)/auto.inc: $(src)/mainboard/$(MAINBOARDDIR)/cache_as_ram_auto.c $(obj)/option_table.h
60         $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c -S  $(src)/mainboard/$(MAINBOARDDIR)/cache_as_ram_auto.c -o $@
61         perl -e 's/\.rodata/.rom.data/g' -pi $@
62         perl -e 's/\.text/.section .rom.text/g' -pi $@
63
64 endif
65