blob: 7c41ec80192672a279502c73a5436a52991d41bd [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
17## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18##
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
Furquan Shaikh99ac98f2014-04-23 10:18:48 -070035romstage-$(CONFIG_ARCH_ROMSTAGE_X86_32) += vboot.c
David Hendricks739e6a82014-05-13 20:28:49 -070036ramstage-$(CONFIG_ELOG) += elog.c
Furquan Shaikhaed887f2014-11-08 17:32:38 -080037ramstage-$(CONFIG_HAVE_ACPI_TABLES) += gnvs.c
Daisuke Nojiri54af6252014-11-04 12:32:29 -080038verstage-y += fmap.c
Stefan Reinauer357bb2d2012-08-09 13:44:38 -070039romstage-y += fmap.c
40ramstage-y += fmap.c
Aaron Durbin06ece7d2014-02-14 00:30:04 -060041ramstage-$(CONFIG_CHROMEOS_RAMOOPS) += ramoops.c
Duncan Laurie86bf3f52012-08-15 13:14:58 -070042smm-y += fmap.c
Hung-Te Lin6eaaafa2014-02-21 16:21:00 +080043romstage-y += vpd_decode.c cros_vpd.c
Stephen Barberb396a662015-03-11 15:53:10 -070044ramstage-y += vpd_decode.c cros_vpd.c vpd_mac.c vpd_serialno.c vpd_calibration.c
Julius Werner105f5b72015-01-21 17:39:49 -080045ifeq ($(CONFIG_ARCH_X86)$(CONFIG_ARCH_MIPS),)
46bootblock-y += watchdog.c
47ramstage-y += watchdog.c
48endif
Aaron Durbinfd795622013-03-01 17:12:26 -060049
Aaron Durbin0703ec42013-03-27 00:16:11 -050050ifeq ($(MOCK_TPM),1)
Furquan Shaikh99ac98f2014-04-23 10:18:48 -070051CFLAGS_common += -DMOCK_TPM=1
Aaron Durbin0703ec42013-03-27 00:16:11 -050052else
Furquan Shaikh99ac98f2014-04-23 10:18:48 -070053CFLAGS_common += -DMOCK_TPM=0
Aaron Durbin0703ec42013-03-27 00:16:11 -050054endif
55
Patrick Georgi29ed46c2015-05-05 20:41:04 +020056VB_SOURCE := 3rdparty/vboot
Aaron Durbin1124cec2015-04-22 10:41:42 -050057subdirs-$(CONFIG_VBOOT_VERIFY_FIRMWARE) += vboot2
Patrick Georgi44187762015-03-31 00:21:52 +020058CPPFLAGS_common += -I$(VB_SOURCE)/firmware/include