diff options
author | Yoann Congal <yoann.congal@smile.fr> | 2023-06-28 09:10:37 +0200 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2023-08-27 10:54:45 -1000 |
commit | 8ae48ddf5e1f01e8d738c8303796d112bba7e39e (patch) | |
tree | 651956bdcd40a864a69a38dcea2c737e0e184b65 /scripts | |
parent | 9fa49f817d8648f3f826b6f90436018bcb8b3022 (diff) | |
download | poky-8ae48ddf5e1f01e8d738c8303796d112bba7e39e.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: cdc671271327ca61e5321b8890921d08ecd8799d)
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')
-rw-r--r-- | scripts/lib/recipetool/create.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index 798cb0cefe..a2c6d052a6 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) |