rpm-integrity: Use _append for PACKAGECONFIG

Currently, the PACKAGECONFIG assignment in rpm-integrity might overwrite
the previous contents of the variable.

Similar to systemd_%.bbappend and ovmf_%.bbappend, use _append to add
"imaevm" to PACKAGECONFIG when distro feature ima is enabled.

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
This commit is contained in:
Ovidiu Panait authored and Jia Zhang committed 2019-12-13 09:01:39 +08:00
1 parent 4602842eed
commit e4e766aa40
1 file changed
+3 -1
@@ -1,6 +1,8 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/rpm:"
PACKAGECONFIG = "${@bb.utils.contains('DISTRO_FEATURES', 'ima', 'imaevm', '', d)}"
PACKAGECONFIG_append = " \
${@bb.utils.contains('DISTRO_FEATURES', 'ima', 'imaevm', '', d)} \
"
# IMA signing support is provided by RPM plugin.
EXTRA_OECONF_remove += "\