lib/metadata_hash: Include metadata_hash in verstage
On boards where vboot starts before bootblock, build metadata_hash in verstage. This will allow to enable CBFS verification for such platforms. BUG=b:227809919 TEST=Build and boot to OS in Skyrim with CBFS verification enabled using x86 verstage and PSP verstage. Change-Id: I4269069b66ed66c7b1a47fdef2fd0a8054b2e6a1 Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/68134 Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
7835861f9d
commit
f19e461f4f
|
@ -50,7 +50,11 @@ bootblock-y += prog_ops.c
|
||||||
bootblock-y += cbfs.c
|
bootblock-y += cbfs.c
|
||||||
bootblock-$(CONFIG_GENERIC_GPIO_LIB) += gpio.c
|
bootblock-$(CONFIG_GENERIC_GPIO_LIB) += gpio.c
|
||||||
bootblock-y += libgcc.c
|
bootblock-y += libgcc.c
|
||||||
|
ifneq ($(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK),y)
|
||||||
bootblock-$(CONFIG_CBFS_VERIFICATION) += metadata_hash.c
|
bootblock-$(CONFIG_CBFS_VERIFICATION) += metadata_hash.c
|
||||||
|
else # ($(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK),y)
|
||||||
|
verstage-$(CONFIG_CBFS_VERIFICATION) += metadata_hash.c
|
||||||
|
endif # ($(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK),y)
|
||||||
bootblock-$(CONFIG_GENERIC_UDELAY) += timer.c
|
bootblock-$(CONFIG_GENERIC_UDELAY) += timer.c
|
||||||
|
|
||||||
bootblock-$(CONFIG_COLLECT_TIMESTAMPS) += timestamp.c
|
bootblock-$(CONFIG_COLLECT_TIMESTAMPS) += timestamp.c
|
||||||
|
|
Loading…
Reference in New Issue