Clean up ACPI:
[coreboot.git] / src / mainboard / intel / d945gclf / 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 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 ##
21 ## This mainboard requires DCACHE_AS_RAM enabled. It won't work without.
22 ##
23
24 driver-y += mainboard.o
25 driver-y += rtl8168.o
26
27 obj-$(CONFIG_GENERATE_MP_TABLE) += mptable.o
28 obj-$(CONFIG_GENERATE_PIRQ_TABLE) += irq_tables.o
29 obj-$(CONFIG_GENERATE_ACPI_TABLES) += dsdt.o
30 obj-$(CONFIG_GENERATE_ACPI_TABLES) += acpi_tables.o
31 obj-$(CONFIG_GENERATE_ACPI_TABLES) += fadt.o
32
33 smmobj-$(CONFIG_HAVE_SMI_HANDLER) += mainboard_smi.o
34
35 # This is part of the conversion to init-obj and away from included code.
36
37 initobj-y += crt0.o
38 # FIXME in $(top)/Makefile
39 crt0s := $(src)/cpu/x86/16bit/entry16.inc
40 crt0s += $(src)/cpu/x86/32bit/entry32.inc
41 crt0s += $(src)/cpu/x86/16bit/reset16.inc
42 crt0s += $(src)/arch/i386/lib/id.inc
43 crt0s += $(src)/cpu/intel/model_6ex/cache_as_ram.inc
44 crt0s += $(obj)/mainboard/$(MAINBOARDDIR)/romstage.inc
45
46 ldscripts := $(src)/arch/i386/init/ldscript_fallback_cbfs.lb
47 ldscripts += $(src)/cpu/x86/16bit/entry16.lds
48 ldscripts += $(src)/cpu/x86/16bit/reset16.lds
49 ldscripts += $(src)/arch/i386/lib/id.lds
50 ldscripts += $(src)/arch/i386/lib/failover.lds
51
52 ifdef POST_EVALUATION
53
54 $(obj)/mainboard/$(MAINBOARDDIR)/romstage.inc: $(src)/mainboard/$(MAINBOARDDIR)/romstage.c $(obj)/option_table.h
55         $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c -S  $(src)/mainboard/$(MAINBOARDDIR)/romstage.c -o $@
56         perl -e 's/\.rodata/.rom.data/g' -pi $@
57         perl -e 's/\.text/.section .rom.text/g' -pi $@
58
59 endif
60