summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_rpm.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r--meta/classes/package_rpm.bbclass10
1 files changed, 8 insertions, 2 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index d327841250..fa0d8c3457 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -904,8 +904,14 @@ python do_package_rpm () {
904 rpmbuild = bb.data.getVar('RPMBUILD', d, True) 904 rpmbuild = bb.data.getVar('RPMBUILD', d, True)
905 targetsys = bb.data.getVar('TARGET_SYS', d, True) 905 targetsys = bb.data.getVar('TARGET_SYS', d, True)
906 targetvendor = bb.data.getVar('TARGET_VENDOR', d, True) 906 targetvendor = bb.data.getVar('TARGET_VENDOR', d, True)
907 pkgwritedir = bb.data.expand('${PKGWRITEDIRRPM}/${PACKAGE_ARCH}', d) 907 package_arch = bb.data.getVar('PACKAGE_ARCH', d, True) or ""
908 pkgarch = bb.data.expand('${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}', d) 908 if package_arch not in "all any noarch".split():
909 ml_prefix = (bb.data.getVar('MLPREFIX', d, True) or "").replace("-", "_")
910 bb.data.setVar('PACKAGE_ARCH_EXTEND', ml_prefix + package_arch, d)
911 else:
912 bb.data.setVar('PACKAGE_ARCH_EXTEND', package_arch, d)
913 pkgwritedir = bb.data.expand('${PKGWRITEDIRRPM}/${PACKAGE_ARCH_EXTEND}', d)
914 pkgarch = bb.data.expand('${PACKAGE_ARCH_EXTEND}${TARGET_VENDOR}-${TARGET_OS}', d)
909 magicfile = bb.data.expand('${STAGING_DIR_NATIVE}/usr/share/misc/magic.mgc', d) 915 magicfile = bb.data.expand('${STAGING_DIR_NATIVE}/usr/share/misc/magic.mgc', d)
910 bb.mkdirhier(pkgwritedir) 916 bb.mkdirhier(pkgwritedir)
911 os.chmod(pkgwritedir, 0755) 917 os.chmod(pkgwritedir, 0755)