diff options
author | Werner Zeh <werner.zeh@siemens.com> | 2018-11-26 06:54:13 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-11-28 11:52:12 +0000 |
commit | 3c6d9e187957ad3a03003422d50ad724c6663938 (patch) | |
tree | 813612fe227e4f14bcc6ad7f546e451360916220 /src | |
parent | ef05dc8a50fd68024f1f6c7574380768cb070550 (diff) | |
download | coreboot-3c6d9e187957ad3a03003422d50ad724c6663938.tar.gz coreboot-3c6d9e187957ad3a03003422d50ad724c6663938.tar.bz2 coreboot-3c6d9e187957ad3a03003422d50ad724c6663938.zip |
security/vboot: Add VB2_LIB to romstage sources without dependencies
The coming feature "measured boot" relies on VB2_LIB in romstage. In the
case where there is no separate verstage, compile the library just for
romstage as it will then be shared across verstage and romstage code. If
there is a separate verstage, compile the library separately for
verstage and romstage.
Change-Id: I8126c21b8fbe8dd65d95af49cbe2ad776b8ef605
Signed-off-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-on: https://review.coreboot.org/c/29827
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/security/vboot/Makefile.inc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/security/vboot/Makefile.inc b/src/security/vboot/Makefile.inc index da5d5b146ebb..ae80a0296551 100644 --- a/src/security/vboot/Makefile.inc +++ b/src/security/vboot/Makefile.inc @@ -110,16 +110,14 @@ endef # vboot-for-stage CFLAGS_common += -I3rdparty/vboot/firmware/2lib/include -$(eval $(call vboot-for-stage,verstage)) $(eval $(call vboot-for-stage,bootblock)) +$(eval $(call vboot-for-stage,romstage)) $(eval $(call vboot-for-stage,ramstage)) $(eval $(call vboot-for-stage,postcar)) ifeq ($(CONFIG_VBOOT_SEPARATE_VERSTAGE),y) -ifeq ($(CONFIG_VBOOT_HAS_REC_HASH_SPACE),y) -$(eval $(call vboot-for-stage,romstage)) -endif +$(eval $(call vboot-for-stage,verstage)) cbfs-files-$(CONFIG_VBOOT_SEPARATE_VERSTAGE) += $(CONFIG_CBFS_PREFIX)/verstage $(CONFIG_CBFS_PREFIX)/verstage-file := $(objcbfs)/verstage.elf |