3dc5e29fd30d5b11119e9cd0e2ac4cede433909e
[coreboot.git] / src / mainboard / kontron / 986lcd-m / 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 ##
23 ## This mainboard requires DCACHE_AS_RAM enabled. It won't work without.
24 ##
25
26 driver-y += mainboard.o
27 driver-y += rtl8168.o
28
29 #obj-y += ../../../southbridge/intel/i82801gx/i82801gx_reset.c
30 obj-$(CONFIG_HAVE_MP_TABLE) += mptable.o
31 obj-$(CONFIG_HAVE_PIRQ_TABLE) += irq_tables.o
32 obj-$(CONFIG_HAVE_ACPI_TABLES) += dsdt.o
33 obj-$(CONFIG_HAVE_ACPI_TABLES) += acpi_tables.o
34 obj-$(CONFIG_HAVE_ACPI_TABLES) += fadt.o
35
36 smmobj-$(CONFIG_HAVE_SMI_HANDLER) += mainboard_smi.o
37
38 # This is part of the conversion to init-obj and away from included code.
39
40 initobj-y += crt0.o
41 # FIXME in $(top)/Makefile
42 crt0-y += ../../../../src/cpu/x86/16bit/entry16.inc
43 crt0-y += ../../../../src/cpu/x86/32bit/entry32.inc
44 crt0-y += ../../../../src/cpu/x86/16bit/reset16.inc
45 crt0-y += ../../../../src/arch/i386/lib/id.inc
46 crt0-y += ../../../../src/cpu/intel/model_6ex/cache_as_ram.inc
47 crt0-y += auto.inc
48
49 ldscript-y += ../../../../src/arch/i386/init/ldscript_fallback_cbfs.lb
50 ldscript-y += ../../../../src/cpu/x86/16bit/entry16.lds
51 ldscript-y += ../../../../src/cpu/x86/16bit/reset16.lds
52 ldscript-y += ../../../../src/arch/i386/lib/id.lds
53 ldscript-y += ../../../../src/arch/i386/lib/failover.lds
54
55 ifdef POST_EVALUATION
56
57 MAINBOARD_OPTIONS=\
58         -DCONFIG_AP_IN_SIPI_WAIT=1 \
59         -DCONFIG_USE_PRINTK_IN_CAR=1 \
60         -DCONFIG_HAVE_HIGH_TABLES=1 \
61         -DCONFIG_MMCONF_SUPPORT=1 \
62         -DCONFIG_MMCONF_BASE_ADDRESS=0xf0000000
63
64 $(obj)/dsdt.c: $(src)/mainboard/$(MAINBOARDDIR)/dsdt.asl
65         iasl -p dsdt -tc $(src)/mainboard/$(MAINBOARDDIR)/dsdt.asl
66         mv dsdt.hex $@
67
68 $(obj)/mainboard/$(MAINBOARDDIR)/dsdt.o: $(obj)/dsdt.c
69         $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c $< -o $@
70
71 $(obj)/mainboard/$(MAINBOARDDIR)/auto.inc: $(src)/mainboard/$(MAINBOARDDIR)/auto.c $(obj)/option_table.h
72         $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c -S  $(src)/mainboard/$(MAINBOARDDIR)/auto.c -o $@
73         perl -e 's/\.rodata/.rom.data/g' -pi $@
74         perl -e 's/\.text/.section .rom.text/g' -pi $@
75
76 endif
77