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
committerSteve Sakoman <steve@sakoman.com>2023-08-02 04:47:13 -1000
commit23af44f25450baf0d715b152b3fe008297377ae1 (patch)
tree0f93c09d453f97a31097849de09ed2c626744c37 /scripts/lib/recipetool/create.py
parent0391bb6f9e755f1a6a38c387e29cc1927c19b8e3 (diff)
downloadpoky-23af44f25450baf0d715b152b3fe008297377ae1.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: 2c92780236b25205af0dcf75de2d2ede14132152) Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit a6614fd800cbe791264aeb102d379ba79bd145c2) Signed-off-by: Steve Sakoman <steve@sakoman.com>
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 220465ed2f..67894fb4d0 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)