soc/intel/ptl: Update ME specification version to 21
[coreboot.git] / src / vendorcode / eltan / security / verified_boot / Makefile.mk
blob9158760322bdcf00a0f20aafc127c39eb02354e7
1 ## SPDX-License-Identifier: GPL-2.0-only
3 ifneq ($(filter y,$(CONFIG_VENDORCODE_ELTAN_VBOOT) $(CONFIG_VENDORCODE_ELTAN_MBOOT)),)
5 CPPFLAGS_common += -I$(src)/security/vboot
7 bootblock-y += ../../../../security/vboot/vboot_lib.c
8 bootblock-y += vboot_check.c
9 postcar-y += vboot_check.c
10 romstage-y += vboot_check.c
11 ramstage-y += vboot_check.c
13 ifeq ($(CONFIG_VENDORCODE_ELTAN_VBOOT),y)
14 cbfs-files-y += oemmanifest.bin
15 oemmanifest.bin-file := $(obj)/oemmanifest.bin
16 oemmanifest.bin-position := $(CONFIG_VENDORCODE_ELTAN_OEM_MANIFEST_LOC)
17 oemmanifest.bin-type := raw
19 $(obj)/oemmanifest.bin:
20 ifeq ($(CONFIG_VENDORCODE_ELTAN_VBOOT_SIGNED_MANIFEST),y)
21 dd if=/dev/zero of=$@ seek=8 bs=$(CONFIG_VENDORCODE_ELTAN_OEM_MANIFEST_ITEM_SIZE) count=$(CONFIG_VENDORCODE_ELTAN_OEM_MANIFEST_ITEMS)
22 else # ($(CONFIG_VERIFIED_BOOT_SIGNED_MANIFEST),y)
23 dd if=/dev/zero of=$@ bs=$(CONFIG_VENDORCODE_ELTAN_OEM_MANIFEST_ITEM_SIZE) count=$(CONFIG_VENDORCODE_ELTAN_OEM_MANIFEST_ITEMS)
24 endif # ($(CONFIG_VENDORCODE_ELTAN_VBOOT_SIGNED_MANIFEST),y)
26 ifeq ($(CONFIG_VENDORCODE_ELTAN_VBOOT_SIGNED_MANIFEST),y)
27 cbfs-files-y += vboot_public_key.bin
28 vboot_public_key.bin-file := $(call strip_quotes, $(CONFIG_VENDORCODE_ELTAN_VBOOT_KEY_FILE))
29 vboot_public_key.bin-position := $(CONFIG_VENDORCODE_ELTAN_VBOOT_KEY_LOCATION)
30 vboot_public_key.bin-type := raw
32 endif # ($(CONFIG_VENDORCODE_ELTAN_VBOOT_SIGNED_MANIFEST),y)
33 endif # CONFIG_VENDORCODE_ELTAN_VBOOT
35 endif # CONFIG_VENDORCODE_ELTAN_VBOOT or CONFIG_VENDORCODE_ELTAN_MBOOT