Trivial fixes for kconfig. They fix all non-fam10 build failures.
[coreboot.git] / src / mainboard / via / vt8454c / Makefile.inc
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ## Copyright (C) 2007-2009 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 the License.
9 ##
10 ## This program is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 ## GNU General Public License for more details.
14 ##
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program; if not, write to the Free Software
17 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 ##
19
20 driver-y += mainboard.o
21
22 obj-$(CONFIG_GENERATE_MP_TABLE) += mptable.o
23 obj-$(CONFIG_GENERATE_PIRQ_TABLE) += irq_tables.o
24 obj-$(CONFIG_GENERATE_ACPI_TABLES) += dsdt.o
25 obj-$(CONFIG_GENERATE_ACPI_TABLES) += acpi_tables.o
26 obj-$(CONFIG_GENERATE_ACPI_TABLES) += fadt.o
27
28 initobj-y += crt0.o
29 # FIXME in $(top)/Makefile
30 crt0-y += ../../../../src/cpu/x86/16bit/entry16.inc
31 crt0-y += ../../../../src/cpu/x86/32bit/entry32.inc
32 crt0-y += ../../../../src/cpu/x86/16bit/reset16.inc
33 crt0-y += ../../../../src/arch/i386/lib/id.inc
34 crt0-y += ../../../../src/cpu/via/car/cache_as_ram.inc
35 crt0-y += auto.inc
36
37 ldscript-y += ../../../../src/arch/i386/init/ldscript_fallback_cbfs.lb
38 ldscript-y += ../../../../src/cpu/x86/16bit/entry16.lds
39 ldscript-y += ../../../../src/cpu/x86/16bit/reset16.lds
40 ldscript-y += ../../../../src/arch/i386/lib/id.lds
41 ldscript-y += ../../../../src/arch/i386/lib/failover.lds
42
43 ifdef POST_EVALUATION
44
45 $(obj)/mainboard/$(MAINBOARDDIR)/dsdt.c: $(src)/mainboard/$(MAINBOARDDIR)/dsdt.dsl
46         iasl -p dsdt -tc $<
47         mv dsdt.hex $@
48
49 $(obj)/mainboard/$(MAINBOARDDIR)/dsdt.o: $(obj)/mainboard/$(MAINBOARDDIR)/dsdt.c
50         $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c $< -o $@
51
52 $(obj)/mainboard/$(MAINBOARDDIR)/auto.inc: $(src)/mainboard/$(MAINBOARDDIR)/auto.c $(obj)/option_table.h
53         $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c -S  $(src)/mainboard/$(MAINBOARDDIR)/auto.c -o $@
54         perl -e 's/\.rodata/.rom.data/g' -pi $@
55         perl -e 's/\.text/.section .rom.text/g' -pi $@
56
57 endif
58