mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
recipetool: Fix inherit in created -native* recipes
native and nativesdk classes are special and must be inherited last : put them at the end of the gathered classes to inherit. (From OE-Core rev: a6614fd800cbe791264aeb102d379ba79bd145c2) Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
05dbe2e3b0
commit
356d2369c7
@@ -745,6 +745,10 @@ def create_recipe(args):
|
||||
for handler in handlers:
|
||||
handler.process(srctree_use, classes, lines_before, lines_after, handled, extravalues)
|
||||
|
||||
# native and nativesdk classes are special and must be inherited last
|
||||
# If present, put them at the end of the classes list
|
||||
classes.sort(key=lambda c: c in ("native", "nativesdk"))
|
||||
|
||||
extrafiles = extravalues.pop('extrafiles', {})
|
||||
extra_pn = extravalues.pop('PN', None)
|
||||
extra_pv = extravalues.pop('PV', None)
|
||||
|
||||
Reference in New Issue
Block a user