summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/package_rpm.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 1ff2b36434..71cfdc1da4 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -654,7 +654,8 @@ python do_package_rpm () {
654 targetsys = d.getVar('TARGET_SYS', True) 654 targetsys = d.getVar('TARGET_SYS', True)
655 targetvendor = d.getVar('TARGET_VENDOR', True) 655 targetvendor = d.getVar('TARGET_VENDOR', True)
656 package_arch = (d.getVar('PACKAGE_ARCH', True) or "").replace("-", "_") 656 package_arch = (d.getVar('PACKAGE_ARCH', True) or "").replace("-", "_")
657 if package_arch not in "all any noarch".split() and not package_arch.endswith("_nativesdk"): 657 sdkpkgsuffix = (d.getVar('SDKPKGSUFFIX', True) or "nativesdk").replace("-", "_")
658 if package_arch not in "all any noarch".split() and not package_arch.endswith(sdkpkgsuffix):
658 ml_prefix = (d.getVar('MLPREFIX', True) or "").replace("-", "_") 659 ml_prefix = (d.getVar('MLPREFIX', True) or "").replace("-", "_")
659 d.setVar('PACKAGE_ARCH_EXTEND', ml_prefix + package_arch) 660 d.setVar('PACKAGE_ARCH_EXTEND', ml_prefix + package_arch)
660 else: 661 else: