From: Lans Zhang Date: Thu, 27 Jul 2017 06:03:42 +0000 (+0800) Subject: rpm: allow to enable RPM file signing X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~20595 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d7797e4374c111f0dff523fd49354bcc33dc2af;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git rpm: allow to enable RPM file signing RPM file signing is enabled with --with-imaevm during configuration. If enabled, the RPM signing tool rpmsign will call libimaevm.so provided by the recipe ima-evm-utils. Signed-off-by: Lans Zhang Signed-off-by: Jia Zhang Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/rpm/rpm_git.bb b/meta/recipes-devtools/rpm/rpm_git.bb index 2a0dcafac79..d9ff2c7fa5b 100644 --- a/meta/recipes-devtools/rpm/rpm_git.bb +++ b/meta/recipes-devtools/rpm/rpm_git.bb @@ -71,6 +71,9 @@ EXTRA_OECONF_append_class-native = " --sysconfdir=/etc --localstatedir=/var --di BBCLASSEXTEND = "native nativesdk" +PACKAGECONFIG ??= "" +PACKAGECONFIG[imaevm] = "--with-imaevm,,ima-evm-utils" + # Direct rpm-native to read configuration from our sysroot, not the one it was compiled in # libmagic also has sysroot path contamination, so override it do_install_append_class-native() {