diff options
author | Dmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com> | 2019-07-24 16:03:37 +0300 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2019-08-04 12:17:25 -0700 |
commit | a655c8e4b4b883222c6266788d9a41200d28a9e8 (patch) | |
tree | b418bf715b97b62e2b119450e8c0c92c87f94410 | |
parent | 60fc73e4daa6a8d02e4340a40dbf319fbd955740 (diff) | |
download | meta-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.bb | 13 |
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 | ||
15 | inherit autotools pkgconfig | 15 | inherit autotools pkgconfig |
16 | 16 | ||
17 | EFIDIR ?= "/EFI/BOOT" | ||
18 | |||
19 | do_compile_append() { | ||
20 | oe_runmake example | ||
21 | } | ||
22 | |||
23 | do_install_append() { | ||
24 | install -d "${D}${EFIDIR}" | ||
25 | install -m 0755 "${B}"/example/*.efi "${D}${EFIDIR}" | ||
26 | } | ||
27 | |||
17 | EFI_ARCH_x86 = "ia32" | 28 | EFI_ARCH_x86 = "ia32" |
18 | EFI_ARCH_x86-64 = "x86_64" | 29 | EFI_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 | " |
26 | RDEPENDS_${PN} = "gnu-efi" | 37 | RDEPENDS_${PN} = "gnu-efi" |
38 | |||
39 | FILES_${PN} += "${EFIDIR}" | ||