Stefan Reinauer | 179206a | 2012-11-30 12:19:59 -0800 | [diff] [blame] | 1 | # |
| 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 Reinauer | 24ef134 | 2011-04-14 22:28:00 +0000 | [diff] [blame] | 19 | |
Stefan Reinauer | 1afe51a | 2011-10-26 22:11:52 +0000 | [diff] [blame] | 20 | ifneq ($(CONFIG_HAVE_ARCH_MEMSET),y) |
Stefan Reinauer | 24ef134 | 2011-04-14 22:28:00 +0000 | [diff] [blame] | 21 | romstage-y += memset.c |
Stefan Reinauer | 1afe51a | 2011-10-26 22:11:52 +0000 | [diff] [blame] | 22 | endif |
Gabe Black | 1025f3a | 2011-09-16 02:18:56 -0700 | [diff] [blame] | 23 | romstage-y += memchr.c |
Stefan Reinauer | 0054afa | 2011-10-25 23:43:34 +0000 | [diff] [blame] | 24 | ifneq ($(CONFIG_HAVE_ARCH_MEMCPY),y) |
Stefan Reinauer | 24ef134 | 2011-04-14 22:28:00 +0000 | [diff] [blame] | 25 | romstage-y += memcpy.c |
Stefan Reinauer | 0054afa | 2011-10-25 23:43:34 +0000 | [diff] [blame] | 26 | endif |
Stefan Reinauer | 24ef134 | 2011-04-14 22:28:00 +0000 | [diff] [blame] | 27 | romstage-y += memcmp.c |
| 28 | romstage-y += cbfs.c |
| 29 | romstage-y += lzma.c |
| 30 | #romstage-y += lzmadecode.c |
| 31 | romstage-$(CONFIG_CACHE_AS_RAM) += ramtest.c |
| 32 | romstage-$(CONFIG_HAVE_ACPI_RESUME) += cbmem.c |
| 33 | romstage-$(CONFIG_CONSOLE_SERIAL8250) += uart8250.c |
Stefan Reinauer | 4885daa | 2011-04-26 23:47:04 +0000 | [diff] [blame] | 34 | romstage-$(CONFIG_CONSOLE_SERIAL8250MEM) += uart8250mem.c |
Vadim Bendebury | 3e31600 | 2011-09-30 12:02:18 -0700 | [diff] [blame] | 35 | romstage-$(CONFIG_CONSOLE_CBMEM) += cbmem_console.c |
Stefan Reinauer | 24ef134 | 2011-04-14 22:28:00 +0000 | [diff] [blame] | 36 | romstage-$(CONFIG_CONSOLE_NE2K) += ne2k.c |
Stefan Reinauer | 24ef134 | 2011-04-14 22:28:00 +0000 | [diff] [blame] | 37 | romstage-$(CONFIG_USBDEBUG) += usbdebug.c |
Vadim Bendebury | 6f72d69 | 2011-09-21 16:12:39 -0700 | [diff] [blame] | 38 | romstage-$(CONFIG_COLLECT_TIMESTAMPS) += timestamp.c |
Stefan Reinauer | fb89dd0 | 2012-03-30 16:28:20 -0700 | [diff] [blame] | 39 | romstage-y += compute_ip_checksum.c |
| 40 | romstage-y += memmove.c |
Stefan Reinauer | 24ef134 | 2011-04-14 22:28:00 +0000 | [diff] [blame] | 41 | |
Stefan Reinauer | 1e75329 | 2012-11-30 12:23:45 -0800 | [diff] [blame] | 42 | ramstage-y += hardwaremain.c |
| 43 | ramstage-y += selfboot.c |
Stefan Reinauer | 1afe51a | 2011-10-26 22:11:52 +0000 | [diff] [blame] | 44 | ifneq ($(CONFIG_HAVE_ARCH_MEMSET),y) |
Patrick Georgi | 8463dd9 | 2010-09-30 16:55:02 +0000 | [diff] [blame] | 45 | ramstage-y += memset.c |
Stefan Reinauer | 1afe51a | 2011-10-26 22:11:52 +0000 | [diff] [blame] | 46 | endif |
Gabe Black | 1025f3a | 2011-09-16 02:18:56 -0700 | [diff] [blame] | 47 | ramstage-y += memchr.c |
Stefan Reinauer | 0054afa | 2011-10-25 23:43:34 +0000 | [diff] [blame] | 48 | ifneq ($(CONFIG_HAVE_ARCH_MEMCPY),y) |
Patrick Georgi | 8463dd9 | 2010-09-30 16:55:02 +0000 | [diff] [blame] | 49 | ramstage-y += memcpy.c |
Stefan Reinauer | 0054afa | 2011-10-25 23:43:34 +0000 | [diff] [blame] | 50 | endif |
Patrick Georgi | 8463dd9 | 2010-09-30 16:55:02 +0000 | [diff] [blame] | 51 | ramstage-y += memcmp.c |
| 52 | ramstage-y += memmove.c |
| 53 | ramstage-y += malloc.c |
Duncan Laurie | f5e9ac4 | 2012-06-23 13:33:32 -0700 | [diff] [blame] | 54 | smm-$(CONFIG_SMM_TSEG) += malloc.c |
Patrick Georgi | 8463dd9 | 2010-09-30 16:55:02 +0000 | [diff] [blame] | 55 | ramstage-y += delay.c |
| 56 | ramstage-y += fallback_boot.c |
| 57 | ramstage-y += compute_ip_checksum.c |
| 58 | ramstage-y += version.c |
| 59 | ramstage-y += cbfs.c |
| 60 | ramstage-y += lzma.c |
| 61 | #ramstage-y += lzmadecode.c |
Ronald G. Minnich | 9764d4c | 2012-06-12 16:29:32 -0700 | [diff] [blame] | 62 | ramstage-y += stack.c |
Stefan Reinauer | 4c4dd93 | 2012-12-07 17:28:02 -0800 | [diff] [blame] | 63 | ramstage-$(CONFIG_ARCH_X86) += gcc.c |
Stefan Reinauer | 24ef134 | 2011-04-14 22:28:00 +0000 | [diff] [blame] | 64 | ramstage-y += clog2.c |
Patrick Georgi | 8463dd9 | 2010-09-30 16:55:02 +0000 | [diff] [blame] | 65 | ramstage-y += cbmem.c |
Stefan Reinauer | 24ef134 | 2011-04-14 22:28:00 +0000 | [diff] [blame] | 66 | ramstage-$(CONFIG_CONSOLE_SERIAL8250) += uart8250.c |
Stefan Reinauer | 4885daa | 2011-04-26 23:47:04 +0000 | [diff] [blame] | 67 | ramstage-$(CONFIG_CONSOLE_SERIAL8250MEM) += uart8250mem.c |
Vadim Bendebury | 3e31600 | 2011-09-30 12:02:18 -0700 | [diff] [blame] | 68 | ramstage-$(CONFIG_CONSOLE_CBMEM) += cbmem_console.c |
Stefan Reinauer | 24ef134 | 2011-04-14 22:28:00 +0000 | [diff] [blame] | 69 | ramstage-$(CONFIG_USBDEBUG) += usbdebug.c |
| 70 | ramstage-$(CONFIG_BOOTSPLASH) += jpeg.c |
Rudolf Marek | 7f0e930 | 2011-09-02 23:23:41 +0200 | [diff] [blame] | 71 | ramstage-$(CONFIG_TRACE) += trace.c |
Vadim Bendebury | 6f72d69 | 2011-09-21 16:12:39 -0700 | [diff] [blame] | 72 | ramstage-$(CONFIG_COLLECT_TIMESTAMPS) += timestamp.c |
Stefan Reinauer | d37ab45 | 2012-12-18 16:23:28 -0800 | [diff] [blame^] | 73 | ramstage-$(CONFIG_COVERAGE) += libgcov.c |
Stefan Reinauer | 16ce01b | 2011-01-28 08:05:54 +0000 | [diff] [blame] | 74 | |
Patrick Georgi | 23f38cd | 2012-11-16 14:50:32 +0100 | [diff] [blame] | 75 | ramstage-$(CONFIG_CONSOLE_NE2K) += ne2k.c |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 76 | |
Stefan Reinauer | fb89dd0 | 2012-03-30 16:28:20 -0700 | [diff] [blame] | 77 | ifneq ($(CONFIG_HAVE_ARCH_MEMSET),y) |
| 78 | smm-y += memset.c |
| 79 | endif |
Stefan Reinauer | 0054afa | 2011-10-25 23:43:34 +0000 | [diff] [blame] | 80 | ifneq ($(CONFIG_HAVE_ARCH_MEMCPY),y) |
| 81 | smm-y += memcpy.c |
| 82 | endif |
Stefan Reinauer | fb89dd0 | 2012-03-30 16:28:20 -0700 | [diff] [blame] | 83 | smm-y += cbfs.c memcmp.c |
Stefan Reinauer | 24ef134 | 2011-04-14 22:28:00 +0000 | [diff] [blame] | 84 | smm-$(CONFIG_CONSOLE_SERIAL8250) += uart8250.c |
Stefan Reinauer | 4885daa | 2011-04-26 23:47:04 +0000 | [diff] [blame] | 85 | smm-$(CONFIG_CONSOLE_SERIAL8250MEM) += uart8250mem.c |
Sven Schnelle | 20fc631 | 2011-10-30 09:57:35 +0100 | [diff] [blame] | 86 | smm-$(CONFIG_USBDEBUG) += usbdebug.c |
Stefan Reinauer | e9f3258 | 2010-03-29 13:04:13 +0000 | [diff] [blame] | 87 | |
Patrick Georgi | 8463dd9 | 2010-09-30 16:55:02 +0000 | [diff] [blame] | 88 | $(obj)/lib/version.ramstage.o : $(obj)/build.h |
Stefan Reinauer | ba9dae2 | 2011-07-29 15:34:14 -0700 | [diff] [blame] | 89 | |
| 90 | OPTION_TABLE_H:= |
| 91 | ifeq ($(CONFIG_HAVE_OPTION_TABLE),y) |
| 92 | OPTION_TABLE_H:=$(obj)/option_table.h |
| 93 | endif |
| 94 | |
| 95 | $(obj)/lib/uart8250mem.smm.o : $(OPTION_TABLE_H) |
Stefan Reinauer | 5260871 | 2011-08-11 14:51:31 -0700 | [diff] [blame] | 96 | $(obj)/lib/uart8250.smm.o : $(OPTION_TABLE_H) |
Stefan Reinauer | ba9dae2 | 2011-07-29 15:34:14 -0700 | [diff] [blame] | 97 | |