Stefan Reinauer | 9aea04a | 2012-03-30 12:01:06 -0700 | [diff] [blame] | 1 | ## |
| 2 | ## This file is part of the coreboot project. |
| 3 | ## |
| 4 | ## Copyright (C) 2011 The ChromiumOS Authors. All rights reserved. |
| 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 |
Patrick Georgi | b890a12 | 2015-03-26 15:17:45 +0100 | [diff] [blame] | 17 | ## Foundation, Inc. |
Stefan Reinauer | 9aea04a | 2012-03-30 12:01:06 -0700 | [diff] [blame] | 18 | ## |
| 19 | |
Daisuke Nojiri | 54af625 | 2014-11-04 12:32:29 -0800 | [diff] [blame] | 20 | bootblock-y += chromeos.c |
| 21 | verstage-y += chromeos.c |
| 22 | romstage-y += chromeos.c |
| 23 | ramstage-y += chromeos.c |
| 24 | |
Patrick Georgi | 5f2055d | 2015-06-29 23:08:44 +0200 | [diff] [blame^] | 25 | libverstage-$(CONFIG_CHROMEOS_VBNV_CMOS) += vbnv_cmos.c |
David Hendricks | dad16b1 | 2014-08-22 15:40:15 -0700 | [diff] [blame] | 26 | romstage-$(CONFIG_CHROMEOS_VBNV_CMOS) += vbnv_cmos.c |
| 27 | ramstage-$(CONFIG_CHROMEOS_VBNV_CMOS) += vbnv_cmos.c |
Patrick Georgi | 5f2055d | 2015-06-29 23:08:44 +0200 | [diff] [blame^] | 28 | libverstage-$(CONFIG_CHROMEOS_VBNV_EC) += vbnv_ec.c |
David Hendricks | dad16b1 | 2014-08-22 15:40:15 -0700 | [diff] [blame] | 29 | romstage-$(CONFIG_CHROMEOS_VBNV_EC) += vbnv_ec.c |
| 30 | ramstage-$(CONFIG_CHROMEOS_VBNV_EC) += vbnv_ec.c |
Patrick Georgi | 5f2055d | 2015-06-29 23:08:44 +0200 | [diff] [blame^] | 31 | libverstage-$(CONFIG_CHROMEOS_VBNV_FLASH) += vbnv_flash.c |
Daisuke Nojiri | 54af625 | 2014-11-04 12:32:29 -0800 | [diff] [blame] | 32 | romstage-$(CONFIG_CHROMEOS_VBNV_FLASH) += vbnv_flash.c |
| 33 | ramstage-$(CONFIG_CHROMEOS_VBNV_FLASH) += vbnv_flash.c |
| 34 | |
David Hendricks | 739e6a8 | 2014-05-13 20:28:49 -0700 | [diff] [blame] | 35 | ramstage-$(CONFIG_ELOG) += elog.c |
Furquan Shaikh | aed887f | 2014-11-08 17:32:38 -0800 | [diff] [blame] | 36 | ramstage-$(CONFIG_HAVE_ACPI_TABLES) += gnvs.c |
Aaron Durbin | 06ece7d | 2014-02-14 00:30:04 -0600 | [diff] [blame] | 37 | ramstage-$(CONFIG_CHROMEOS_RAMOOPS) += ramoops.c |
Hung-Te Lin | 6eaaafa | 2014-02-21 16:21:00 +0800 | [diff] [blame] | 38 | romstage-y += vpd_decode.c cros_vpd.c |
Stephen Barber | b396a66 | 2015-03-11 15:53:10 -0700 | [diff] [blame] | 39 | ramstage-y += vpd_decode.c cros_vpd.c vpd_mac.c vpd_serialno.c vpd_calibration.c |
Julius Werner | 105f5b7 | 2015-01-21 17:39:49 -0800 | [diff] [blame] | 40 | ifeq ($(CONFIG_ARCH_X86)$(CONFIG_ARCH_MIPS),) |
| 41 | bootblock-y += watchdog.c |
| 42 | ramstage-y += watchdog.c |
| 43 | endif |
Aaron Durbin | fd79562 | 2013-03-01 17:12:26 -0600 | [diff] [blame] | 44 | |
Aaron Durbin | 0703ec4 | 2013-03-27 00:16:11 -0500 | [diff] [blame] | 45 | ifeq ($(MOCK_TPM),1) |
Furquan Shaikh | 99ac98f | 2014-04-23 10:18:48 -0700 | [diff] [blame] | 46 | CFLAGS_common += -DMOCK_TPM=1 |
Aaron Durbin | 0703ec4 | 2013-03-27 00:16:11 -0500 | [diff] [blame] | 47 | else |
Furquan Shaikh | 99ac98f | 2014-04-23 10:18:48 -0700 | [diff] [blame] | 48 | CFLAGS_common += -DMOCK_TPM=0 |
Aaron Durbin | 0703ec4 | 2013-03-27 00:16:11 -0500 | [diff] [blame] | 49 | endif |
| 50 | |
Patrick Georgi | 29ed46c | 2015-05-05 20:41:04 +0200 | [diff] [blame] | 51 | VB_SOURCE := 3rdparty/vboot |
Aaron Durbin | 1124cec | 2015-04-22 10:41:42 -0500 | [diff] [blame] | 52 | subdirs-$(CONFIG_VBOOT_VERIFY_FIRMWARE) += vboot2 |
Patrick Georgi | 4418776 | 2015-03-31 00:21:52 +0200 | [diff] [blame] | 53 | CPPFLAGS_common += -I$(VB_SOURCE)/firmware/include |