summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_rpm.bbclass
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2011-11-08 14:19:37 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-08 14:32:55 +0000
commit1ef442561d9784209f56e8c283824c1f2de3e2d1 (patch)
treef6e5185244cd4f3159513973ebfcc910028e639a /meta/classes/package_rpm.bbclass
parentf9735f3bac60459f2e92ec088cd529d414db9c14 (diff)
downloadpoky-1ef442561d9784209f56e8c283824c1f2de3e2d1.tar.gz
multilib: Drop MULTILIB_IMAGE_INSTALL
There should just be a single IMAGE_INSTALL variable. If the package backends need this split into different multilib components they should be responsible for doing this, not the user. This commit removes the MULTILIB_IMAGE_INSTALL variable. [YOCTO #1564] (From OE-Core rev: 7736862a74c92fe1afe42e170822be13117575c2) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r--meta/classes/package_rpm.bbclass37
1 files changed, 9 insertions, 28 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 7f425837be..df5a2db8a1 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -154,7 +154,7 @@ resolve_package_rpm () {
154# INSTALL_PLATFORM_RPM - main platform 154# INSTALL_PLATFORM_RPM - main platform
155# INSTALL_PLATFORM_EXTRA_RPM - extra platform 155# INSTALL_PLATFORM_EXTRA_RPM - extra platform
156# INSTALL_CONFBASE_RPM - configuration file base name 156# INSTALL_CONFBASE_RPM - configuration file base name
157# INSTALL_PACKAGES_NORMAL_RPM - packages to be installed 157# INSTALL_PACKAGES_RPM - packages to be installed
158# INSTALL_PACKAGES_ATTEMPTONLY_RPM - packages attemped to be installed only 158# INSTALL_PACKAGES_ATTEMPTONLY_RPM - packages attemped to be installed only
159# INSTALL_PACKAGES_LINGUAS_RPM - additional packages for uclibc 159# INSTALL_PACKAGES_LINGUAS_RPM - additional packages for uclibc
160# INSTALL_PROVIDENAME_RPM - content for provide name 160# INSTALL_PROVIDENAME_RPM - content for provide name
@@ -166,8 +166,7 @@ package_install_internal_rpm () {
166 local platform="${INSTALL_PLATFORM_RPM}" 166 local platform="${INSTALL_PLATFORM_RPM}"
167 local platform_extra="${INSTALL_PLATFORM_EXTRA_RPM}" 167 local platform_extra="${INSTALL_PLATFORM_EXTRA_RPM}"
168 local confbase="${INSTALL_CONFBASE_RPM}" 168 local confbase="${INSTALL_CONFBASE_RPM}"
169 local package_to_install="${INSTALL_PACKAGES_NORMAL_RPM}" 169 local package_to_install="${INSTALL_PACKAGES_RPM}"
170 local multilib_to_install="${INSTALL_PACKAGES_MULTILIB_RPM}"
171 local package_attemptonly="${INSTALL_PACKAGES_ATTEMPTONLY_RPM}" 170 local package_attemptonly="${INSTALL_PACKAGES_ATTEMPTONLY_RPM}"
172 local package_linguas="${INSTALL_PACKAGES_LINGUAS_RPM}" 171 local package_linguas="${INSTALL_PACKAGES_LINGUAS_RPM}"
173 local providename="${INSTALL_PROVIDENAME_RPM}" 172 local providename="${INSTALL_PROVIDENAME_RPM}"
@@ -211,12 +210,14 @@ package_install_internal_rpm () {
211 echo "Processing $pkg..." 210 echo "Processing $pkg..."
212 211
213 archvar=base_archs 212 archvar=base_archs
213 manifest=install.manifest
214 ml_prefix=`echo ${pkg} | cut -d'-' -f1` 214 ml_prefix=`echo ${pkg} | cut -d'-' -f1`
215 ml_pkg=$pkg 215 ml_pkg=$pkg
216 for i in ${MULTILIB_PREFIX_LIST} ; do 216 for i in ${MULTILIB_PREFIX_LIST} ; do
217 if [ ${ml_prefix} == ${i} ]; then 217 if [ ${ml_prefix} == ${i} ]; then
218 ml_pkg=$(echo ${pkg} | sed "s,^${ml_prefix}-\(.*\),\1,") 218 ml_pkg=$(echo ${pkg} | sed "s,^${ml_prefix}-\(.*\),\1,")
219 archvar=ml_archs 219 archvar=ml_archs
220 manifest=install_multilib.manifest
220 break 221 break
221 fi 222 fi
222 done 223 done
@@ -226,7 +227,7 @@ package_install_internal_rpm () {
226 echo "Unable to find package $pkg ($ml_pkg)!" 227 echo "Unable to find package $pkg ($ml_pkg)!"
227 exit 1 228 exit 1
228 fi 229 fi
229 echo $pkg_name >> ${target_rootfs}/install/install.manifest 230 echo $pkg_name >> ${target_rootfs}/install/${manifest}
230 done 231 done
231 fi 232 fi
232 fi 233 fi
@@ -235,12 +236,14 @@ package_install_internal_rpm () {
235 echo "Processing $pkg..." 236 echo "Processing $pkg..."
236 237
237 archvar=base_archs 238 archvar=base_archs
239 manifest=install.manifest
238 ml_prefix=`echo ${pkg} | cut -d'-' -f1` 240 ml_prefix=`echo ${pkg} | cut -d'-' -f1`
239 ml_pkg=$pkg 241 ml_pkg=$pkg
240 for i in ${MULTILIB_PREFIX_LIST} ; do 242 for i in ${MULTILIB_PREFIX_LIST} ; do
241 if [ ${ml_prefix} == ${i} ]; then 243 if [ ${ml_prefix} == ${i} ]; then
242 ml_pkg=$(echo ${pkg} | sed "s,^${ml_prefix}-\(.*\),\1,") 244 ml_pkg=$(echo ${pkg} | sed "s,^${ml_prefix}-\(.*\),\1,")
243 archvar=ml_archs 245 archvar=ml_archs
246 manifest=install_multilib.manifest
244 break 247 break
245 fi 248 fi
246 done 249 done
@@ -250,7 +253,7 @@ package_install_internal_rpm () {
250 echo "Unable to find package $pkg ($ml_pkg)!" 253 echo "Unable to find package $pkg ($ml_pkg)!"
251 exit 1 254 exit 1
252 fi 255 fi
253 echo $pkg_name >> ${target_rootfs}/install/install.manifest 256 echo $pkg_name >> ${target_rootfs}/install/${manifest}
254 done 257 done
255 fi 258 fi
256 259
@@ -356,29 +359,7 @@ package_install_internal_rpm () {
356 359
357 touch ${target_rootfs}/install/install_multilib_solution.manifest 360 touch ${target_rootfs}/install/install_multilib_solution.manifest
358 361
359 if [ ! -z "${multilib_to_install}" ]; then 362 if [ -e "${target_rootfs}/install/install_multilib.manifest" ]; then
360 for pkg in ${multilib_to_install} ; do
361 echo "Processing $pkg..."
362
363 archvar=base_archs
364 ml_prefix=`echo ${pkg} | cut -d'-' -f1`
365 ml_pkg=$pkg
366 for i in ${MULTILIB_PREFIX_LIST} ; do
367 if [ ${ml_prefix} == ${i} ]; then
368 ml_pkg=$(echo ${pkg} | sed "s,^${ml_prefix}-\(.*\),\1,")
369 archvar=ml_archs
370 break
371 fi
372 done
373
374 pkg_name=$(resolve_package_rpm ${confbase}-${archvar}.conf ${ml_pkg})
375 if [ -z "$pkg_name" ]; then
376 echo "Unable to find package $pkg ($ml_pkg)!"
377 exit 1
378 fi
379 echo $pkg_name >> ${target_rootfs}/install/install_multilib.manifest
380 done
381
382 # multilib package installation 363 # multilib package installation
383 364
384 # Generate an install solution by doing a --justdb install, then recreate it with 365 # Generate an install solution by doing a --justdb install, then recreate it with