From a655c8e4b4b883222c6266788d9a41200d28a9e8 Mon Sep 17 00:00:00 2001 From: Dmitry Eremin-Solenikov Date: Wed, 24 Jul 2019 16:03:37 +0300 Subject: tpm2-tcti-uefi: build and install examples Examples are usefull to actually check TPM2 from UEFI shell. Add them to tpm2-tcti-uefi package. Signed-off-by: Dmitry Eremin-Solenikov Signed-off-by: Armin Kuster --- .../recipes-tpm2/tpm2-tcti-uefi/tpm2-tcti-uefi_0.9.9.bb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/meta-tpm/recipes-tpm2/tpm2-tcti-uefi/tpm2-tcti-uefi_0.9.9.bb b/meta-tpm/recipes-tpm2/tpm2-tcti-uefi/tpm2-tcti-uefi_0.9.9.bb index b2d0b85..e822e29 100644 --- a/meta-tpm/recipes-tpm2/tpm2-tcti-uefi/tpm2-tcti-uefi_0.9.9.bb +++ b/meta-tpm/recipes-tpm2/tpm2-tcti-uefi/tpm2-tcti-uefi_0.9.9.bb @@ -14,6 +14,17 @@ S = "${WORKDIR}/git" inherit autotools pkgconfig +EFIDIR ?= "/EFI/BOOT" + +do_compile_append() { + oe_runmake example +} + +do_install_append() { + install -d "${D}${EFIDIR}" + install -m 0755 "${B}"/example/*.efi "${D}${EFIDIR}" +} + EFI_ARCH_x86 = "ia32" EFI_ARCH_x86-64 = "x86_64" @@ -24,3 +35,5 @@ EXTRA_OECONF_append = "\ --with-efi-lds=${STAGING_LIBDIR_NATIVE}/elf_${EFI_ARCH}_efi.lds \ " RDEPENDS_${PN} = "gnu-efi" + +FILES_${PN} += "${EFIDIR}" -- cgit v1.2.3-54-g00ecf