diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-12-22 17:43:33 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-31 10:21:04 -0700 |
commit | 81813c0e322dc04ce4b069117188d8a54dfddb8c (patch) | |
tree | 3363bac6dcdcdad14ba58efcea39529436cdf72d /meta/classes/distrodata.bbclass | |
parent | f01f0b8aed25af889f48fe1afff96feb3d9ed120 (diff) | |
download | openembedded-core-81813c0e322dc04ce4b069117188d8a54dfddb8c.tar.gz openembedded-core-81813c0e322dc04ce4b069117188d8a54dfddb8c.tar.bz2 openembedded-core-81813c0e322dc04ce4b069117188d8a54dfddb8c.zip |
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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/distrodata.bbclass')
-rw-r--r-- | meta/classes/distrodata.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/distrodata.bbclass b/meta/classes/distrodata.bbclass index f196df5f56..0da10a1dd1 100644 --- a/meta/classes/distrodata.bbclass +++ b/meta/classes/distrodata.bbclass @@ -33,10 +33,10 @@ python do_distrodata_np() { localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES', True)) bb.data.update_data(localdata) - if pn.find("-nativesdk") != -1: - pnstripped = pn.split("-nativesdk") + if pn.find("nativesdk-") != -1: + pnstripped = pn.replace("nativesdk-", "") bb.note("Native Split: %s" % pnstripped) - localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES', True)) + localdata.setVar('OVERRIDES', "pn-" + pnstripped + ":" + d.getVar('OVERRIDES', True)) bb.data.update_data(localdata) if pn.find("-cross") != -1: |