summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_rpm.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-12-22 17:43:33 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-02 05:52:06 -0700
commitad23395cd1f6c0cbfcc6980b6071d589f9f6cde0 (patch)
tree9965e27a93c73af1ccf9cdb24c588faabc90370a /meta/classes/package_rpm.bbclass
parent58a8a38aa294edb74dde70d70a7e5faf49444b78 (diff)
downloadpoky-ad23395cd1f6c0cbfcc6980b6071d589f9f6cde0.tar.gz
nativesdk: Switch to using nativesdk as a prefix, not a suffix
As discussed on the mailing lists, using a suffix to package names is hard and has lead to many recipes having to do PKGSUFFIX games. Its looking extremely hard to scale nativesdk much further without hacking many recipes. By comparison, using a prefix like multilib does works much better and doesn't involve "hacking" as many recipes. This change converts nativesdk to use a prefix using the existing multilib infrastructure. (From OE-Core rev: 81813c0e322dc04ce4b069117188d8a54dfddb8c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r--meta/classes/package_rpm.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 2c4c89a256..742f292307 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -1114,7 +1114,7 @@ python do_package_rpm () {
1114 targetsys = d.getVar('TARGET_SYS', True) 1114 targetsys = d.getVar('TARGET_SYS', True)
1115 targetvendor = d.getVar('TARGET_VENDOR', True) 1115 targetvendor = d.getVar('TARGET_VENDOR', True)
1116 package_arch = d.getVar('PACKAGE_ARCH', True) or "" 1116 package_arch = d.getVar('PACKAGE_ARCH', True) or ""
1117 if package_arch not in "all any noarch".split(): 1117 if package_arch not in "all any noarch".split() and not package_arch.endswith("-nativesdk"):
1118 ml_prefix = (d.getVar('MLPREFIX', True) or "").replace("-", "_") 1118 ml_prefix = (d.getVar('MLPREFIX', True) or "").replace("-", "_")
1119 d.setVar('PACKAGE_ARCH_EXTEND', ml_prefix + package_arch) 1119 d.setVar('PACKAGE_ARCH_EXTEND', ml_prefix + package_arch)
1120 else: 1120 else: