diff options
-rw-r--r-- | meta-tpm/recipes-tpm2/tpm2-tcti-uefi/files/configure_oe_fixup.patch | 27 | ||||
-rw-r--r-- | meta-tpm/recipes-tpm2/tpm2-tcti-uefi/tpm2-tcti-uefi_0.9.9.bb | 18 |
2 files changed, 45 insertions, 0 deletions
diff --git a/meta-tpm/recipes-tpm2/tpm2-tcti-uefi/files/configure_oe_fixup.patch b/meta-tpm/recipes-tpm2/tpm2-tcti-uefi/files/configure_oe_fixup.patch new file mode 100644 index 0000000..8a216cd --- /dev/null +++ b/meta-tpm/recipes-tpm2/tpm2-tcti-uefi/files/configure_oe_fixup.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | Upstream-Status: OE specific | ||
2 | Signed-off-by: Armin Kuster <akuster808@gmail.com> | ||
3 | |||
4 | Index: git/configure.ac | ||
5 | =================================================================== | ||
6 | --- git.orig/configure.ac | ||
7 | +++ git/configure.ac | ||
8 | @@ -84,9 +84,6 @@ AC_ARG_WITH([efi-lds], | ||
9 | AS_HELP_STRING([--with-efi-lds=LDS_PATH],[Path to gnu-efi lds file.]), | ||
10 | [], | ||
11 | [with_efi_lds="/usr/lib/elf_${ARCH}_efi.lds"]) | ||
12 | -AC_CHECK_FILE(["${with_efi_lds}"], | ||
13 | - [], | ||
14 | - [AC_MSG_ERROR([Missing file: ${with_efi_lds}.])]) | ||
15 | EXTRA_LDFLAGS="-L /usr/lib -L /usr/lib64 -Wl,--script=${with_efi_lds}" | ||
16 | |||
17 | # path to object file from gnu-efi | ||
18 | @@ -94,9 +91,6 @@ AC_ARG_WITH([efi-crt0], | ||
19 | AS_HELP_STRING([--with-efi-crt0=OBJ_PATH],[Path to gnu-efi crt0 object file.]), | ||
20 | [], | ||
21 | [with_efi_crt0="/usr/lib/crt0-efi-${ARCH}.o"]) | ||
22 | -AC_CHECK_FILE(["${with_efi_crt0}"], | ||
23 | - [], | ||
24 | - [AC_MSG_ERROR([Missing ${with_efi_crt0} file.])]) | ||
25 | EXTRA_LDLIBS="${with_efi_crt0}" | ||
26 | |||
27 | # check for efi and gnuefi libraries | ||
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 new file mode 100644 index 0000000..815691d --- /dev/null +++ b/meta-tpm/recipes-tpm2/tpm2-tcti-uefi/tpm2-tcti-uefi_0.9.9.bb | |||
@@ -0,0 +1,18 @@ | |||
1 | SUMMARY = "TCTI module for use with TSS2 libraries in UEFI environment" | ||
2 | SECTION = "security/tpm" | ||
3 | LICENSE = "BSD-2-Clause" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=500b2e742befc3da00684d8a1d5fd9da" | ||
5 | DEPENDS = "libtss2-dev gnu-efi-native gnu-efi pkgconfig" | ||
6 | |||
7 | SRC_URI = "git://github.com/tpm2-software/tpm2-tcti-uefi.git \ | ||
8 | file://configure_oe_fixup.patch \ | ||
9 | " | ||
10 | SRCREV = "131889d12d2c7d8974711d2ebd1032cd32577b7f" | ||
11 | |||
12 | S = "${WORKDIR}/git" | ||
13 | |||
14 | inherit autotools pkgconfig | ||
15 | |||
16 | COMPATIBLE_HOST = "(i.86|x86_64).*-linux" | ||
17 | EXTRA_OECONF_append = " --with-efi-includedir=${STAGING_INCDIR}/efi --with-efi-lds=${STAGING_LIBDIR_NATIVE}/" | ||
18 | RDEPENDS_${PN} = "gnu-efi" | ||