mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
base.bbclass: Add compatibility package name mapping handler
This means if PKGARCHCOMPAT_ARMV7A is set, "armv7a-vfp-neon" is renamed to be "armv7a". Other compatibility mappings can be added as needed. (From OE-Core rev: 08c0b7060009113e8dffdef51ff6b9b4b7f28894) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -133,6 +133,13 @@ def generate_git_config(e):
|
|||||||
f.write(proxy_command)
|
f.write(proxy_command)
|
||||||
f.close
|
f.close
|
||||||
|
|
||||||
|
def pkgarch_mapping(d):
|
||||||
|
# Compatibility mappings of TUNE_PKGARCH (opt in)
|
||||||
|
if d.getVar("PKGARCHCOMPAT_ARMV7A", True):
|
||||||
|
if d.getVar("TUNE_PKGARCH", True) == "armv7a-vfp-neon":
|
||||||
|
d.setVar("TUNE_PKGARCH", "armv7a")
|
||||||
|
|
||||||
|
|
||||||
addhandler base_eventhandler
|
addhandler base_eventhandler
|
||||||
python base_eventhandler() {
|
python base_eventhandler() {
|
||||||
from bb import note, error, data
|
from bb import note, error, data
|
||||||
@@ -203,6 +210,7 @@ python base_eventhandler() {
|
|||||||
|
|
||||||
if name == "ConfigParsed":
|
if name == "ConfigParsed":
|
||||||
generate_git_config(e)
|
generate_git_config(e)
|
||||||
|
pkgarch_mapping(e.data)
|
||||||
|
|
||||||
if not data in e.__dict__:
|
if not data in e.__dict__:
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user