8304126780f07c765272ca6d2f6167c38b6c677f
[coreboot.git] / src / mainboard / technexion / tim5690 / Makefile.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 driver-y += mainboard.o
23
24 # Needed by irq_tables and mptable and acpi_tables.
25 obj-y += get_bus_conf.o
26 obj-$(CONFIG_GENERATE_MP_TABLE) += mptable.o
27 obj-$(CONFIG_GENERATE_PIRQ_TABLE) += irq_tables.o
28 obj-$(CONFIG_GENERATE_ACPI_TABLES) += dsdt.o
29 obj-$(CONFIG_GENERATE_ACPI_TABLES) += acpi_tables.o
30 obj-$(CONFIG_GENERATE_ACPI_TABLES) += fadt.o
31
32 # This is debug message for products of Technexion.
33 obj-y += tn_post_code.o
34
35 obj-y += speaker.o
36
37 # This is part of the conversion to init-obj and away from included code.
38
39 initobj-y += crt0.o
40 # FIXME in $(top)/Makefile
41 crt0-y += ../../../../src/cpu/x86/16bit/entry16.inc
42 crt0-y += ../../../../src/cpu/x86/32bit/entry32.inc
43 crt0-y += ../../../../src/cpu/x86/16bit/reset16.inc
44 crt0-y += ../../../../src/arch/i386/lib/id.inc
45 crt0-y += ../../../../src/cpu/amd/car/cache_as_ram.inc
46 crt0-y += auto.inc
47
48 ldscript-y += ../../../../src/arch/i386/init/ldscript_fallback_cbfs.lb
49 ldscript-y += ../../../../src/cpu/x86/16bit/entry16.lds
50 ldscript-y += ../../../../src/cpu/x86/16bit/reset16.lds
51 ldscript-y += ../../../../src/arch/i386/lib/id.lds
52 ldscript-y += ../../../../src/arch/i386/lib/failover.lds
53
54 ifdef POST_EVALUATION
55
56 $(obj)/dsdt.c: $(src)/mainboard/$(MAINBOARDDIR)/acpi/dsdt.asl
57         iasl -p $(obj)/dsdt -tc $(src)/mainboard/$(MAINBOARDDIR)/acpi/dsdt.asl
58         mv $(obj)/dsdt.hex $@
59
60 $(obj)/mainboard/$(MAINBOARDDIR)/dsdt.o: $(obj)/dsdt.c
61         $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c $< -o $@
62
63 $(obj)/mainboard/$(MAINBOARDDIR)/auto.inc: $(src)/mainboard/$(MAINBOARDDIR)/cache_as_ram_auto.c $(obj)/option_table.h
64         $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c -S  $(src)/mainboard/$(MAINBOARDDIR)/cache_as_ram_auto.c -o $@
65         perl -e 's/\.rodata/.rom.data/g' -pi $@
66         perl -e 's/\.text/.section .rom.text/g' -pi $@
67
68 endif
69