summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com>2019-07-24 16:03:37 +0300
committerArmin Kuster <akuster808@gmail.com>2019-08-04 12:17:25 -0700
commita655c8e4b4b883222c6266788d9a41200d28a9e8 (patch)
treeb418bf715b97b62e2b119450e8c0c92c87f94410
parent60fc73e4daa6a8d02e4340a40dbf319fbd955740 (diff)
downloadmeta-security-a655c8e4b4b883222c6266788d9a41200d28a9e8.tar.gz
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 <dmitry_eremin-solenikov@mentor.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-tpm/recipes-tpm2/tpm2-tcti-uefi/tpm2-tcti-uefi_0.9.9.bb13
1 files changed, 13 insertions, 0 deletions
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"
14 14
15inherit autotools pkgconfig 15inherit autotools pkgconfig
16 16
17EFIDIR ?= "/EFI/BOOT"
18
19do_compile_append() {
20 oe_runmake example
21}
22
23do_install_append() {
24 install -d "${D}${EFIDIR}"
25 install -m 0755 "${B}"/example/*.efi "${D}${EFIDIR}"
26}
27
17EFI_ARCH_x86 = "ia32" 28EFI_ARCH_x86 = "ia32"
18EFI_ARCH_x86-64 = "x86_64" 29EFI_ARCH_x86-64 = "x86_64"
19 30
@@ -24,3 +35,5 @@ EXTRA_OECONF_append = "\
24 --with-efi-lds=${STAGING_LIBDIR_NATIVE}/elf_${EFI_ARCH}_efi.lds \ 35 --with-efi-lds=${STAGING_LIBDIR_NATIVE}/elf_${EFI_ARCH}_efi.lds \
25" 36"
26RDEPENDS_${PN} = "gnu-efi" 37RDEPENDS_${PN} = "gnu-efi"
38
39FILES_${PN} += "${EFIDIR}"