summaryrefslogtreecommitdiffstats
path: root/meta-integrity/recipes-devtools/rpm/rpm-integrity.inc
blob: 8b9c3782e31689ebea66771169e28d1b0af588fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FILESEXTRAPATHS_prepend := "${THISDIR}/rpm:"

PACKAGECONFIG_append = " \
    ${@bb.utils.contains('DISTRO_FEATURES', 'ima', 'imaevm', '', d)} \
    "

# IMA signing support is provided by RPM plugin.
EXTRA_OECONF_remove += "\
    --disable-plugins \
"
EXTRA_OECONF_append_class-native = " --disable-inhibit-plugin"

SRC_URI_append = " \
                  file://macros.ima \
                 "

do_install_append () {
    install -d ${D}${sysconfdir}/rpm
    install -m 0644 ${WORKDIR}/macros.ima ${D}${sysconfdir}/rpm/
}