diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2021-05-31 22:34:04 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-06-26 15:24:08 +0100 |
commit | 4bab58615ca9a7ec5d3d9bc30b330c2edd238493 (patch) | |
tree | c7f8a55c1321066b6f04e5b967f19b2ecd0c14d5 /scripts/lib/devtool/upgrade.py | |
parent | 21263b6114ccf4e26a18e4aa7cfdc24eaac2f76c (diff) | |
download | poky-4bab58615ca9a7ec5d3d9bc30b330c2edd238493.tar.gz |
native.bbclass: Do not remove "-native" in the middle of recipe names
For dependencies such as "${PN}-foo", when modifying them for native
recipes, it is expected that they become "${BPN}-foo-native" rather
than "${BPN}-native-foo-native". This was previously done by removing
all occurences of "-native" from the dependency before adding
"-native" at the end. However, this fails for a recipe such as
"crate-native-tls" that happens to contain the string "-native" in the
middle of the name. Solve this by simply replacing ${PN} with ${BPN}
in the name instead before adding "-native" at the end
Also simplify adding "-native" to the end of names the recipe provides.
In this case it is not necessary to replace ${PN} with ${BPN} as the
recipes are expected to use ${BPN}-foo in the first place.
(From OE-Core rev: a71d923d0f0e966b17e915a86b5ad7222a947122)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit edaf8ff278fc96b122c4fc3266b63856e3350f4c)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool/upgrade.py')
0 files changed, 0 insertions, 0 deletions