blob: 8ac080c236f674e1455e0da85e1c567e1ebcd30f [file] [log] [blame]
Andrew Geisslerd5838332022-05-27 11:33:10 -05001DESCRIPTION = "IMA/EVM control utility"
2LICENSE = "GPL-2.0-with-OpenSSL-exception"
3LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
4
5DEPENDS += "openssl attr keyutils"
6
7DEPENDS:class-native += "openssl-native keyutils-native"
8
Andrew Geisslerdc9d6142023-05-19 09:38:37 -05009FILESEXTRAPATHS:append := "${THISDIR}/${PN}:"
10
11SRC_URI = " \
12 https://github.com/mimizohar/ima-evm-utils/releases/download/v${PV}/${BP}.tar.gz \
13 file://0001-Do-not-get-generation-using-ioctl-when-evm_portable-.patch \
14"
15SRC_URI[sha256sum] = "45f1caa3ad59ec59a1d6a74ea5df38c413488cd952ab62d98cf893c15e6f246d"
Andrew Geisslerd5838332022-05-27 11:33:10 -050016
17inherit pkgconfig autotools features_check
18
19REQUIRED_DISTRO_FEATURES = "ima"
20REQUIRED_DISTRO_FEATURES:class-native = ""
21
Andrew Geissler2daf84b2023-03-31 09:57:23 -050022EXTRA_OECONF += "MANPAGE_DOCBOOK_XSL=0"
Andrew Geisslerd5838332022-05-27 11:33:10 -050023EXTRA_OECONF:append:class-target = " --with-kernel-headers=${STAGING_KERNEL_BUILDDIR}"
24
25# blkid is called by evmctl when creating evm checksums.
26# This is less useful when signing files on the build host,
27# so disable it when compiling on the host.
28RDEPENDS:${PN}:append:class-target = " util-linux-blkid libcrypto attr libattr keyutils"
29
30BBCLASSEXTEND = "native nativesdk"