blob: bd85583030fbadb28eb6ce96d9836ae6e9ab794d [file] [log] [blame]
Brad Bishop15ae2502019-06-18 21:44:24 -04001DESCRIPTION = "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
Brad Bishop26bdd442019-08-16 17:08:17 -04009PV = "1.2.1+git${SRCPV}"
10SRCREV = "3eab1f93b634249c1720f65fcb495b1996f0256e"
11SRC_URI = "git://git.code.sf.net/p/linux-ima/ima-evm-utils;branch=ima-evm-utils-1.2.y"
Brad Bishop15ae2502019-06-18 21:44:24 -040012
13# Documentation depends on asciidoc, which we do not have, so
14# do not build documentation.
15SRC_URI += "file://disable-doc-creation.patch"
16
17# Workaround for upstream incompatibility with older Linux distros.
18# Relevant for us when compiling ima-evm-utils-native.
19SRC_URI += "file://evmctl.c-do-not-depend-on-xattr.h-with-IMA-defines.patch"
20
21# Required for xargs with more than one path as argument (better for performance).
22SRC_URI += "file://command-line-apply-operation-to-all-paths.patch"
23
Brad Bishop15ae2502019-06-18 21:44:24 -040024S = "${WORKDIR}/git"
25
Brad Bishopa48c0142020-01-06 09:48:41 -050026inherit pkgconfig autotools features_check
27
28REQUIRED_DISTRO_FEATURES = "ima"
Andrew Geissler8b139282021-03-05 15:22:30 -060029REQUIRED_DISTRO_FEATURES_class-native = ""
Brad Bishop15ae2502019-06-18 21:44:24 -040030
31EXTRA_OECONF_append_class-target = " --with-kernel-headers=${STAGING_KERNEL_BUILDDIR}"
32
33# blkid is called by evmctl when creating evm checksums.
34# This is less useful when signing files on the build host,
35# so disable it when compiling on the host.
36RDEPENDS_${PN}_append_class-target = " util-linux-blkid libcrypto attr libattr keyutils"
37
38BBCLASSEXTEND = "native nativesdk"