2 ## This file is part of the coreboot project.
4 ## Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de>
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; either version 2 of the License, or
9 ## (at your option) any later version.
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.
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, MA 02110-1301 USA
22 crt0-y += ../../../../src/cpu/x86/16bit/entry16.inc
23 crt0-y += ../../../../src/cpu/x86/32bit/entry32.inc
24 crt0-y += ../../../../src/cpu/x86/16bit/reset16.inc
25 crt0-y += ../../../../src/arch/i386/lib/cpu_reset.inc
26 crt0-y += ../../../../src/arch/i386/lib/id.inc
27 crt0-y += failover.inc
28 crt0-y += ../../../../src/cpu/x86/fpu/enable_fpu.inc
29 crt0-y += ../../../../src/cpu/x86/mmx/enable_mmx.inc
31 crt0-y += ../../../../src/cpu/x86/mmx/disable_mmx.inc
33 ldscript-y += ../../../../src/arch/i386/init/ldscript_fallback_cbfs.lb
34 ldscript-y += ../../../../src/cpu/x86/16bit/entry16.lds
35 ldscript-y += ../../../../src/cpu/x86/32bit/entry32.lds
36 ldscript-y += ../../../../src/cpu/x86/16bit/reset16.lds
37 ldscript-y += ../../../../src/arch/i386/lib/id.lds
38 ldscript-y += ../../../../src/arch/i386/lib/failover.lds
40 driver-y += mainboard.o
42 obj-$(CONFIG_HAVE_MP_TABLE) += mptable.o
43 obj-$(CONFIG_HAVE_PIRQ_TABLE) += irq_tables.o
47 $(obj)/mainboard/$(MAINBOARDDIR)/failover.inc: $(obj)/romcc $(src)/arch/i386/lib/failover.c
48 $(obj)/romcc -mcpu=p2 -O2 --label-prefix=failover $(INCLUDES) $(src)/arch/i386/lib/failover.c -o $@
50 ifeq ($(HAVE_OPTION_TABLE),y)
51 $(obj)/mainboard/$(MAINBOARDDIR)/auto.inc: $(obj)/romcc $(src)/mainboard/$(MAINBOARDDIR)/auto.c $(obj)/option_table.h
52 $(obj)/romcc -mcpu=p2 -O2 $(INCLUDES) $(src)/mainboard/$(MAINBOARDDIR)/auto.c -o $@
54 $(obj)/mainboard/$(MAINBOARDDIR)/auto.inc: $(obj)/romcc $(src)/mainboard/$(MAINBOARDDIR)/auto.c
55 $(obj)/romcc -mcpu=p2 -O2 $(INCLUDES) $(src)/mainboard/$(MAINBOARDDIR)/auto.c -o $@