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 | ## |
Stefan Reinauer | 9aea04a | 2012-03-30 12:01:06 -0700 | [diff] [blame] | 15 | |
Daisuke Nojiri | 54af625 | 2014-11-04 12:32:29 -0800 | [diff] [blame] | 16 | bootblock-y += chromeos.c |
| 17 | verstage-y += chromeos.c |
| 18 | romstage-y += chromeos.c |
| 19 | ramstage-y += chromeos.c |
| 20 | |
Patrick Georgi | b5e2090 | 2015-06-30 12:39:23 +0200 | [diff] [blame] | 21 | bootblock-$(CONFIG_CHROMEOS_VBNV_CMOS) += vbnv_cmos.c |
| 22 | verstage-$(CONFIG_CHROMEOS_VBNV_CMOS) += vbnv_cmos.c |
David Hendricks | dad16b1 | 2014-08-22 15:40:15 -0700 | [diff] [blame] | 23 | romstage-$(CONFIG_CHROMEOS_VBNV_CMOS) += vbnv_cmos.c |
| 24 | ramstage-$(CONFIG_CHROMEOS_VBNV_CMOS) += vbnv_cmos.c |
Patrick Georgi | b5e2090 | 2015-06-30 12:39:23 +0200 | [diff] [blame] | 25 | |
| 26 | bootblock-$(CONFIG_CHROMEOS_VBNV_EC) += vbnv_ec.c |
| 27 | verstage-$(CONFIG_CHROMEOS_VBNV_EC) += vbnv_ec.c |
David Hendricks | dad16b1 | 2014-08-22 15:40:15 -0700 | [diff] [blame] | 28 | romstage-$(CONFIG_CHROMEOS_VBNV_EC) += vbnv_ec.c |
| 29 | ramstage-$(CONFIG_CHROMEOS_VBNV_EC) += vbnv_ec.c |
Patrick Georgi | b5e2090 | 2015-06-30 12:39:23 +0200 | [diff] [blame] | 30 | |
| 31 | bootblock-$(CONFIG_CHROMEOS_VBNV_FLASH) += vbnv_flash.c |
| 32 | verstage-$(CONFIG_CHROMEOS_VBNV_FLASH) += vbnv_flash.c |
Daisuke Nojiri | 54af625 | 2014-11-04 12:32:29 -0800 | [diff] [blame] | 33 | romstage-$(CONFIG_CHROMEOS_VBNV_FLASH) += vbnv_flash.c |
| 34 | ramstage-$(CONFIG_CHROMEOS_VBNV_FLASH) += vbnv_flash.c |
| 35 | |
David Hendricks | 739e6a8 | 2014-05-13 20:28:49 -0700 | [diff] [blame] | 36 | ramstage-$(CONFIG_ELOG) += elog.c |
Furquan Shaikh | aed887f | 2014-11-08 17:32:38 -0800 | [diff] [blame] | 37 | ramstage-$(CONFIG_HAVE_ACPI_TABLES) += gnvs.c |
Aaron Durbin | 06ece7d | 2014-02-14 00:30:04 -0600 | [diff] [blame] | 38 | ramstage-$(CONFIG_CHROMEOS_RAMOOPS) += ramoops.c |
Hung-Te Lin | b15a0d0 | 2015-07-13 15:49:57 +0800 | [diff] [blame] | 39 | romstage-y += vpd_decode.c |
Stephen Barber | b396a66 | 2015-03-11 15:53:10 -0700 | [diff] [blame] | 40 | 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] | 41 | ifeq ($(CONFIG_ARCH_X86)$(CONFIG_ARCH_MIPS),) |
| 42 | bootblock-y += watchdog.c |
| 43 | ramstage-y += watchdog.c |
| 44 | endif |
Aaron Durbin | fd79562 | 2013-03-01 17:12:26 -0600 | [diff] [blame] | 45 | |
Aaron Durbin | 0703ec4 | 2013-03-27 00:16:11 -0500 | [diff] [blame] | 46 | ifeq ($(MOCK_TPM),1) |
Furquan Shaikh | 99ac98f | 2014-04-23 10:18:48 -0700 | [diff] [blame] | 47 | CFLAGS_common += -DMOCK_TPM=1 |
Aaron Durbin | 0703ec4 | 2013-03-27 00:16:11 -0500 | [diff] [blame] | 48 | else |
Furquan Shaikh | 99ac98f | 2014-04-23 10:18:48 -0700 | [diff] [blame] | 49 | CFLAGS_common += -DMOCK_TPM=0 |
Aaron Durbin | 0703ec4 | 2013-03-27 00:16:11 -0500 | [diff] [blame] | 50 | endif |
| 51 | |
Paul Kocialkowski | c7ae731 | 2015-08-03 14:11:54 +0200 | [diff] [blame] | 52 | VB_SOURCE ?= 3rdparty/vboot |
Aaron Durbin | 1124cec | 2015-04-22 10:41:42 -0500 | [diff] [blame] | 53 | subdirs-$(CONFIG_VBOOT_VERIFY_FIRMWARE) += vboot2 |
Patrick Georgi | 4418776 | 2015-03-31 00:21:52 +0200 | [diff] [blame] | 54 | CPPFLAGS_common += -I$(VB_SOURCE)/firmware/include |