summaryrefslogtreecommitdiff
path: root/scripts/lib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-01-07 00:15:50 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-11 15:41:06 +0000
commita216fb1f5953327790dce3d2c1a9af616c0b410d (patch)
tree418aaafcc6df2dae19b5871b150f1a20a342c571 /scripts/lib
parent64986decbc11afa0d1e11251f5f7adcba1860d19 (diff)
downloadopenembedded-core-a216fb1f5953327790dce3d2c1a9af616c0b410d.tar.gz
openembedded-core-a216fb1f5953327790dce3d2c1a9af616c0b410d.tar.bz2
openembedded-core-a216fb1f5953327790dce3d2c1a9af616c0b410d.zip
recipetool: create: support creating standalone native/nativesdk recipes
If the recipe name ends with -native then we should inherit native; likewise if it starts with nativesdk- then inherit nativesdk. (Note that the recipe name must actually be specified by the user in order to trigger this - we won't do it based on any name auto-detected from e.g. the tarball name.) Since we're doing this based on the name, "devtool add" will also gain this functionality automatically. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/recipetool/create.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index f3428577b9..775be42c11 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -232,6 +232,8 @@ def create_recipe(args):
lines_before.append('LIC_FILES_CHKSUM = "%s"' % ' \\\n '.join(lic_files_chksum))
lines_before.append('')
+ classes = []
+
# FIXME This is kind of a hack, we probably ought to be using bitbake to do this
pn = None
pv = None
@@ -249,6 +251,10 @@ def create_recipe(args):
if args.name:
pn = args.name
+ if args.name.endswith('-native'):
+ classes.append('native')
+ elif args.name.startswith('nativesdk-'):
+ classes.append('nativesdk')
if pv and pv not in 'git svn hg'.split():
realpv = pv
@@ -312,7 +318,6 @@ def create_recipe(args):
handlers = [item[0] for item in handlers]
# Apply the handlers
- classes = []
handled = []
if args.binary: