From: "mark.yang" <[email protected]> Add siteinfo_get_files_for_machine() to look up the site files for any arch/os pair, not just HOST_ARCH-HOST_OS. siteinfo_get_files() now calls it with HOST_ARCH and HOST_OS, as 7429ed8d2a ("siteinfo: generalise siteinfo") did for siteinfo_data().
Signed-off-by: mark.yang <[email protected]> --- meta/classes-recipe/siteinfo.bbclass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meta/classes-recipe/siteinfo.bbclass b/meta/classes-recipe/siteinfo.bbclass index 25b53d929a..9dc8d3a477 100644 --- a/meta/classes-recipe/siteinfo.bbclass +++ b/meta/classes-recipe/siteinfo.bbclass @@ -194,8 +194,8 @@ python () { # sstate isn't path specific SITEINFO_PATHVARS = "COREBASE" -def siteinfo_get_files(d, sysrootcache=False): - sitedata = siteinfo_data(d) +def siteinfo_get_files_for_machine(arch, osname, d): + sitedata = siteinfo_data_for_machine(arch, osname, d) sitefiles = [] searched = [] for path in d.getVar("BBPATH").split(":"): @@ -223,4 +223,6 @@ def siteinfo_get_files(d, sysrootcache=False): return sitefiles, searched +def siteinfo_get_files(d, sysrootcache=False): + return siteinfo_get_files_for_machine(d.getVar("HOST_ARCH"), d.getVar("HOST_OS"), d) base-commit: fb479118c94f5448759a3ce8f1aad89d5aebdf75
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#246718): https://lists.openembedded.org/g/openembedded-core/message/246718 Mute This Topic: https://lists.openembedded.org/mt/121465213/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
