Remove MAINBOARD_OPTIONS, which is a relic from early
[coreboot.git] / src / mainboard / asus / m2v-mx_se / Makefile.inc
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ## Copyright (C) 2007-2008 coresystems GmbH
5 ## Copyright (C) 2009 Cristi Măgherușan <cristi.magherusan@net.utcluj.ro>
6 ##
7 ## This program is free software; you can redistribute it and/or
8 ## modify it under the terms of the GNU General Public License as
9 ## published by the Free Software Foundation; version 2 of
10 ## the License.
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,
20 ## MA 02110-1301 USA
21 ##
22
23 driver-y +=  mainboard.o
24
25 #needed by irq_tables and mptable and acpi_tables
26 obj-$(CONFIG_HAVE_ACPI_TABLES) +=  dsdt.o
27 obj-$(CONFIG_HAVE_ACPI_TABLES) +=  acpi_tables.o
28
29 # This is part of the conversion to init-obj and away from included code.
30
31 initobj-y += crt0.o
32 # FIXME in $(top)/Makefile
33 crt0-y += ../../../../src/cpu/x86/16bit/entry16.inc
34 crt0-y += ../../../../src/cpu/x86/32bit/entry32.inc
35 crt0-y += ../../../../src/cpu/x86/16bit/reset16.inc
36 crt0-y += ../../../../src/arch/i386/lib/id.inc
37 crt0-y += ../../../../src/cpu/amd/car/cache_as_ram.inc
38 crt0-y += auto.inc
39
40 ldscript-y += ../../../../src/arch/i386/init/ldscript_fallback_cbfs.lb
41 ldscript-y += ../../../../src/cpu/x86/16bit/entry16.lds
42 ldscript-y += ../../../../src/cpu/x86/16bit/reset16.lds
43 ldscript-y += ../../../../src/arch/i386/lib/id.lds
44 ldscript-y += ../../../../src/arch/i386/lib/failover.lds
45
46 ifdef POST_EVALUATION
47
48 $(obj)/dsdt.c: $(src)/mainboard/$(MAINBOARDDIR)/dsdt.asl
49         iasl -p dsdt -tc $(src)/mainboard/$(MAINBOARDDIR)/dsdt.asl
50         mv dsdt.hex $@
51
52 $(obj)/mainboard/$(MAINBOARDDIR)/dsdt.o: $(obj)/dsdt.c
53         $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c $< -o $@
54
55 $(obj)/mainboard/$(MAINBOARDDIR)/auto.inc: $(src)/mainboard/$(MAINBOARDDIR)/cache_as_ram_auto.c $(obj)/option_table.h
56         $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c -S  $(src)/mainboard/$(MAINBOARDDIR)/cache_as_ram_auto.c -o $@
57         perl -e 's/\.rodata/.rom.data/g' -pi $@
58         perl -e 's/\.text/.section .rom.text/g' -pi $@
59
60 endif
61