blob: e822e2974f37c14d8abfba017f938fb31e070993 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001SUMMARY = "TCTI module for use with TSS2 libraries in UEFI environment"
2SECTION = "security/tpm"
3LICENSE = "BSD-2-Clause"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=500b2e742befc3da00684d8a1d5fd9da"
Brad Bishop26bdd442019-08-16 17:08:17 -04005DEPENDS = "libtss2-dev gnu-efi-native gnu-efi pkgconfig autoconf-archive-native"
Brad Bishop19323692019-04-05 15:28:33 -04006
7SRC_URI = "git://github.com/tpm2-software/tpm2-tcti-uefi.git \
8 file://configure_oe_fixup.patch \
Brad Bishop26bdd442019-08-16 17:08:17 -04009 file://0001-configure.ac-stop-inserting-host-directories-into-co.patch \
Brad Bishop19323692019-04-05 15:28:33 -040010 "
Brad Bishop26bdd442019-08-16 17:08:17 -040011SRCREV = "7baf1eebfeb56a896bdd5d677fb24377d619eb9d"
Brad Bishop19323692019-04-05 15:28:33 -040012
13S = "${WORKDIR}/git"
14
15inherit autotools pkgconfig
16
Brad Bishop26bdd442019-08-16 17:08:17 -040017EFIDIR ?= "/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
28EFI_ARCH_x86 = "ia32"
29EFI_ARCH_x86-64 = "x86_64"
30
Brad Bishop19323692019-04-05 15:28:33 -040031COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
Brad Bishop26bdd442019-08-16 17:08:17 -040032EXTRA_OECONF_append = "\
33 --with-efi-includedir=${STAGING_INCDIR}/efi \
34 --with-efi-crt0=${STAGING_LIBDIR_NATIVE}/crt0-efi-${EFI_ARCH}.o \
35 --with-efi-lds=${STAGING_LIBDIR_NATIVE}/elf_${EFI_ARCH}_efi.lds \
36"
Brad Bishop19323692019-04-05 15:28:33 -040037RDEPENDS_${PN} = "gnu-efi"
Brad Bishop26bdd442019-08-16 17:08:17 -040038
39FILES_${PN} += "${EFIDIR}"