summaryrefslogtreecommitdiffstats
path: root/scripts/lib/recipetool
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:46 +0000
commit5ef716c2807ca7d6b5e8ef2fb8da3fedb523c03c (patch)
tree07597306caf614f7c090f95d1b4c6285a6e86fa5 /scripts/lib/recipetool
parent1e503c0a517b1595e6de2bceceee025940f38580 (diff)
downloadpoky-5ef716c2807ca7d6b5e8ef2fb8da3fedb523c03c.tar.gz
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. (From OE-Core rev: a216fb1f5953327790dce3d2c1a9af616c0b410d) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/recipetool')
-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):
232 lines_before.append('LIC_FILES_CHKSUM = "%s"' % ' \\\n '.join(lic_files_chksum)) 232 lines_before.append('LIC_FILES_CHKSUM = "%s"' % ' \\\n '.join(lic_files_chksum))
233 lines_before.append('') 233 lines_before.append('')
234 234
235 classes = []
236
235 # FIXME This is kind of a hack, we probably ought to be using bitbake to do this 237 # FIXME This is kind of a hack, we probably ought to be using bitbake to do this
236 pn = None 238 pn = None
237 pv = None 239 pv = None
@@ -249,6 +251,10 @@ def create_recipe(args):
249 251
250 if args.name: 252 if args.name:
251 pn = args.name 253 pn = args.name
254 if args.name.endswith('-native'):
255 classes.append('native')
256 elif args.name.startswith('nativesdk-'):
257 classes.append('nativesdk')
252 258
253 if pv and pv not in 'git svn hg'.split(): 259 if pv and pv not in 'git svn hg'.split():
254 realpv = pv 260 realpv = pv
@@ -312,7 +318,6 @@ def create_recipe(args):
312 handlers = [item[0] for item in handlers] 318 handlers = [item[0] for item in handlers]
313 319
314 # Apply the handlers 320 # Apply the handlers
315 classes = []
316 handled = [] 321 handled = []
317 322
318 if args.binary: 323 if args.binary: