summaryrefslogtreecommitdiffstats
path: root/meta/classes/rootfs_rpm.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/rootfs_rpm.bbclass')
-rw-r--r--meta/classes/rootfs_rpm.bbclass17
1 files changed, 9 insertions, 8 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index dfe4612aa2..4f627a52eb 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -52,12 +52,16 @@ fakeroot rootfs_rpm_do_rootfs () {
52 52
53 #createrepo "${DEPLOY_DIR_RPM}" 53 #createrepo "${DEPLOY_DIR_RPM}"
54 54
55 # install packages
56 # This needs to work in the same way as populate_sdk_rpm.bbclass!
57 export INSTALL_ROOTFS_RPM="${IMAGE_ROOTFS}"
58
55 # Setup base system configuration 59 # Setup base system configuration
56 mkdir -p ${IMAGE_ROOTFS}/etc/rpm/ 60 mkdir -p ${INSTALL_ROOTFS_RPM}/etc/rpm/
57 61
58 mkdir -p ${IMAGE_ROOTFS}${rpmlibdir} 62 mkdir -p ${INSTALL_ROOTFS_RPM}${rpmlibdir}
59 mkdir -p ${IMAGE_ROOTFS}${rpmlibdir}/log 63 mkdir -p ${INSTALL_ROOTFS_RPM}${rpmlibdir}/log
60 cat > ${IMAGE_ROOTFS}${rpmlibdir}/DB_CONFIG << EOF 64 cat > ${INSTALL_ROOTFS_RPM}${rpmlibdir}/DB_CONFIG << EOF
61# ================ Environment 65# ================ Environment
62set_data_dir . 66set_data_dir .
63set_create_dir . 67set_create_dir .
@@ -81,15 +85,13 @@ mutex_set_max 163840
81# ================ Replication 85# ================ Replication
82EOF 86EOF
83 87
84 #install pacakges
85 export INSTALL_ROOTFS_RPM="${IMAGE_ROOTFS}"
86 export INSTALL_PLATFORM_RPM="${TARGET_ARCH}" 88 export INSTALL_PLATFORM_RPM="${TARGET_ARCH}"
87 export INSTALL_CONFBASE_RPM="${RPMCONF_TARGET_BASE}" 89 export INSTALL_CONFBASE_RPM="${RPMCONF_TARGET_BASE}"
88 export INSTALL_PACKAGES_NORMAL_RPM="${PACKAGE_INSTALL}" 90 export INSTALL_PACKAGES_NORMAL_RPM="${PACKAGE_INSTALL}"
89 export INSTALL_PACKAGES_ATTEMPTONLY_RPM="${PACKAGE_INSTALL_ATTEMPTONLY}" 91 export INSTALL_PACKAGES_ATTEMPTONLY_RPM="${PACKAGE_INSTALL_ATTEMPTONLY}"
90 export INSTALL_PACKAGES_LINGUAS_RPM="${LINGUAS_INSTALL}" 92 export INSTALL_PACKAGES_LINGUAS_RPM="${LINGUAS_INSTALL}"
91 export INSTALL_PROVIDENAME_RPM="" 93 export INSTALL_PROVIDENAME_RPM=""
92 export INSTALL_TASK_RPM="populate_sdk" 94 export INSTALL_TASK_RPM="rootfs_rpm_do_rootfs"
93 95
94 # List must be prefered to least preferred order 96 # List must be prefered to least preferred order
95 INSTALL_PLATFORM_EXTRA_RPM="" 97 INSTALL_PLATFORM_EXTRA_RPM=""
@@ -221,5 +223,4 @@ python () {
221 ml_package_archs += localdata.getVar("PACKAGE_ARCHS", True) or "" 223 ml_package_archs += localdata.getVar("PACKAGE_ARCHS", True) or ""
222 #bb.note("ML_PACKAGE_ARCHS %s %s %s" % (eext[1], localdata.getVar("PACKAGE_ARCHS", True) or "(none)", overrides)) 224 #bb.note("ML_PACKAGE_ARCHS %s %s %s" % (eext[1], localdata.getVar("PACKAGE_ARCHS", True) or "(none)", overrides))
223 bb.data.setVar('MULTILIB_PACKAGE_ARCHS', ml_package_archs, d) 225 bb.data.setVar('MULTILIB_PACKAGE_ARCHS', ml_package_archs, d)
224
225} 226}