mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
rootfs_rpm.bbclass: migrate image creation to dnf
To properly look at this patch, you probably need a side-by-side diff viewing tool. (From OE-Core rev: 65581c68d130fa74d703f6c3c92560e053857ac7) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
d4efcded26
commit
67615e0175
@@ -2,20 +2,23 @@
|
||||
# Creates a root filesystem out of rpm packages
|
||||
#
|
||||
|
||||
ROOTFS_PKGMANAGE = "rpm smartpm"
|
||||
ROOTFS_PKGMANAGE = "rpm dnf"
|
||||
ROOTFS_PKGMANAGE_BOOTSTRAP = "run-postinsts"
|
||||
|
||||
# Add 100Meg of extra space for Smart
|
||||
IMAGE_ROOTFS_EXTRA_SPACE_append = "${@bb.utils.contains("PACKAGE_INSTALL", "smartpm", " + 102400", "" ,d)}"
|
||||
# dnf is using our custom distutils, and so will fail without these
|
||||
export STAGING_INCDIR
|
||||
export STAGING_LIBDIR
|
||||
|
||||
# Smart is python based, so be sure python-native is available to us.
|
||||
# Add 100Meg of extra space for dnf
|
||||
IMAGE_ROOTFS_EXTRA_SPACE_append = "${@bb.utils.contains("PACKAGE_INSTALL", "dnf", " + 102400", "" ,d)}"
|
||||
|
||||
# Dnf is python based, so be sure python-native is available to us.
|
||||
EXTRANATIVEPATH += "python-native"
|
||||
|
||||
# opkg is needed for update-alternatives
|
||||
RPMROOTFSDEPENDS = "rpm-native:do_populate_sysroot \
|
||||
rpmresolve-native:do_populate_sysroot \
|
||||
python-smartpm-native:do_populate_sysroot \
|
||||
createrepo-native:do_populate_sysroot \
|
||||
dnf-native:do_populate_sysroot \
|
||||
createrepo-c-native:do_populate_sysroot \
|
||||
opkg-native:do_populate_sysroot"
|
||||
|
||||
do_rootfs[depends] += "${RPMROOTFSDEPENDS}"
|
||||
@@ -35,7 +38,3 @@ python () {
|
||||
d.setVar('RPM_POSTPROCESS_COMMANDS', '')
|
||||
|
||||
}
|
||||
# Smart is python based, so be sure python-native is available to us.
|
||||
EXTRANATIVEPATH += "python-native"
|
||||
|
||||
rpmlibdir = "/var/lib/rpm"
|
||||
|
||||
Reference in New Issue
Block a user