diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/rootfs_rpm.bbclass | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass index b8ff4cb7b6..65881a60a7 100644 --- a/meta/classes/rootfs_rpm.bbclass +++ b/meta/classes/rootfs_rpm.bbclass | |||
@@ -2,20 +2,23 @@ | |||
2 | # Creates a root filesystem out of rpm packages | 2 | # Creates a root filesystem out of rpm packages |
3 | # | 3 | # |
4 | 4 | ||
5 | ROOTFS_PKGMANAGE = "rpm smartpm" | 5 | ROOTFS_PKGMANAGE = "rpm dnf" |
6 | ROOTFS_PKGMANAGE_BOOTSTRAP = "run-postinsts" | 6 | ROOTFS_PKGMANAGE_BOOTSTRAP = "run-postinsts" |
7 | 7 | ||
8 | # Add 100Meg of extra space for Smart | 8 | # dnf is using our custom distutils, and so will fail without these |
9 | IMAGE_ROOTFS_EXTRA_SPACE_append = "${@bb.utils.contains("PACKAGE_INSTALL", "smartpm", " + 102400", "" ,d)}" | 9 | export STAGING_INCDIR |
10 | export STAGING_LIBDIR | ||
10 | 11 | ||
11 | # Smart is python based, so be sure python-native is available to us. | 12 | # Add 100Meg of extra space for dnf |
13 | IMAGE_ROOTFS_EXTRA_SPACE_append = "${@bb.utils.contains("PACKAGE_INSTALL", "dnf", " + 102400", "" ,d)}" | ||
14 | |||
15 | # Dnf is python based, so be sure python-native is available to us. | ||
12 | EXTRANATIVEPATH += "python-native" | 16 | EXTRANATIVEPATH += "python-native" |
13 | 17 | ||
14 | # opkg is needed for update-alternatives | 18 | # opkg is needed for update-alternatives |
15 | RPMROOTFSDEPENDS = "rpm-native:do_populate_sysroot \ | 19 | RPMROOTFSDEPENDS = "rpm-native:do_populate_sysroot \ |
16 | rpmresolve-native:do_populate_sysroot \ | 20 | dnf-native:do_populate_sysroot \ |
17 | python-smartpm-native:do_populate_sysroot \ | 21 | createrepo-c-native:do_populate_sysroot \ |
18 | createrepo-native:do_populate_sysroot \ | ||
19 | opkg-native:do_populate_sysroot" | 22 | opkg-native:do_populate_sysroot" |
20 | 23 | ||
21 | do_rootfs[depends] += "${RPMROOTFSDEPENDS}" | 24 | do_rootfs[depends] += "${RPMROOTFSDEPENDS}" |
@@ -35,7 +38,3 @@ python () { | |||
35 | d.setVar('RPM_POSTPROCESS_COMMANDS', '') | 38 | d.setVar('RPM_POSTPROCESS_COMMANDS', '') |
36 | 39 | ||
37 | } | 40 | } |
38 | # Smart is python based, so be sure python-native is available to us. | ||
39 | EXTRANATIVEPATH += "python-native" | ||
40 | |||
41 | rpmlibdir = "/var/lib/rpm" | ||