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>
This commit is contained in:
parent
ef05dc8a50
commit
3c6d9e1879
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue