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:
52
sources/poky/meta/classes-recipe/python_mesonpy.bbclass
Normal file
52
sources/poky/meta/classes-recipe/python_mesonpy.bbclass
Normal file
@@ -0,0 +1,52 @@
|
||||
#
|
||||
# Copyright OpenEmbedded Contributors
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
inherit meson setuptools3-base python3targetconfig python_pep517
|
||||
|
||||
# meson_do_qa_configure does the wrong thing here because
|
||||
# mesonpy runs "meson setup ..." in do_compile context.
|
||||
# Make it a dummy function.
|
||||
meson_do_qa_configure () {
|
||||
:
|
||||
}
|
||||
|
||||
# This prevents the meson error:
|
||||
# ERROR: Got argument buildtype as both -Dbuildtype and --buildtype. Pick one.
|
||||
MESONOPTS:remove = "--buildtype ${MESON_BUILDTYPE}"
|
||||
|
||||
CONFIGURE_FILES = "pyproject.toml"
|
||||
|
||||
DEPENDS += "python3-wheel-native python3-meson-python-native"
|
||||
|
||||
def mesonpy_get_args(d):
|
||||
vars = ['MESONOPTS', 'MESON_CROSS_FILE', 'EXTRA_OEMESON']
|
||||
varlist = []
|
||||
for var in vars:
|
||||
value = d.getVar(var)
|
||||
vallist = value.split()
|
||||
for elem in vallist:
|
||||
varlist.append("-Csetup-args=" + elem)
|
||||
return ' '.join(varlist)
|
||||
|
||||
PEP517_BUILD_OPTS = "-Cbuilddir='${B}' ${@mesonpy_get_args(d)}"
|
||||
|
||||
# Python pyx -> c -> so build leaves absolute build paths in the code
|
||||
INSANE_SKIP:${PN} += "buildpaths"
|
||||
INSANE_SKIP:${PN}-src += "buildpaths"
|
||||
|
||||
python_mesonpy_do_configure () {
|
||||
python_pep517_do_configure
|
||||
}
|
||||
|
||||
python_mesonpy_do_compile () {
|
||||
python_pep517_do_compile
|
||||
}
|
||||
|
||||
python_mesonpy_do_install () {
|
||||
python_pep517_do_install
|
||||
}
|
||||
|
||||
EXPORT_FUNCTIONS do_configure do_compile do_install
|
||||
Reference in New Issue
Block a user