summaryrefslogtreecommitdiffstats
path: root/scripts/lib/recipetool/create.py
diff options
context:
space:
mode:
authorYoann Congal <yoann.congal@smile.fr>2023-06-28 09:10:37 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-28 23:02:50 +0100
commit356d2369c743634856d4b514166433947961a60d (patch)
tree3c1ac242de67a1ccd3e7c087445c04c6cfe26aea /scripts/lib/recipetool/create.py
parent05dbe2e3b06b0328edb9ae1df9820d3f3bfffde5 (diff)
downloadpoky-356d2369c743634856d4b514166433947961a60d.tar.gz
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>
Diffstat (limited to 'scripts/lib/recipetool/create.py')
-rw-r--r--scripts/lib/recipetool/create.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index 824ac6350d..e99e0714bf 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -745,6 +745,10 @@ def create_recipe(args):
745 for handler in handlers: 745 for handler in handlers:
746 handler.process(srctree_use, classes, lines_before, lines_after, handled, extravalues) 746 handler.process(srctree_use, classes, lines_before, lines_after, handled, extravalues)
747 747
748 # native and nativesdk classes are special and must be inherited last
749 # If present, put them at the end of the classes list
750 classes.sort(key=lambda c: c in ("native", "nativesdk"))
751
748 extrafiles = extravalues.pop('extrafiles', {}) 752 extrafiles = extravalues.pop('extrafiles', {})
749 extra_pn = extravalues.pop('PN', None) 753 extra_pn = extravalues.pop('PN', None)
750 extra_pv = extravalues.pop('PV', None) 754 extra_pv = extravalues.pop('PV', None)