blob: 47113d25aadc0cd62c7bcb5d3e22738447dcb6e7 [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"
Andrew Geissler1fe918a2020-05-15 14:16:47 -05005DEPENDS = "libtss2-dev libtss2-mu-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 Bishopa3b01f42019-09-13 06:30:46 -04009 file://0001-configure.ac-stop-inserting-host-directories-into-co.patch \
Andrew Geissler1fe918a2020-05-15 14:16:47 -050010 file://fix_header_file.patch \
Andrew Geissler064f75b2020-06-27 00:14:46 -050011"
12
Andrew Geissler1fe918a2020-05-15 14:16:47 -050013SRCREV = "0241b08f069f0fdb3612f5c1b938144dbe9be811"
Brad Bishop19323692019-04-05 15:28:33 -040014
15S = "${WORKDIR}/git"
16
17inherit autotools pkgconfig
18
Brad Bishop26bdd442019-08-16 17:08:17 -040019EFIDIR ?= "/EFI/BOOT"
20
Patrick Williams213cb262021-08-07 19:21:33 -050021EFI_ARCH:x86 = "ia32"
22EFI_ARCH:x86-64 = "x86_64"
Andrew Geissler1fe918a2020-05-15 14:16:47 -050023
Patrick Williams213cb262021-08-07 19:21:33 -050024CFLAGS:append = " -I${STAGING_INCDIR}/efi -I${STAGING_INCDIR}/efi/${EFI_ARCH}"
Andrew Geissler1fe918a2020-05-15 14:16:47 -050025
Patrick Williams213cb262021-08-07 19:21:33 -050026EXTRA_OECONF:append = " \
Andrew Geissler1fe918a2020-05-15 14:16:47 -050027 --with-efi-includedir=${STAGING_INCDIR} \
28 --with-efi-crt0=${STAGING_LIBDIR}/crt0-efi-${EFI_ARCH}.o \
29 --with-efi-lds=${STAGING_LIBDIR}/elf_${EFI_ARCH}_efi.lds \
30"
31
Patrick Williams213cb262021-08-07 19:21:33 -050032do_compile:append() {
Brad Bishop26bdd442019-08-16 17:08:17 -040033 oe_runmake example
34}
35
Patrick Williams213cb262021-08-07 19:21:33 -050036do_install:append() {
Brad Bishop26bdd442019-08-16 17:08:17 -040037 install -d "${D}${EFIDIR}"
38 install -m 0755 "${B}"/example/*.efi "${D}${EFIDIR}"
39}
40
Brad Bishop19323692019-04-05 15:28:33 -040041COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
Brad Bishop26bdd442019-08-16 17:08:17 -040042
Patrick Williams213cb262021-08-07 19:21:33 -050043FILES:${PN} += "${EFIDIR}"
Andrew Geissler1fe918a2020-05-15 14:16:47 -050044
Patrick Williams213cb262021-08-07 19:21:33 -050045RDEPENDS:${PN} = "gnu-efi libtss2-mu"