2 ## This file is part of the coreboot project.
5 ## SPDX-License-Identifier: GPL-2.0-only
7 ifneq ($(filter y,$(CONFIG_VENDORCODE_ELTAN_VBOOT) $(CONFIG_VENDORCODE_ELTAN_MBOOT)),)
9 CPPFLAGS_common += -I$(src)/security/vboot
11 bootblock-y += ../../../../security/vboot/vboot_lib.c
12 bootblock-y += vboot_check.c
13 postcar-y += vboot_check.c
14 romstage-y += vboot_check.c
15 ramstage-y += vboot_check.c
17 ifeq ($(CONFIG_VENDORCODE_ELTAN_VBOOT),y)
18 cbfs-files-y += oemmanifest.bin
19 oemmanifest.bin-file := $(obj)/oemmanifest.bin
20 oemmanifest.bin-position := $(CONFIG_VENDORCODE_ELTAN_OEM_MANIFEST_LOC)
21 oemmanifest.bin-type := raw
23 $(obj)/oemmanifest.bin:
24 ifeq ($(CONFIG_VENDORCODE_ELTAN_VBOOT_SIGNED_MANIFEST),y)
25 dd if=/dev/zero of=$@ seek=8 bs=$(CONFIG_VENDORCODE_ELTAN_OEM_MANIFEST_ITEM_SIZE) count=$(CONFIG_VENDORCODE_ELTAN_OEM_MANIFEST_ITEMS)
26 else # ($(CONFIG_VERIFIED_BOOT_SIGNED_MANIFEST),y)
27 dd if=/dev/zero of=$@ bs=$(CONFIG_VENDORCODE_ELTAN_OEM_MANIFEST_ITEM_SIZE) count=$(CONFIG_VENDORCODE_ELTAN_OEM_MANIFEST_ITEMS)
28 endif # ($(CONFIG_VENDORCODE_ELTAN_VBOOT_SIGNED_MANIFEST),y)
30 ifeq ($(CONFIG_VENDORCODE_ELTAN_VBOOT_SIGNED_MANIFEST),y)
31 cbfs-files-y += vboot_public_key.bin
32 vboot_public_key.bin-file := $(call strip_quotes, $(CONFIG_VENDORCODE_ELTAN_VBOOT_KEY_FILE))
33 vboot_public_key.bin-position := $(CONFIG_VENDORCODE_ELTAN_VBOOT_KEY_LOCATION)
34 vboot_public_key.bin-type := raw
36 endif # ($(CONFIG_VENDORCODE_ELTAN_VBOOT_SIGNED_MANIFEST),y)
37 endif # CONFIG_VENDORCODE_ELTAN_VBOOT
39 endif # CONFIG_VENDORCODE_ELTAN_VBOOT or CONFIG_VENDORCODE_ELTAN_MBOOT