blob: 67964482b1032e41ef262b35a0ad6d39444b32f0 [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 Reinauerd37ab452012-12-18 16:23:28 -080073ramstage-$(CONFIG_COVERAGE) += libgcov.c
Stefan Reinauer16ce01b2011-01-28 08:05:54 +000074
Patrick Georgi23f38cd2012-11-16 14:50:32 +010075ramstage-$(CONFIG_CONSOLE_NE2K) += ne2k.c
Patrick Georgi0588d192009-08-12 15:00:51 +000076
Stefan Reinauerfb89dd02012-03-30 16:28:20 -070077ifneq ($(CONFIG_HAVE_ARCH_MEMSET),y)
78smm-y += memset.c
79endif
Stefan Reinauer0054afa2011-10-25 23:43:34 +000080ifneq ($(CONFIG_HAVE_ARCH_MEMCPY),y)
81smm-y += memcpy.c
82endif
Stefan Reinauerfb89dd02012-03-30 16:28:20 -070083smm-y += cbfs.c memcmp.c
Stefan Reinauer24ef1342011-04-14 22:28:00 +000084smm-$(CONFIG_CONSOLE_SERIAL8250) += uart8250.c
Stefan Reinauer4885daa2011-04-26 23:47:04 +000085smm-$(CONFIG_CONSOLE_SERIAL8250MEM) += uart8250mem.c
Sven Schnelle20fc6312011-10-30 09:57:35 +010086smm-$(CONFIG_USBDEBUG) += usbdebug.c
Stefan Reinauere9f32582010-03-29 13:04:13 +000087
Patrick Georgi8463dd92010-09-30 16:55:02 +000088$(obj)/lib/version.ramstage.o : $(obj)/build.h
Stefan Reinauerba9dae22011-07-29 15:34:14 -070089
90OPTION_TABLE_H:=
91ifeq ($(CONFIG_HAVE_OPTION_TABLE),y)
92OPTION_TABLE_H:=$(obj)/option_table.h
93endif
94
95$(obj)/lib/uart8250mem.smm.o : $(OPTION_TABLE_H)
Stefan Reinauer52608712011-08-11 14:51:31 -070096$(obj)/lib/uart8250.smm.o : $(OPTION_TABLE_H)
Stefan Reinauerba9dae22011-07-29 15:34:14 -070097