-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1999 from Freescale/backport-1998-to-scarthgap
[Backport scarthgap] Add GPU support for i.MX95
- Loading branch information
Showing
9 changed files
with
152 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#@TYPE: Machine | ||
#@NAME: Toradex i.MX 95 19x19 Verdin board | ||
#@NAME: Toradex i.MX 95 19x19 Verdin Evaluation Kit | ||
#@SOC: i.MX95 | ||
#@DESCRIPTION: Machine configuration for Toradex i.MX 95 19x19 Verdin board | ||
#@DESCRIPTION: Machine configuration for Toradex i.MX 95 19x19 Verdin Evaluation Ki | ||
#@MAINTAINER: Flora Hu <[email protected]> | ||
|
||
MACHINEOVERRIDES =. "mx95:" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
dynamic-layers/openembedded-layer/recipes-benchmark/glmark2/glmark2_%.bbappend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Only _mx8 machine do provide virtual/libgbm required for any drm* flavour | ||
DRM-REMOVE:imxgpu = "drm-gl drm-gles2" | ||
DRM-REMOVE:imxgpu:mx8-nxp-bsp = "" | ||
DRM-REMOVE:imxgpu:mx95-nxp-bsp = "" | ||
PACKAGECONFIG:remove = "${DRM-REMOVE}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
require mali-imx.inc | ||
|
||
LICENSE = "Proprietary" | ||
LIC_FILES_CHKSUM = "file://COPYING;md5=ca53281cc0caa7e320d4945a896fb837" | ||
|
||
SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}-${IMX_SRCREV_ABBREV}.bin;fsl-eula=true" | ||
SRC_URI[sha256sum] = "a787a3285c3e288eedacf1a746de2bc9f5fdc15f35cf8b6147deb436183baf6f" | ||
IMX_SRCREV_ABBREV = "39604c3" | ||
|
||
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}" |