blob: df244358ccfaa0951a4ad366fe5fa06011acb488 [file] [log] [blame]
Stefan Reinauer9aea04a2012-03-30 12:01:06 -07001##
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 Georgib890a122015-03-26 15:17:45 +010017## Foundation, Inc.
Stefan Reinauer9aea04a2012-03-30 12:01:06 -070018##
19
Daisuke Nojiri54af6252014-11-04 12:32:29 -080020bootblock-y += chromeos.c
21verstage-y += chromeos.c
22romstage-y += chromeos.c
23ramstage-y += chromeos.c
24
25verstage-$(CONFIG_CHROMEOS_VBNV_CMOS) += vbnv_cmos.c
David Hendricksdad16b12014-08-22 15:40:15 -070026romstage-$(CONFIG_CHROMEOS_VBNV_CMOS) += vbnv_cmos.c
27ramstage-$(CONFIG_CHROMEOS_VBNV_CMOS) += vbnv_cmos.c
Daisuke Nojiri54af6252014-11-04 12:32:29 -080028verstage-$(CONFIG_CHROMEOS_VBNV_EC) += vbnv_ec.c
David Hendricksdad16b12014-08-22 15:40:15 -070029romstage-$(CONFIG_CHROMEOS_VBNV_EC) += vbnv_ec.c
30ramstage-$(CONFIG_CHROMEOS_VBNV_EC) += vbnv_ec.c
Daisuke Nojiri54af6252014-11-04 12:32:29 -080031verstage-$(CONFIG_CHROMEOS_VBNV_FLASH) += vbnv_flash.c
32romstage-$(CONFIG_CHROMEOS_VBNV_FLASH) += vbnv_flash.c
33ramstage-$(CONFIG_CHROMEOS_VBNV_FLASH) += vbnv_flash.c
34
David Hendricks739e6a82014-05-13 20:28:49 -070035ramstage-$(CONFIG_ELOG) += elog.c
Furquan Shaikhaed887f2014-11-08 17:32:38 -080036ramstage-$(CONFIG_HAVE_ACPI_TABLES) += gnvs.c
Aaron Durbin06ece7d2014-02-14 00:30:04 -060037ramstage-$(CONFIG_CHROMEOS_RAMOOPS) += ramoops.c
Hung-Te Lin6eaaafa2014-02-21 16:21:00 +080038romstage-y += vpd_decode.c cros_vpd.c
Stephen Barberb396a662015-03-11 15:53:10 -070039ramstage-y += vpd_decode.c cros_vpd.c vpd_mac.c vpd_serialno.c vpd_calibration.c
Julius Werner105f5b72015-01-21 17:39:49 -080040ifeq ($(CONFIG_ARCH_X86)$(CONFIG_ARCH_MIPS),)
41bootblock-y += watchdog.c
42ramstage-y += watchdog.c
43endif
Aaron Durbinfd795622013-03-01 17:12:26 -060044
Aaron Durbin0703ec42013-03-27 00:16:11 -050045ifeq ($(MOCK_TPM),1)
Furquan Shaikh99ac98f2014-04-23 10:18:48 -070046CFLAGS_common += -DMOCK_TPM=1
Aaron Durbin0703ec42013-03-27 00:16:11 -050047else
Furquan Shaikh99ac98f2014-04-23 10:18:48 -070048CFLAGS_common += -DMOCK_TPM=0
Aaron Durbin0703ec42013-03-27 00:16:11 -050049endif
50
Patrick Georgi29ed46c2015-05-05 20:41:04 +020051VB_SOURCE := 3rdparty/vboot
Aaron Durbin1124cec2015-04-22 10:41:42 -050052subdirs-$(CONFIG_VBOOT_VERIFY_FIRMWARE) += vboot2
Patrick Georgi44187762015-03-31 00:21:52 +020053CPPFLAGS_common += -I$(VB_SOURCE)/firmware/include