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:32:10 +0100 |
commit | 0d5dfb29c359eb778182660e852a6aca273f8179 (patch) | |
tree | d521c70b2cc963515c603185dfe84acbac614ba6 /meta/classes/rootfs_rpm.bbclass | |
parent | be2a2764d8ceb398d81714661e6f199c8b11946c (diff) | |
download | poky-0d5dfb29c359eb778182660e852a6aca273f8179.tar.gz |
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.
(From OE-Core rev: 46559f36d8a39655060b45d3d235de44a2c4c09b)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 () { | |||
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 |
62 | set_data_dir . | 66 | set_data_dir . |
63 | set_create_dir . | 67 | set_create_dir . |
@@ -81,15 +85,13 @@ mutex_set_max 163840 | |||
81 | # ================ Replication | 85 | # ================ Replication |
82 | EOF | 86 | EOF |
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 | } |