Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
41
sources/poky/meta/classes-recipe/multilib_script.bbclass
Normal file
41
sources/poky/meta/classes-recipe/multilib_script.bbclass
Normal file
@@ -0,0 +1,41 @@
|
||||
#
|
||||
# Copyright OpenEmbedded Contributors
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
#
|
||||
# Recipe needs to set MULTILIB_SCRIPTS in the form <pkgname>:<scriptname>, e.g.
|
||||
# MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/file1 ${PN}:${base_bindir}/file2"
|
||||
# to indicate which script files to process from which packages.
|
||||
#
|
||||
|
||||
inherit update-alternatives
|
||||
|
||||
MULTILIB_SUFFIX = "${@d.getVar('base_libdir',1).split('/')[-1]}"
|
||||
|
||||
PACKAGE_PREPROCESS_FUNCS += "multilibscript_rename"
|
||||
|
||||
multilibscript_rename() {
|
||||
:
|
||||
}
|
||||
|
||||
python () {
|
||||
# Do nothing if multilib isn't being used
|
||||
if not d.getVar("MULTILIB_VARIANTS"):
|
||||
return
|
||||
# Do nothing for native/cross
|
||||
if bb.data.inherits_class('native', d) or bb.data.inherits_class('cross', d):
|
||||
return
|
||||
|
||||
for entry in (d.getVar("MULTILIB_SCRIPTS", False) or "").split():
|
||||
pkg, script = entry.split(":")
|
||||
epkg = d.expand(pkg)
|
||||
escript = d.expand(script)
|
||||
scriptname = os.path.basename(escript)
|
||||
d.appendVar("ALTERNATIVE:" + epkg, " " + scriptname + " ")
|
||||
d.setVarFlag("ALTERNATIVE_LINK_NAME", scriptname, escript)
|
||||
d.setVarFlag("ALTERNATIVE_TARGET", scriptname, escript + "-${MULTILIB_SUFFIX}")
|
||||
d.appendVar("multilibscript_rename", "\n mv ${PKGD}" + escript + " ${PKGD}" + escript + "-${MULTILIB_SUFFIX}")
|
||||
d.appendVar("FILES:" + epkg, " " + escript + "-${MULTILIB_SUFFIX}")
|
||||
}
|
||||
Reference in New Issue
Block a user