blob: 1c324fd49ad8e1c5e1eb59b934c6415528356c37 [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
Paul Menzela46a7122013-02-23 18:37:27 +010017# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Stefan Reinauer179206a2012-11-30 12:19:59 -080018#
Stefan Reinauer24ef1342011-04-14 22:28:00 +000019
Hung-Te Linfe187922013-02-01 01:09:24 +080020bootblock-y += cbfs.c
21ifneq ($(CONFIG_HAVE_ARCH_MEMSET),y)
22bootblock-y += memset.c
23endif
24bootblock-y += memchr.c
25ifneq ($(CONFIG_HAVE_ARCH_MEMCPY),y)
26bootblock-y += memcpy.c
27endif
28bootblock-y += memcmp.c
29
Stefan Reinauer1afe51a2011-10-26 22:11:52 +000030ifneq ($(CONFIG_HAVE_ARCH_MEMSET),y)
Stefan Reinauer24ef1342011-04-14 22:28:00 +000031romstage-y += memset.c
Stefan Reinauer1afe51a2011-10-26 22:11:52 +000032endif
Gabe Black1025f3a2011-09-16 02:18:56 -070033romstage-y += memchr.c
Stefan Reinauer0054afa2011-10-25 23:43:34 +000034ifneq ($(CONFIG_HAVE_ARCH_MEMCPY),y)
Stefan Reinauer24ef1342011-04-14 22:28:00 +000035romstage-y += memcpy.c
Stefan Reinauer0054afa2011-10-25 23:43:34 +000036endif
Stefan Reinauer24ef1342011-04-14 22:28:00 +000037romstage-y += memcmp.c
38romstage-y += cbfs.c
39romstage-y += lzma.c
40#romstage-y += lzmadecode.c
41romstage-$(CONFIG_CACHE_AS_RAM) += ramtest.c
42romstage-$(CONFIG_HAVE_ACPI_RESUME) += cbmem.c
43romstage-$(CONFIG_CONSOLE_SERIAL8250) += uart8250.c
Stefan Reinauer4885daa2011-04-26 23:47:04 +000044romstage-$(CONFIG_CONSOLE_SERIAL8250MEM) += uart8250mem.c
Vadim Bendebury3e316002011-09-30 12:02:18 -070045romstage-$(CONFIG_CONSOLE_CBMEM) += cbmem_console.c
Stefan Reinauer24ef1342011-04-14 22:28:00 +000046romstage-$(CONFIG_CONSOLE_NE2K) += ne2k.c
Stefan Reinauer24ef1342011-04-14 22:28:00 +000047romstage-$(CONFIG_USBDEBUG) += usbdebug.c
Vadim Bendebury6f72d692011-09-21 16:12:39 -070048romstage-$(CONFIG_COLLECT_TIMESTAMPS) += timestamp.c
Stefan Reinauerfb89dd02012-03-30 16:28:20 -070049romstage-y += compute_ip_checksum.c
50romstage-y += memmove.c
Stefan Reinauer24ef1342011-04-14 22:28:00 +000051
Stefan Reinauer1e753292012-11-30 12:23:45 -080052ramstage-y += hardwaremain.c
53ramstage-y += selfboot.c
Stefan Reinauer1afe51a2011-10-26 22:11:52 +000054ifneq ($(CONFIG_HAVE_ARCH_MEMSET),y)
Patrick Georgi8463dd92010-09-30 16:55:02 +000055ramstage-y += memset.c
Stefan Reinauer1afe51a2011-10-26 22:11:52 +000056endif
Gabe Black1025f3a2011-09-16 02:18:56 -070057ramstage-y += memchr.c
Stefan Reinauer0054afa2011-10-25 23:43:34 +000058ifneq ($(CONFIG_HAVE_ARCH_MEMCPY),y)
Patrick Georgi8463dd92010-09-30 16:55:02 +000059ramstage-y += memcpy.c
Stefan Reinauer0054afa2011-10-25 23:43:34 +000060endif
Patrick Georgi8463dd92010-09-30 16:55:02 +000061ramstage-y += memcmp.c
62ramstage-y += memmove.c
63ramstage-y += malloc.c
Duncan Laurief5e9ac42012-06-23 13:33:32 -070064smm-$(CONFIG_SMM_TSEG) += malloc.c
Patrick Georgi8463dd92010-09-30 16:55:02 +000065ramstage-y += delay.c
66ramstage-y += fallback_boot.c
67ramstage-y += compute_ip_checksum.c
68ramstage-y += version.c
69ramstage-y += cbfs.c
70ramstage-y += lzma.c
71#ramstage-y += lzmadecode.c
Ronald G. Minnich9764d4c2012-06-12 16:29:32 -070072ramstage-y += stack.c
Stefan Reinauer4c4dd932012-12-07 17:28:02 -080073ramstage-$(CONFIG_ARCH_X86) += gcc.c
Stefan Reinauer24ef1342011-04-14 22:28:00 +000074ramstage-y += clog2.c
Patrick Georgi8463dd92010-09-30 16:55:02 +000075ramstage-y += cbmem.c
Stefan Reinauer24ef1342011-04-14 22:28:00 +000076ramstage-$(CONFIG_CONSOLE_SERIAL8250) += uart8250.c
Stefan Reinauer4885daa2011-04-26 23:47:04 +000077ramstage-$(CONFIG_CONSOLE_SERIAL8250MEM) += uart8250mem.c
Vadim Bendebury3e316002011-09-30 12:02:18 -070078ramstage-$(CONFIG_CONSOLE_CBMEM) += cbmem_console.c
Stefan Reinauer24ef1342011-04-14 22:28:00 +000079ramstage-$(CONFIG_USBDEBUG) += usbdebug.c
80ramstage-$(CONFIG_BOOTSPLASH) += jpeg.c
Rudolf Marek7f0e9302011-09-02 23:23:41 +020081ramstage-$(CONFIG_TRACE) += trace.c
Vadim Bendebury6f72d692011-09-21 16:12:39 -070082ramstage-$(CONFIG_COLLECT_TIMESTAMPS) += timestamp.c
Stefan Reinauerd37ab452012-12-18 16:23:28 -080083ramstage-$(CONFIG_COVERAGE) += libgcov.c
Stefan Reinauer16ce01b2011-01-28 08:05:54 +000084
Patrick Georgi23f38cd2012-11-16 14:50:32 +010085ramstage-$(CONFIG_CONSOLE_NE2K) += ne2k.c
Patrick Georgi0588d192009-08-12 15:00:51 +000086
Stefan Reinauerfb89dd02012-03-30 16:28:20 -070087ifneq ($(CONFIG_HAVE_ARCH_MEMSET),y)
88smm-y += memset.c
89endif
Stefan Reinauer0054afa2011-10-25 23:43:34 +000090ifneq ($(CONFIG_HAVE_ARCH_MEMCPY),y)
91smm-y += memcpy.c
92endif
Stefan Reinauerfb89dd02012-03-30 16:28:20 -070093smm-y += cbfs.c memcmp.c
Stefan Reinauer24ef1342011-04-14 22:28:00 +000094smm-$(CONFIG_CONSOLE_SERIAL8250) += uart8250.c
Stefan Reinauer4885daa2011-04-26 23:47:04 +000095smm-$(CONFIG_CONSOLE_SERIAL8250MEM) += uart8250mem.c
Sven Schnelle20fc6312011-10-30 09:57:35 +010096smm-$(CONFIG_USBDEBUG) += usbdebug.c
Stefan Reinauere9f32582010-03-29 13:04:13 +000097
Patrick Georgi8463dd92010-09-30 16:55:02 +000098$(obj)/lib/version.ramstage.o : $(obj)/build.h
Stefan Reinauerba9dae22011-07-29 15:34:14 -070099
100OPTION_TABLE_H:=
101ifeq ($(CONFIG_HAVE_OPTION_TABLE),y)
102OPTION_TABLE_H:=$(obj)/option_table.h
103endif
104
105$(obj)/lib/uart8250mem.smm.o : $(OPTION_TABLE_H)
Stefan Reinauer52608712011-08-11 14:51:31 -0700106$(obj)/lib/uart8250.smm.o : $(OPTION_TABLE_H)
Stefan Reinauerba9dae22011-07-29 15:34:14 -0700107