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>
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
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
handlers = [item[0] for item in handlers]
# Apply the handlers
- classes = []
handled = []
if args.binary: