2 ## This file is part of the coreboot project.
4 ## Copyright (C) 2007-2009 coresystems GmbH
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.
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.
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
20 driver-y += mainboard.o
22 obj-$(CONFIG_GENERATE_MP_TABLE) += mptable.o
23 obj-$(CONFIG_GENERATE_PIRQ_TABLE) += irq_tables.o
24 obj-$(CONFIG_GENERATE_ACPI_TABLES) += dsdt.o
25 obj-$(CONFIG_GENERATE_ACPI_TABLES) += acpi_tables.o
26 obj-$(CONFIG_GENERATE_ACPI_TABLES) += fadt.o
29 # FIXME in $(top)/Makefile
30 crt0-y += ../../../../src/cpu/x86/16bit/entry16.inc
31 crt0-y += ../../../../src/cpu/x86/32bit/entry32.inc
32 crt0-y += ../../../../src/cpu/x86/16bit/reset16.inc
33 crt0-y += ../../../../src/arch/i386/lib/id.inc
34 crt0-y += ../../../../src/cpu/via/car/cache_as_ram.inc
37 ldscript-y += ../../../../src/arch/i386/init/ldscript_fallback_cbfs.lb
38 ldscript-y += ../../../../src/cpu/x86/16bit/entry16.lds
39 ldscript-y += ../../../../src/cpu/x86/16bit/reset16.lds
40 ldscript-y += ../../../../src/arch/i386/lib/id.lds
41 ldscript-y += ../../../../src/arch/i386/lib/failover.lds
45 $(obj)/mainboard/$(MAINBOARDDIR)/dsdt.c: $(src)/mainboard/$(MAINBOARDDIR)/dsdt.dsl
49 $(obj)/mainboard/$(MAINBOARDDIR)/dsdt.o: $(obj)/mainboard/$(MAINBOARDDIR)/dsdt.c
50 $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c $< -o $@
52 $(obj)/mainboard/$(MAINBOARDDIR)/auto.inc: $(src)/mainboard/$(MAINBOARDDIR)/auto.c $(obj)/option_table.h
53 $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c -S $(src)/mainboard/$(MAINBOARDDIR)/auto.c -o $@
54 perl -e 's/\.rodata/.rom.data/g' -pi $@
55 perl -e 's/\.text/.section .rom.text/g' -pi $@