signing-keys: Use SYSROOT_DIRS to add dirs to stage in sysroot

(From OE-Core rev: 4a37960e504d6c0bbd0f4c088bef8f3a99beab6a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Peter Kjellerstedt 2016-05-12 10:37:56 +02:00 committed by Richard Purdie
parent 40d19d9208
commit 700ce6b5e3
1 changed files with 2 additions and 4 deletions

View File

@ -12,6 +12,8 @@ inherit allarch deploy
EXCLUDE_FROM_WORLD = "1"
INHIBIT_DEFAULT_DEPS = "1"
SYSROOT_DIRS += "${sysconfdir}/pki"
PACKAGES =+ "${PN}-ipk ${PN}-rpm ${PN}-packagefeed"
FILES_${PN}-rpm = "${sysconfdir}/pki/rpm-gpg"
@ -54,10 +56,6 @@ do_install () {
fi
}
sysroot_stage_all_append () {
sysroot_stage_dir ${D}${sysconfdir}/pki ${SYSROOT_DESTDIR}${sysconfdir}/pki
}
do_deploy () {
if [ -f "${B}/rpm-key" ]; then
install -D -m 0644 "${B}/rpm-key" "${DEPLOYDIR}/RPM-GPG-KEY-${DISTRO_VERSION}"