From 3c6d9e187957ad3a03003422d50ad724c6663938 Mon Sep 17 00:00:00 2001 From: Werner Zeh Date: Mon, 26 Nov 2018 06:54:13 +0100 Subject: 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 Reviewed-on: https://review.coreboot.org/c/29827 Tested-by: build bot (Jenkins) Reviewed-by: Philipp Deppenwiese --- src/security/vboot/Makefile.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/security/vboot/Makefile.inc') diff --git a/src/security/vboot/Makefile.inc b/src/security/vboot/Makefile.inc index da5d5b146e..ae80a02965 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 -- cgit v1.2.3