mirror of
https://git.yoctoproject.org/meta-security
synced 2026-01-11 15:00:34 +00:00
Remove or update S definitions as required to work with oe-core S/UNPACKDIR changes. Signed-off-by: Scott Murray <scott.murray@konsulko.com>
46 lines
1.3 KiB
BlitzBasic
46 lines
1.3 KiB
BlitzBasic
SUMMARY = "TCTI module for use with TSS2 libraries in UEFI environment"
|
|
SECTION = "security/tpm"
|
|
LICENSE = "BSD-2-Clause"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=500b2e742befc3da00684d8a1d5fd9da"
|
|
DEPENDS = "libtss2-dev libtss2-mu-dev gnu-efi-native gnu-efi pkgconfig autoconf-archive-native"
|
|
|
|
SRC_URI = "git://github.com/tpm2-software/tpm2-tcti-uefi.git;branch=master;protocol=https \
|
|
file://configure_oe_fixup.patch \
|
|
file://0001-configure.ac-stop-inserting-host-directories-into-co.patch \
|
|
file://fix_header_file.patch \
|
|
"
|
|
|
|
SRCREV = "0241b08f069f0fdb3612f5c1b938144dbe9be811"
|
|
|
|
UPSTREAM_CHECK_URI = "https://github.com/tpm2-software/${BPN}/releases"
|
|
|
|
inherit autotools pkgconfig
|
|
|
|
EFIDIR ?= "/EFI/BOOT"
|
|
|
|
EFI_ARCH:x86 = "ia32"
|
|
EFI_ARCH:x86-64 = "x86_64"
|
|
|
|
CFLAGS:append = " -I${STAGING_INCDIR}/efi -I${STAGING_INCDIR}/efi/${EFI_ARCH}"
|
|
|
|
EXTRA_OECONF:append = " \
|
|
--with-efi-includedir=${STAGING_INCDIR} \
|
|
--with-efi-crt0=${STAGING_LIBDIR}/crt0-efi-${EFI_ARCH}.o \
|
|
--with-efi-lds=${STAGING_LIBDIR}/elf_${EFI_ARCH}_efi.lds \
|
|
"
|
|
|
|
do_compile:append() {
|
|
oe_runmake example
|
|
}
|
|
|
|
do_install:append() {
|
|
install -d "${D}${EFIDIR}"
|
|
install -m 0755 "${B}"/example/*.efi "${D}${EFIDIR}"
|
|
}
|
|
|
|
COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
|
|
|
|
FILES:${PN} += "${EFIDIR}"
|
|
|
|
RDEPENDS:${PN} = "gnu-efi libtss2-mu"
|