janitor task: unify and cleanup naming.
[coreboot.git] / src / mainboard / supermicro / h8dmr_fam10 / 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
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 crt0s := $(src)/cpu/x86/32bit/entry32.inc
34 crt0s += $(src)/cpu/amd/car/cache_as_ram.inc
35 crt0s += $(obj)/mainboard/$(MAINBOARDDIR)/romstage.inc
36
37 ldscripts := $(src)/arch/i386/init/ldscript_fallback_cbfs.lb
38 ldscripts += $(src)/cpu/x86/32bit/entry32.lds
39 ldscripts += $(src)/arch/i386/lib/failover.lds
40
41 ifdef POST_EVALUATION
42
43 $(obj)/dsdt.c: $(src)/mainboard/$(MAINBOARDDIR)/dx/dsdt_lb.dsl
44         iasl -p dsdt -tc $(src)/mainboard/$(MAINBOARDDIR)/dx/dsdt_lb.dsl
45         mv dsdt.hex $@
46
47 $(obj)/mainboard/$(MAINBOARDDIR)/dsdt.o: $(obj)/dsdt.c
48         $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c $< -o $@
49
50 $(obj)/ssdt2.c: $(src)/mainboard/$(MAINBOARDDIR)/dx/pci2.asl
51         iasl -p $(obj)/pci2 -tc $(CONFIG_MAINBOARD)/dx/pci2.asl
52         perl -pi -e 's/AmlCode/AmlCode_ssdt2/g' $(obj)/pci2.hex
53         mv $(obj)/pci2.hex $(obj)/ssdt2.c
54
55 $(obj)/ssdt3.c: $(src)/mainboard/$(MAINBOARDDIR)/dx/pci3.asl"
56         iasl -p $(obj)/pci3 -tc $(CONFIG_MAINBOARD)/
57         perl -pi -e 's/AmlCode/AmlCode_ssdt3/g' $(obj)/pci3.hex
58         mv $(obj)/pci3.hex $(obj)/ssdt3.c
59
60 $(obj)/ssdt4.c: $(src)/mainboard/$(MAINBOARDDIR)/dx/pci4.asl"
61         iasl -p $(obj)/pci4 -tc $(CONFIG_MAINBOARD)/dx/pci4.asl
62         perl -pi -e 's/AmlCode/AmlCode_ssdt4/g' $(obj)/pci4.hex
63         mv $(obj)/pci4.hex $(obj)/ssdt4.c
64
65 $(obj)/mainboard/$(MAINBOARDDIR)/romstage.inc: $(src)/mainboard/$(MAINBOARDDIR)/romstage.c $(obj)/option_table.h
66         $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c -S  $(src)/mainboard/$(MAINBOARDDIR)/romstage.c -o $@
67         perl -e 's/\.rodata/.rom.data/g' -pi $@
68         perl -e 's/\.text/.section .rom.text/g' -pi $@
69
70 endif
71