blob: 9c60e2b9d51feef8c41cec42b46c4775b8486bda [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
Patrick Williams53961c22022-01-20 11:06:23 -06007SRC_URI = "git://github.com/tpm2-software/tpm2-tcti-uefi.git;branch=master;protocol=https \
Brad Bishop19323692019-04-05 15:28:33 -04008 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
Patrick Williamsdb4c27e2022-08-05 08:10:29 -050015UPSTREAM_CHECK_URI = "https://github.com/tpm2-software/${BPN}/releases"
16
Brad Bishop19323692019-04-05 15:28:33 -040017S = "${WORKDIR}/git"
18
19inherit autotools pkgconfig
20
Brad Bishop26bdd442019-08-16 17:08:17 -040021EFIDIR ?= "/EFI/BOOT"
22
Patrick Williams213cb262021-08-07 19:21:33 -050023EFI_ARCH:x86 = "ia32"
24EFI_ARCH:x86-64 = "x86_64"
Andrew Geissler1fe918a2020-05-15 14:16:47 -050025
Patrick Williams213cb262021-08-07 19:21:33 -050026CFLAGS:append = " -I${STAGING_INCDIR}/efi -I${STAGING_INCDIR}/efi/${EFI_ARCH}"
Andrew Geissler1fe918a2020-05-15 14:16:47 -050027
Patrick Williams213cb262021-08-07 19:21:33 -050028EXTRA_OECONF:append = " \
Andrew Geissler1fe918a2020-05-15 14:16:47 -050029 --with-efi-includedir=${STAGING_INCDIR} \
30 --with-efi-crt0=${STAGING_LIBDIR}/crt0-efi-${EFI_ARCH}.o \
31 --with-efi-lds=${STAGING_LIBDIR}/elf_${EFI_ARCH}_efi.lds \
32"
33
Patrick Williams213cb262021-08-07 19:21:33 -050034do_compile:append() {
Brad Bishop26bdd442019-08-16 17:08:17 -040035 oe_runmake example
36}
37
Patrick Williams213cb262021-08-07 19:21:33 -050038do_install:append() {
Brad Bishop26bdd442019-08-16 17:08:17 -040039 install -d "${D}${EFIDIR}"
40 install -m 0755 "${B}"/example/*.efi "${D}${EFIDIR}"
41}
42
Brad Bishop19323692019-04-05 15:28:33 -040043COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
Brad Bishop26bdd442019-08-16 17:08:17 -040044
Patrick Williams213cb262021-08-07 19:21:33 -050045FILES:${PN} += "${EFIDIR}"
Andrew Geissler1fe918a2020-05-15 14:16:47 -050046
Patrick Williams213cb262021-08-07 19:21:33 -050047RDEPENDS:${PN} = "gnu-efi libtss2-mu"