From: Yoann Congal Date: Wed, 28 Jun 2023 07:10:37 +0000 (+0200) Subject: recipetool: Fix inherit in created -native* recipes X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~471 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a6614fd800cbe791264aeb102d379ba79bd145c2;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Yoann Congal Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index 824ac6350d9..e99e0714bf4 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py @@ -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)