diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2011-08-01 11:56:37 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-02 14:31:35 +0100 |
commit | 46559f36d8a39655060b45d3d235de44a2c4c09b (patch) | |
tree | 770b8c60dfaaf6f36c7ea7ead2f9b14594550bff /meta/classes/rootfs_rpm.bbclass | |
parent | 651ccb3b031d9ccb8331505a51171372002230d9 (diff) | |
download | openembedded-core-46559f36d8a39655060b45d3d235de44a2c4c09b.tar.gz openembedded-core-46559f36d8a39655060b45d3d235de44a2c4c09b.tar.bz2 openembedded-core-46559f36d8a39655060b45d3d235de44a2c4c09b.zip |
rootfs_rpm: Cleanup and minor bug fixes
in packages_rpm.bbclass:
Cleanup the way package_update_index_rpm works. Break this out into two
functions, one for common functionality and one for controlling target vs
sdk package processing.
Similar change to package_generate_rpm_conf.
Usage of IMAGE_ROOTFS should actually be "target_rootfs", this fixes a problem
with the SDK case.
in rootfs_rpm.bbclass:
Minor re-order of the values, and avoid multiple uses of IMAGE_ROOTFS in order
to make the merge with the SDK behavior easier.
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Diffstat (limited to 'meta/classes/rootfs_rpm.bbclass')
-rw-r--r-- | meta/classes/rootfs_rpm.bbclass | 17 |
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 () { #createrepo "${DEPLOY_DIR_RPM}" + # install packages + # This needs to work in the same way as populate_sdk_rpm.bbclass! + export INSTALL_ROOTFS_RPM="${IMAGE_ROOTFS}" + # Setup base system configuration - mkdir -p ${IMAGE_ROOTFS}/etc/rpm/ + mkdir -p ${INSTALL_ROOTFS_RPM}/etc/rpm/ - mkdir -p ${IMAGE_ROOTFS}${rpmlibdir} - mkdir -p ${IMAGE_ROOTFS}${rpmlibdir}/log - cat > ${IMAGE_ROOTFS}${rpmlibdir}/DB_CONFIG << EOF + mkdir -p ${INSTALL_ROOTFS_RPM}${rpmlibdir} + mkdir -p ${INSTALL_ROOTFS_RPM}${rpmlibdir}/log + cat > ${INSTALL_ROOTFS_RPM}${rpmlibdir}/DB_CONFIG << EOF # ================ Environment set_data_dir . set_create_dir . @@ -81,15 +85,13 @@ mutex_set_max 163840 # ================ Replication EOF - #install pacakges - export INSTALL_ROOTFS_RPM="${IMAGE_ROOTFS}" export INSTALL_PLATFORM_RPM="${TARGET_ARCH}" export INSTALL_CONFBASE_RPM="${RPMCONF_TARGET_BASE}" export INSTALL_PACKAGES_NORMAL_RPM="${PACKAGE_INSTALL}" export INSTALL_PACKAGES_ATTEMPTONLY_RPM="${PACKAGE_INSTALL_ATTEMPTONLY}" export INSTALL_PACKAGES_LINGUAS_RPM="${LINGUAS_INSTALL}" export INSTALL_PROVIDENAME_RPM="" - export INSTALL_TASK_RPM="populate_sdk" + export INSTALL_TASK_RPM="rootfs_rpm_do_rootfs" # List must be prefered to least preferred order INSTALL_PLATFORM_EXTRA_RPM="" @@ -221,5 +223,4 @@ python () { ml_package_archs += localdata.getVar("PACKAGE_ARCHS", True) or "" #bb.note("ML_PACKAGE_ARCHS %s %s %s" % (eext[1], localdata.getVar("PACKAGE_ARCHS", True) or "(none)", overrides)) bb.data.setVar('MULTILIB_PACKAGE_ARCHS', ml_package_archs, d) - } |