summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: