blob: 6b3f0d8a59b362ac7d36834fa901cbe701e98c69 [file] [log] [blame]
Stefan Reinauer179206a2012-11-30 12:19:59 -08001#
2# This file is part of the coreboot project.
3#
4# Copyright (C) 2009 coresystems GmbH
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; version 2 of the License.
9#
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.
14#
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
18#
Stefan Reinauer24ef1342011-04-14 22:28:00 +000019
Stefan Reinauer1afe51a2011-10-26 22:11:52 +000020ifneq ($(CONFIG_HAVE_ARCH_MEMSET),y)
Stefan Reinauer24ef1342011-04-14 22:28:00 +000021romstage-y += memset.c
Stefan Reinauer1afe51a2011-10-26 22:11:52 +000022endif
Gabe Black1025f3a2011-09-16 02:18:56 -070023romstage-y += memchr.c
Stefan Reinauer0054afa2011-10-25 23:43:34 +000024ifneq ($(CONFIG_HAVE_ARCH_MEMCPY),y)
Stefan Reinauer24ef1342011-04-14 22:28:00 +000025romstage-y += memcpy.c
Stefan Reinauer0054afa2011-10-25 23:43:34 +000026endif
Stefan Reinauer24ef1342011-04-14 22:28:00 +000027romstage-y += memcmp.c
28romstage-y += cbfs.c
29romstage-y += lzma.c
30#romstage-y += lzmadecode.c
31romstage-$(CONFIG_CACHE_AS_RAM) += ramtest.c
32romstage-$(CONFIG_HAVE_ACPI_RESUME) += cbmem.c
33romstage-$(CONFIG_CONSOLE_SERIAL8250) += uart8250.c
Stefan Reinauer4885daa2011-04-26 23:47:04 +000034romstage-$(CONFIG_CONSOLE_SERIAL8250MEM) += uart8250mem.c
Vadim Bendebury3e316002011-09-30 12:02:18 -070035romstage-$(CONFIG_CONSOLE_CBMEM) += cbmem_console.c
Stefan Reinauer24ef1342011-04-14 22:28:00 +000036romstage-$(CONFIG_CONSOLE_NE2K) += ne2k.c
Stefan Reinauer24ef1342011-04-14 22:28:00 +000037romstage-$(CONFIG_USBDEBUG) += usbdebug.c
Vadim Bendebury6f72d692011-09-21 16:12:39 -070038romstage-$(CONFIG_COLLECT_TIMESTAMPS) += timestamp.c
Stefan Reinauerfb89dd02012-03-30 16:28:20 -070039romstage-y += compute_ip_checksum.c
40romstage-y += memmove.c
Stefan Reinauer24ef1342011-04-14 22:28:00 +000041
Stefan Reinauer1e753292012-11-30 12:23:45 -080042ramstage-y += hardwaremain.c
43ramstage-y += selfboot.c
Stefan Reinauer1afe51a2011-10-26 22:11:52 +000044ifneq ($(CONFIG_HAVE_ARCH_MEMSET),y)
Patrick Georgi8463dd92010-09-30 16:55:02 +000045ramstage-y += memset.c
Stefan Reinauer1afe51a2011-10-26 22:11:52 +000046endif
Gabe Black1025f3a2011-09-16 02:18:56 -070047ramstage-y += memchr.c
Stefan Reinauer0054afa2011-10-25 23:43:34 +000048ifneq ($(CONFIG_HAVE_ARCH_MEMCPY),y)
Patrick Georgi8463dd92010-09-30 16:55:02 +000049ramstage-y += memcpy.c
Stefan Reinauer0054afa2011-10-25 23:43:34 +000050endif
Patrick Georgi8463dd92010-09-30 16:55:02 +000051ramstage-y += memcmp.c
52ramstage-y += memmove.c
53ramstage-y += malloc.c
Duncan Laurief5e9ac42012-06-23 13:33:32 -070054smm-$(CONFIG_SMM_TSEG) += malloc.c
Patrick Georgi8463dd92010-09-30 16:55:02 +000055ramstage-y += delay.c
56ramstage-y += fallback_boot.c
57ramstage-y += compute_ip_checksum.c
58ramstage-y += version.c
59ramstage-y += cbfs.c
60ramstage-y += lzma.c
61#ramstage-y += lzmadecode.c
Ronald G. Minnich9764d4c2012-06-12 16:29:32 -070062ramstage-y += stack.c
Stefan Reinauer4c4dd932012-12-07 17:28:02 -080063ramstage-$(CONFIG_ARCH_X86) += gcc.c
Stefan Reinauer24ef1342011-04-14 22:28:00 +000064ramstage-y += clog2.c
Patrick Georgi8463dd92010-09-30 16:55:02 +000065ramstage-y += cbmem.c
Stefan Reinauer24ef1342011-04-14 22:28:00 +000066ramstage-$(CONFIG_CONSOLE_SERIAL8250) += uart8250.c
Stefan Reinauer4885daa2011-04-26 23:47:04 +000067ramstage-$(CONFIG_CONSOLE_SERIAL8250MEM) += uart8250mem.c
Vadim Bendebury3e316002011-09-30 12:02:18 -070068ramstage-$(CONFIG_CONSOLE_CBMEM) += cbmem_console.c
Stefan Reinauer24ef1342011-04-14 22:28:00 +000069ramstage-$(CONFIG_USBDEBUG) += usbdebug.c
70ramstage-$(CONFIG_BOOTSPLASH) += jpeg.c
Rudolf Marek7f0e9302011-09-02 23:23:41 +020071ramstage-$(CONFIG_TRACE) += trace.c
Vadim Bendebury6f72d692011-09-21 16:12:39 -070072ramstage-$(CONFIG_COLLECT_TIMESTAMPS) += timestamp.c
Stefan Reinauer16ce01b2011-01-28 08:05:54 +000073
Patrick Georgi23f38cd2012-11-16 14:50:32 +010074ramstage-$(CONFIG_CONSOLE_NE2K) += ne2k.c
Patrick Georgi0588d192009-08-12 15:00:51 +000075
Stefan Reinauerfb89dd02012-03-30 16:28:20 -070076ifneq ($(CONFIG_HAVE_ARCH_MEMSET),y)
77smm-y += memset.c
78endif
Stefan Reinauer0054afa2011-10-25 23:43:34 +000079ifneq ($(CONFIG_HAVE_ARCH_MEMCPY),y)
80smm-y += memcpy.c
81endif
Stefan Reinauerfb89dd02012-03-30 16:28:20 -070082smm-y += cbfs.c memcmp.c
Stefan Reinauer24ef1342011-04-14 22:28:00 +000083smm-$(CONFIG_CONSOLE_SERIAL8250) += uart8250.c
Stefan Reinauer4885daa2011-04-26 23:47:04 +000084smm-$(CONFIG_CONSOLE_SERIAL8250MEM) += uart8250mem.c
Sven Schnelle20fc6312011-10-30 09:57:35 +010085smm-$(CONFIG_USBDEBUG) += usbdebug.c
Stefan Reinauere9f32582010-03-29 13:04:13 +000086
Patrick Georgi8463dd92010-09-30 16:55:02 +000087$(obj)/lib/version.ramstage.o : $(obj)/build.h
Stefan Reinauerba9dae22011-07-29 15:34:14 -070088
89OPTION_TABLE_H:=
90ifeq ($(CONFIG_HAVE_OPTION_TABLE),y)
91OPTION_TABLE_H:=$(obj)/option_table.h
92endif
93
94$(obj)/lib/uart8250mem.smm.o : $(OPTION_TABLE_H)
Stefan Reinauer52608712011-08-11 14:51:31 -070095$(obj)/lib/uart8250.smm.o : $(OPTION_TABLE_H)
Stefan Reinauerba9dae22011-07-29 15:34:14 -070096