blob: a67e3c34d10de9159adb73c11fe4653b9c5f5f69 [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
Andrew Geissler1fe918a2020-05-15 14:16:47 -050021EFI_ARCH_x86 = "ia32"
22EFI_ARCH_x86-64 = "x86_64"
23
24CFLAGS_append = " -I${STAGING_INCDIR}/efi -I${STAGING_INCDIR}/efi/${EFI_ARCH}"
25
26EXTRA_OECONF_append = " \
27 --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
Brad Bishop26bdd442019-08-16 17:08:17 -040032do_compile_append() {
33 oe_runmake example
34}
35
36do_install_append() {
37 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
43FILES_${PN} += "${EFIDIR}"
Andrew Geissler1fe918a2020-05-15 14:16:47 -050044
45RDEPENDS_${PN} = "gnu-efi libtss2-mu"