diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/staging.bbclass | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass index d17a53ebef..c74cb99dfa 100644 --- a/meta/classes/staging.bbclass +++ b/meta/classes/staging.bbclass @@ -93,6 +93,16 @@ python do_populate_sysroot () { bb.build.exec_func("sysroot_stage_all", d) for f in (d.getVar('SYSROOT_PREPROCESS_FUNCS', True) or '').split(): bb.build.exec_func(f, d) + pn = d.getVar("PN", True) + multiprov = d.getVar("MULTI_PROVIDER_WHITELIST", True).split() + provdir = d.expand("${SYSROOT_DESTDIR}${base_prefix}/sysroot-providers/") + bb.utils.mkdirhier(provdir) + for p in d.getVar("PROVIDES", True).split(): + if p in multiprov: + continue + p = p.replace("/", "_") + with open(provdir + p, "w") as f: + f.write(pn) } SSTATETASKS += "do_populate_sysroot" |