summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2012-09-25 21:38:36 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-26 15:02:29 +0100
commit0c7ef5214d3edbd1c31cd1eedfc0ca2bea5770d4 (patch)
treef4930938362b25af5eae6e0525cc18918a00eff6 /meta/classes
parent598528484c15a387e447aa0c7e232cbbbb7ffb24 (diff)
downloadpoky-0c7ef5214d3edbd1c31cd1eedfc0ca2bea5770d4.tar.gz
package_rpm.bbclass: change the arch's "-" to "_" for platform
The platform and platform_extra will be written to /etc/rpm/platform, the rpm's arch has changed the "-" to "_", so the value in platform should also be updated. [YOCTO #3159] (From OE-Core rev: 9880a5261ca509c69efbafa27cddd9b2b8ca08f0) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package_rpm.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index ce34016555..49055f2f51 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -276,8 +276,8 @@ process_pkg_list_rpm() {
276package_install_internal_rpm () { 276package_install_internal_rpm () {
277 277
278 local target_rootfs="${INSTALL_ROOTFS_RPM}" 278 local target_rootfs="${INSTALL_ROOTFS_RPM}"
279 local platform="${INSTALL_PLATFORM_RPM}" 279 local platform="`echo ${INSTALL_PLATFORM_RPM} | sed 's#-#_#g'`"
280 local platform_extra="${INSTALL_PLATFORM_EXTRA_RPM}" 280 local platform_extra="`echo ${INSTALL_PLATFORM_EXTRA_RPM} | sed 's#-#_#g'`"
281 local confbase="${INSTALL_CONFBASE_RPM}" 281 local confbase="${INSTALL_CONFBASE_RPM}"
282 local package_to_install="${INSTALL_PACKAGES_RPM}" 282 local package_to_install="${INSTALL_PACKAGES_RPM}"
283 local package_attemptonly="${INSTALL_PACKAGES_ATTEMPTONLY_RPM}" 283 local package_attemptonly="${INSTALL_PACKAGES_ATTEMPTONLY_RPM}"