e0528f69257b099b282d1629610a1b571f2a3778
[coreboot.git] / src / mainboard / via / epia-m700 / Makefile.inc
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ## Copyright (C) 2008 VIA Technologies, Inc.
5 ## (Written by Aaron Lwe <aaron.lwe@gmail.com> for VIA)
6 ##
7 ## This program is free software; you can redistribute it and/or modify
8 ## it under the terms of the GNU General Public License as published by
9 ## the Free Software Foundation; either version 2 of the License, or
10 ## (at your option) any later version.
11 ##
12 ## This program is distributed in the hope that it will be useful,
13 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 ## GNU General Public License for more details.
16 ##
17 ## You should have received a copy of the GNU General Public License
18 ## along with this program; if not, write to the Free Software
19 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
20 ##
21
22 initobj-y += crt0.o
23 obj-y += mainboard.o
24 obj-y += wakeup.o
25 obj-$(CONFIG_GENERATE_PIRQ_TABLE) += irq_tables.o
26 obj-$(CONFIG_GENERATE_MP_TABLE) += mptable.o
27
28 obj-$(CONFIG_GENERATE_ACPI_TABLES) += fadt.o
29 obj-$(CONFIG_GENERATE_ACPI_TABLES) += dsdt.o
30 obj-$(CONFIG_GENERATE_ACPI_TABLES) += acpi_tables.o
31
32 ldscript-y += ../../../../src/arch/i386/init/ldscript_fallback_cbfs.lb
33 ldscript-y += ../../../../src/cpu/x86/16bit/entry16.lds
34 ldscript-y += ../../../../src/northbridge/via/vx800/romstrap.lds
35 ldscript-y += ../../../../src/cpu/x86/16bit/reset16.lds
36 ldscript-y += ../../../../src/arch/i386/lib/id.lds
37 ldscript-y += ../../../../src/arch/i386/lib/failover.lds
38
39 crt0-y += ../../../../src/cpu/x86/16bit/entry16.inc
40 crt0-y += ../../../../src/cpu/x86/32bit/entry32.inc
41 crt0-y += ../../../../src/cpu/x86/16bit/reset16.inc
42 crt0-y += ../../../../src/northbridge/via/vx800/romstrap.inc
43 crt0-y += ../../../../src/arch/i386/lib/id.inc
44 crt0-y += ../../../../src/cpu/via/car/cache_as_ram.inc
45 crt0-y += cache_as_ram_auto.inc
46
47 ifdef POST_EVALUATION
48
49 $(obj)/mainboard/$(MAINBOARDDIR)/dsdt.o: $(obj)/dsdt.c
50         $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c $< -o $@
51
52 $(obj)/dsdt.c: $(src)/mainboard/$(MAINBOARDDIR)/dsdt.asl
53         iasl -p dsdt -tc $(src)/mainboard/$(MAINBOARDDIR)/dsdt.asl
54         mv dsdt.hex $@
55
56 $(obj)/mainboard/$(MAINBOARDDIR)/cache_as_ram_auto.inc: $(src)/mainboard/$(MAINBOARDDIR)/cache_as_ram_auto.c $(obj)/option_table.h
57         $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c -S  $(src)/mainboard/$(MAINBOARDDIR)/cache_as_ram_auto.c -o $@
58         perl -e 's/\.rodata/.rom.data/g' -pi $@
59         perl -e 's/\.text/.section .rom.text/g' -pi $@
60
61 endif
62