summaryrefslogtreecommitdiff
path: root/meta/classes/package_rpm.bbclass
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 14:56:46 +0100
commit9880a5261ca509c69efbafa27cddd9b2b8ca08f0 (patch)
tree7b3d9fe50541ed135526a2a733f89e60612f5e04 /meta/classes/package_rpm.bbclass
parentad17fa82a481ab3c9f17a8338ebad1eb07c0f9d8 (diff)
downloadopenembedded-core-9880a5261ca509c69efbafa27cddd9b2b8ca08f0.tar.gz
openembedded-core-9880a5261ca509c69efbafa27cddd9b2b8ca08f0.tar.bz2
openembedded-core-9880a5261ca509c69efbafa27cddd9b2b8ca08f0.zip
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] Signed-off-by: Robert Yang <liezhi.yang@windriver.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.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() {
package_install_internal_rpm () {
local target_rootfs="${INSTALL_ROOTFS_RPM}"
- local platform="${INSTALL_PLATFORM_RPM}"
- local platform_extra="${INSTALL_PLATFORM_EXTRA_RPM}"
+ local platform="`echo ${INSTALL_PLATFORM_RPM} | sed 's#-#_#g'`"
+ local platform_extra="`echo ${INSTALL_PLATFORM_EXTRA_RPM} | sed 's#-#_#g'`"
local confbase="${INSTALL_CONFBASE_RPM}"
local package_to_install="${INSTALL_PACKAGES_RPM}"
local package_attemptonly="${INSTALL_PACKAGES_ATTEMPTONLY_RPM}"