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:
107
sources/meta-freescale/recipes-graphics/mali/mali-imx.inc
Normal file
107
sources/meta-freescale/recipes-graphics/mali/mali-imx.inc
Normal file
@@ -0,0 +1,107 @@
|
||||
SUMMARY = "Graphics libraries and driver for i.MX Mali GPU"
|
||||
SECTION = "libs"
|
||||
DEPENDS = " \
|
||||
libdrm \
|
||||
vulkan-loader \
|
||||
wayland \
|
||||
wayland-protocols"
|
||||
PROVIDES = " \
|
||||
virtual/egl \
|
||||
virtual/libgbm \
|
||||
virtual/libgles1 \
|
||||
virtual/libgles2 \
|
||||
virtual/libgles3"
|
||||
|
||||
# The packaged binaries have been stripped of debug info, so disable
|
||||
# operations accordingly.
|
||||
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
|
||||
INHIBIT_PACKAGE_STRIP = "1"
|
||||
INHIBIT_SYSROOT_STRIP = "1"
|
||||
|
||||
PACKAGES =+ " \
|
||||
${PN}-libegl ${PN}-libegl-dev \
|
||||
${PN}-libgbm ${PN}-libgbm-dev \
|
||||
${PN}-libgles1 ${PN}-libgles1-dev \
|
||||
${PN}-libgles2 ${PN}-libgles2-dev \
|
||||
${PN}-libgles3 ${PN}-libgles3-dev \
|
||||
${PN}-libvulkan \
|
||||
${PN}-opencl-icd ${PN}-opencl-icd-dev"
|
||||
|
||||
# Since libmali.so is loaded by dlopen, include it in the main package
|
||||
FILES:${PN} += " \
|
||||
${libdir}/libmali.so \
|
||||
${nonarch_base_libdir}/firmware"
|
||||
FILES_SOLIBSDEV = ""
|
||||
INSANE_SKIP:${PN} = "dev-so"
|
||||
FILES:${PN}-libegl = " \
|
||||
${libdir}/libEGL${SOLIBS}"
|
||||
FILES:${PN}-libgbm = " \
|
||||
${libdir}/libgbm${SOLIBS}"
|
||||
FILES:${PN}-libgles1 = " \
|
||||
${libdir}/libGLESv1_CM${SOLIBS}"
|
||||
FILES:${PN}-libgles2 = " \
|
||||
${libdir}/libGLESv2${SOLIBS}"
|
||||
FILES:${PN}-opencl-icd = " \
|
||||
${sysconfdir}/OpenCL"
|
||||
FILES:${PN}-libvulkan = " \
|
||||
${sysconfdir}/vulkan"
|
||||
|
||||
FILES:${PN}-dev = " \
|
||||
${bindir}/malisc"
|
||||
FILES:${PN}-libegl-dev = " \
|
||||
${includedir}/EGL \
|
||||
${includedir}/KHR \
|
||||
${libdir}/libEGL${SOLIBSDEV} \
|
||||
${libdir}/pkgconfig/egl.pc"
|
||||
FILES:${PN}-libgbm-dev = " \
|
||||
${includedir}/gbm.h \
|
||||
${libdir}/libgbm${SOLIBSDEV} \
|
||||
${libdir}/pkgconfig/gbm.pc"
|
||||
|
||||
# Consolidate GLES dev packages
|
||||
PACKAGES =+ "${PN}-libgles-dev"
|
||||
FILES:${PN}-libgles-dev = " \
|
||||
${includedir}/GLES* \
|
||||
${libdir}/libGLES*${SOLIBSDEV} \
|
||||
${libdir}/pkgconfig/gles*.pc"
|
||||
DEBIAN_NOAUTONAME:${PN}-libgles-dev = "1"
|
||||
RREPLACES:${PN}-libgles-dev = "libgles-dev"
|
||||
RPROVIDES:${PN}-libgles-dev = "libgles-dev"
|
||||
RCONFLICTS:${PN}-libgles-dev = "libgles-dev"
|
||||
ALLOW_EMPTY:${PN}-libgles1-dev = "1"
|
||||
ALLOW_EMPTY:${PN}-libgles2-dev = "1"
|
||||
ALLOW_EMPTY:${PN}-libgles3-dev = "1"
|
||||
RDEPENDS:${PN}-libgles1-dev = "${PN}-libgles-dev"
|
||||
RDEPENDS:${PN}-libgles2-dev = "${PN}-libgles-dev"
|
||||
RDEPENDS:${PN}-libgles3-dev = "${PN}-libgles-dev"
|
||||
|
||||
FILES:${PN}-opencl-icd-dev = " \
|
||||
${bindir}/mali_clcc"
|
||||
|
||||
python __anonymous() {
|
||||
|
||||
# Avoid Debian-renaming
|
||||
for p in (("libegl", "libegl1" ),
|
||||
("libgbm", "libgbm1" ),
|
||||
("libgles1", "libglesv1-cm1"),
|
||||
("libgles2", "libglesv2-2" ),
|
||||
("libgles3", )):
|
||||
fullp = "${PN}-" + p[0]
|
||||
pkgs = "".join(' %s' % i for i in p)
|
||||
d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1")
|
||||
d.appendVar("RREPLACES:" + fullp, pkgs)
|
||||
d.appendVar("RPROVIDES:" + fullp, pkgs)
|
||||
d.appendVar("RCONFLICTS:" + fullp, pkgs)
|
||||
# libmali.so is loaded with dlopen, so an explicit runtime dependency is necessary
|
||||
d.appendVar("RDEPENDS:" + fullp, "${PN}")
|
||||
|
||||
# For -dev, the first element is both the Debian and original name
|
||||
fullp += "-dev"
|
||||
pkgs = p[0] + "-dev"
|
||||
d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1")
|
||||
d.appendVar("RREPLACES:" + fullp, pkgs)
|
||||
d.appendVar("RPROVIDES:" + fullp, pkgs)
|
||||
d.appendVar("RCONFLICTS:" + fullp, pkgs)
|
||||
}
|
||||
|
||||
COMPATIBLE_MACHINE = "(mx95-nxp-bsp)"
|
||||
@@ -0,0 +1,25 @@
|
||||
require mali-imx.inc
|
||||
|
||||
LICENSE = "Proprietary"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=bc649096ad3928ec06a8713b8d787eac"
|
||||
|
||||
SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}-${IMX_SRCREV_ABBREV}.bin;fsl-eula=true"
|
||||
SRC_URI[sha256sum] = "83a5be75384a92f0305516785ffbefe72683eba5a4ebf03ec7c1b7d7cdc76064"
|
||||
IMX_SRCREV_ABBREV = "696f9a6"
|
||||
|
||||
S = "${WORKDIR}/${BPN}-${PV}-${IMX_SRCREV_ABBREV}"
|
||||
|
||||
inherit fsl-eula-unpack
|
||||
|
||||
do_install () {
|
||||
install -d ${D}
|
||||
cp -r ${S}/etc ${S}/usr ${D}
|
||||
|
||||
# Move firmware to nonarch_base_libdir
|
||||
if [ "${base_libdir}" != "${nonarch_base_libdir}" ]; then
|
||||
install -d ${D}${nonarch_base_libdir}
|
||||
mv ${D}${base_libdir}/firmware ${D}${nonarch_base_libdir}
|
||||
fi
|
||||
}
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_SOCARCH}"
|
||||
Reference in New Issue
Block a user