71ad7405894a54eb9e68b87ad1c8d322e652ba57
[coreboot.git] / src / mainboard / Makefile.romccboard.inc
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ## Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de>
5 ##
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.
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, MA  02110-1301 USA
19 ##
20
21 initobj-y += crt0.o
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 += ../../../../src/cpu/x86/fpu/enable_fpu.inc
28
29 crt0-$(CONFIG_CPU_AMD_GX1) += ../../../../src/cpu/amd/model_gx1/cpu_setup.inc
30 crt0-$(CONFIG_CPU_AMD_GX1) += ../../../../src/cpu/amd/model_gx1/gx_setup.inc
31 crt0-$(CONFIG_MMX) += ../../../../src/cpu/x86/mmx/enable_mmx.inc
32 crt0-$(CONFIG_SSE) += ../../../../src/cpu/x86/sse/enable_sse.inc
33 crt0-y += failover.inc
34 crt0-y += auto.inc
35 crt0-$(CONFIG_SSE) += ../../../../src/cpu/x86/sse/disable_sse.inc
36 crt0-$(CONFIG_MMX) += ../../../../src/cpu/x86/mmx/disable_mmx.inc
37
38 ldscript-y += ../../../../src/arch/i386/init/ldscript_fallback_cbfs.lb
39 ldscript-y += ../../../../src/cpu/x86/16bit/entry16.lds
40 ldscript-y += ../../../../src/cpu/x86/32bit/entry32.lds
41 ldscript-y += ../../../../src/cpu/x86/16bit/reset16.lds
42 ldscript-y += ../../../../src/arch/i386/lib/id.lds
43 ldscript-y += ../../../../src/arch/i386/lib/failover.lds
44
45 driver-y += mainboard.o
46
47 obj-$(CONFIG_HAVE_MP_TABLE) += mptable.o
48 obj-$(CONFIG_HAVE_PIRQ_TABLE) += irq_tables.o
49
50 ifdef POST_EVALUATION
51
52 ROMCCFLAGS ?= -mcpu=p2 -O2
53
54 $(obj)/mainboard/$(MAINBOARDDIR)/failover.inc: $(obj)/romcc $(src)/arch/i386/lib/failover.c
55         $(obj)/romcc $(ROMCCFLAGS) --label-prefix=failover $(INCLUDES) $(src)/arch/i386/lib/failover.c -o $@
56
57 ifeq ($(CONFIG_HAVE_OPTION_TABLE),y)
58 $(obj)/mainboard/$(MAINBOARDDIR)/auto.inc: $(obj)/romcc $(src)/mainboard/$(MAINBOARDDIR)/auto.c $(obj)/option_table.h
59         $(obj)/romcc $(ROMCCFLAGS) $(INCLUDES) $(src)/mainboard/$(MAINBOARDDIR)/auto.c -o $@
60 else
61 $(obj)/mainboard/$(MAINBOARDDIR)/auto.inc: $(obj)/romcc $(src)/mainboard/$(MAINBOARDDIR)/auto.c
62         $(obj)/romcc $(ROMCCFLAGS) $(INCLUDES) $(src)/mainboard/$(MAINBOARDDIR)/auto.c -o $@
63 endif
64
65 endif
66