aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-graphics
AgeCommit message (Collapse)Author
2024-01-16meta-freescale: update waffle patch to compatible with version 1.7.2Meng Li
In yocto release kirkstone, waffle package is upgraded from 1.7.0 to 1.7.2, and there is below error reported when applying patch: Applying patch 0001-meson-Add-missing-wayland-dependency-on-EGL.patch patching file meson.build Hunk #1 succeeded at 65 (offset 2 lines). Hunk #2 succeeded at 107 (offset 2 lines). Hunk #3 succeeded at 126 with fuzz 1 (offset 4 lines). So, adjust the patch context to compatible with version 1.7.2 Signed-off-by: Meng Li <Meng.Li@windriver.com>
2023-06-07xserver-xorg: fix patch fuzzDan McGregor
Reformat the patch so that the do_patch step stops complaining about patch fuzz. Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
2023-06-07xserver-xorg: Drop patches which are no more applicableKhem Raj
Some of these patches are already upstream [1] Others are moved to xwayland Glamor patches were backports no longer needed [1] https://gitlab.freedesktop.org/xorg/xserver/-/commit/cc05c01925755310f027c61daa29648a10155f96 Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-06-07xserver-xorg: Drop Remove-check-for-useSIGIO-option.patchKhem Raj
This patch is already upstreamed [1] [1] https://gitlab.freedesktop.org/xorg/xserver/-/commit/36e353bcf428c4e6a31292ffa749ea6395cba4a3 Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-17wayland-protocols: Add i.MX 9 series compatibility for NXP BSPTom Hochstein
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit 6a5b0e2e17bccd3521234355d526d56a1ba51a5b)
2023-02-17wayland-protocols: Simplify compatibility logicTom Hochstein
The recipe is for all i.MX 6-8 SOCs using NXP BSP, but it confusingly uses an indirect override imxfbdev|imxgpu. The override used does happen to cover all 6-8, but it is simpler to just use i.MX series overrides. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit c54c8ad851f78f7b183e2175d1c9ba0179ddfc48)
2023-02-17imx-pxp-g2d: Add PXP implementation of G2DTom Hochstein
Used by i.MX 93. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit bb2d96bd16a868bc4ae8ea91c1f89b6b07a3c082)
2023-02-08layer: Use github for i.MX sourceTom Hochstein
The NXP repos are moving to github. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit 8ba7a58122ebbbdfd57f39b3c99be51a0022c3e9)
2023-02-08libdrm: Update to 5.15.71_2.2.0Tom Hochstein
Includes: 063bd699 MGS-6873 tests/util: add imx-dcnano driver c6cf6625 MA-20797 Update imx_drm header to enable fence support in DRM blitter API Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit 9d93337bb9cd419b0ec627f4bb51cac4472ef5cf)
2023-01-08imx-g2d-samples: bump revision to 3efd75aGary Bisson
Update to the version used in NXP Yocto branch kirkstone-5.15.71-2.2.0. Updated the repo location to new Github account. Commit history: 3efd75a MGS-6902 Add SCR for g2d-samples 0094ed8 LF-6616 g2d-samples intermittent build break 80d5888 MGS-3854 Fix global alpha on iMX8QM/QXP 0c36b18 MGS-6862-2 warp_dewarp_test: Fix misuse of &ctx->handle b4443cb MGS-6862-1 warp_dewarp_test: Add g2d_open check Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> (cherry picked from commit c74f0f55a68528f8159ca14436d1f7fac8b37a80)
2023-01-08imx-dpu-g2d: update from 2.1.2 to 2.1.4Gary Bisson
- Update to the version used in NXP Yocto branch kirkstone-5.15.71-2.2.0 - Also the binaries seem to be stripped now, so skip that step to avoid build errors Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> (cherry picked from commit 95c89b6f281d67ef1f1da0c7e1d92b77aed51e86)
2023-01-08imx-gpu-g2d: update from 6.4.3.p4.4 to 6.4.3.p4.6Gary Bisson
- Update to the version used in NXP Yocto branch kirkstone-5.15.71-2.2.0 - The 8M Mini does not support OpenCL, so install an SOC-specific G2D library built without OpenCL. (see e3e0817b in meta-imx) - Also the binaries seem to be stripped now, so skip that step to avoid build errors Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> (cherry picked from commit 599d4aa186656e5eb709ebf26ef72b93234e37b2)
2023-01-08imx-gpu-viv: update from 6.4.3.p4.4 to 6.4.3.p4.6Gary Bisson
Update to the version used in NXP Yocto branch kirkstone-5.15.71-2.2.0. Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> (cherry picked from commit 1fec75c2b290add66471cef866165c31bef32fb3)
2022-12-20weston-init: Correct override of INI_UNCOMMENT_ASSIGNMENTSJun Zhu
current implement only includes INI_UNCOMMENT_USE_G2D to INI_UNCOMMENT_ASSIGNMENTS on the platforms with VIV G2D hardware. Signed-off-by: Jun Zhu <junzhu@nxp.com> (cherry picked from commit 164e32093692d72a56c348f3e91a3a7b48152189)
2022-11-18weston imx: update from 10.0.0.imx to 10.0.1.imxMax Krummenacher
Update to the version used in lf5.15.52_2.1.0. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 8114b55995e4e73c19dab6670adc8d7ec633f8af)
2022-11-18imx-g2d-samples: update to 2.1, sha 5a38513Max Krummenacher
Update to the version used in lf5.15.52_2.1.0. imx-g2d-samples now is configured with the BUILD_IMPLEMENTATION environment variable which is expected to be set to one of dpu|gpu-drm|gpu-fbdev depending on the targeted SoC. Commit history: * 5a38513 wayland_dmabuf_test:Convert to xdg-shell * c8167c1 wayland_cf_test:Convert to xdg-shell * 2ccdebe wayland_shm_test:Convert to xdg-shell * 82169b8 LF-6057: g2d_wayland_dmabuf_test had no display * 63272d5 Add multiblit_test build for imx6/7 fbdev * 85ef72a rename extended_test to tiling_test * 2fbe894 YOCIMX-6294: Configure samples to build by implementation * 4f03293 README.md: Cleanup minor issues * 0b6981e MGS-6648 [#ccc] Add Test loop parameter in command line for power measurements Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 5e6003bf5add83d67cd8f704d1512ebf5ee18b6f)
2022-11-18imx-dpu-g2d: update from 2.1.0 to 2.1.2Max Krummenacher
Update to the version used in lf5.15.52_2.1.0. License was updated to NXP EULA v39 August 2022. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit d92613880280183d438f607ec3c74b549894cbe8)
2022-11-18imx-gpu-g2d: update from 6.4.3.p4.2 to 6.4.3.p4.4Max Krummenacher
Update to the version used in lf5.15.52_2.1.0. License was updated to NXP EULA v39 August 2022. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 97fae3422d575110346b5238a758d343376ef2d1)
2022-11-18imx-gpu-viv: update from 6.4.3.p4.2 to 6.4.3.p4.4Max Krummenacher
Update to the version used in lf5.15.52_2.1.0. Note that the the vulkan installable client driver is provided with a filename and soname that no longer clashes with the vulkan loader. Thus the rename and soname magic is dropped. License was updated to NXP EULA v39 August 2022. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 2ad610490aeb8ac723f1a796aaad56aec3872574)
2022-10-24weston: fix build test-internal-screenshotMaxim Paymushkin
tests: Add dependency on screenshooter client protocol Given that the test-helper code relies on the screenshooter protocol, make sure it's available for us to build, and the dependency ensures we build in order. Link: https://github.com/wayland-project/weston Commit: 2ac6b6b084a877adde64db7faff2ed22eb3ea97a Fixes: #1273 Signed-off-by: Maxim Paymushkin <maxim.paymushkin@gmail.com>
2022-10-21Revert "imx-gpu-viv: inherit features_check in imx-gpu-viv bb file"Otavio Salvador
This reverts commit 4d97ada2fa09f83dbb551370deb320e5c74545d3.
2022-10-21imx-gpu-viv: inherit features_check in imx-gpu-viv bb fileMeng Li
After rebase meta-freescale, there is a building warning as below: WARNING: imx-gpu-viv-1_6.4.3.p4.2-aarch64-r0 do_package_qa: QA Issue: imx-gpu-viv: recipe doesn't inherit features_check Because the features_check was missed when NXP upgraded imx-gpu-viv package, add it back. Signed-off-by: Meng Li <Meng.Li@windriver.com>
2022-10-15vulkan-loader: Fix library packagingTom Hochstein
The logic to move the .so into the main package is incorrect and results in all libraries being moved to the dev package, causing a QA error like the following: ``` ERROR: imx-gpu-sdk-5.7.1-r0 do_package_qa: QA Issue: imx-gpu-sdk rdepends on vulkan-loader-dev [dev-deps] ``` Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit 509be15b1456f88831b6a074af354304ea873aaa)
2022-10-11imx-gpu-viv: Install missing Vulkan ICD config fileTom Hochstein
Add the missing json file for the i.MX vulkan implementation. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit 10318d49308ddb09a1f35ce33134d8cf76870ae3)
2022-10-11vulkan-loader: Place .so in main packageTom Hochstein
The library libvulkan.so is loaded dynamically and so is needed in the main package. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit 8648cedaa35519cad859207e25689889155760a9)
2022-10-11vulkan-loader: Drop mesa dependency for i.MX GPUTom Hochstein
When i.MX GPU-based vulkan is used, the mesa drivers are not needed. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit acf5734a90ae5528ef18fc1d0cb0522c37f88059)
2022-10-11vulkan: Downgrade to 1.2.182.0 for i.MX GPUTom Hochstein
i.MX GPU drivers work with an older version of vulkan, so add the older recipes. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit 705d5ca01245e1b0aa42d7380ad79ff1c3db8fcb)
2022-10-04imx-gpu-viv: use the imxvulkan override for libvulkanJose Quaresma
Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> (cherry picked from commit d270e11690dc9947e157713d9acebdd5973c7421)
2022-10-04vulkan-loader: use the imxvulkan override in recommendsJose Quaresma
With this the libvulkan-imx is recommends only when the machine supports Vulkan. Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> (cherry picked from commit 343f2809030450f7f720d98ca5ffc34e30aea8e0)
2022-10-03imx-gpu-viv: Allow limited OpenVX supportTom Hochstein
OpenVX is fully supported on i.MX 8 QuadMax and 8 QuadPlus. A recent change removed OpenVX packages except for this case. This was a mistake, since there is in fact limited OpenVX support provided on other i.MX 8 machines as needed for i.MX machine learning packages. Fixes: 09e2ce3 Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit 42e5e3ec9b4f62c83b47e956349fa4d409e56df1)
2022-09-30weston_10.0.0.imx: add build dependency on libdrmMarkus Niebel
When removing rdp as default dependency a hidden buildtime dependency on libdrm is uncovered for targets using fbdev as backend and g2d as renderer. As a result compiling for i.MX6 will fail due to missing libdrm headers. Add libdrm to DEPENDS for imxfbdev. Signed-off-by: Markus Niebel <Markus.Niebel@ew.tq-group.com> (cherry picked from commit 678bf9b179a4573ae7290f2600949c0f5440a271)
2022-09-29imx-gpu-viv: fix removing non packaged filesMax Krummenacher
The for loops over the FILES:xxx variables do file expansion on the FILES entries. As a result any file name(s) specified with a wildcard which actually exists in the host filesystem will be replaced with the host filesystems file name(s). Disable file expansion for the for loop and reenable it afterwards so that the expansion happens on the full file names with the ${D} prefix. E.g if the host has /usr/lib/libOpenCL.so.1, then /usr/lib/libOpenCL.so.* gets expanded to /usr/lib/libOpenCL.so.1, and as a result ${D}/usr/lib/libOpenCL.so.1.2, ${D}//usr/lib/libOpenCL.so.3 ... will not be deleted. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit fe187c070f06c56a28416da339591ad3c4b6e9c8)
2022-09-29imx-gpu-viv: mx8mm: keep deploying openclMax Krummenacher
imx-gpu-g2d dynamically links against the library so OE stops with the following errors: | ERROR: imx-gpu-g2d-6.4.3.p4.2-r0 do_package_qa: QA Issue: /usr/lib/libg2d-viv.so.2.1.0 contained in package imx-gpu-g2d requires libOpenCL.so.3(OPENCL_1.0)(64bit), but no providers found in RDEPENDS:imx-gpu-g2d? [file-rdeps] | ERROR: imx-gpu-g2d-6.4.3.p4.2-r0 do_package_qa: QA Issue: /usr/lib/libg2d-viv.so.2.1.0 contained in package imx-gpu-g2d requires libOpenCL.so.3()(64bit), but no providers found in RDEPENDS:imx-gpu-g2d? [file-rdeps] Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 8c720cd5492c0717fd5de477daacda3b717b3649)
2022-09-29weston: Fix the append logicKhem Raj
Previous commit did not really work because we are using bb.utils.filter and that removed the artificial space sadly. Therefore add it outside this function call. Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit e3c2e0644a4593ae35270a890e1e3692f234545e)
2022-09-29weston: Add missing space before appending to PACKAGECONFIGKhem Raj
This can cause problem by creating unknown packageconfigs by concatenating the strings Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit b8581e79e0ae9d7c1a6181ebd3425b7348b86f26)
2022-09-28weston: disable rdp as it pulls in some big dependenciesJose Quaresma
The weston_10.0.0.imx now depends on freerdp which in turn pulls some unrelated big dependencies like cups and gstreamer. | # meta-freescale/recipes-graphics/wayland/weston_10.0.0.imx.bb | PACKAGECONFIG[rdp] = "-Dbackend-rdp=true,-Dbackend-rdp=false,freerdp" | | PACKAGECONFIG:append = " \ | rdp \ | ${@bb.utils.filter('DISTRO_FEATURES', '${PACKAGECONFIG_OPENGL}', d)}" | # meta-openembedded/meta-oe/recipes-support/freerdp/freerdp_2.8.0.bb | PACKAGECONFIG ??= " \ | ${@bb.utils.filter('DISTRO_FEATURES', 'directfb pam pulseaudio wayland x11', d)}\ | gstreamer cups pcsc \ | " | | PACKAGECONFIG[cups] = "-DWITH_CUPS=ON,-DWITH_CUPS=OFF,cups" | PACKAGECONFIG[gstreamer] = "-DWITH_GSTREAMER_1_0=ON,-DWITH_GSTREAMER_1_0=OFF,gstreamer1.0 gstreamer1.0-plugins-base" Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> (cherry picked from commit 3e4a9fb838f20b63067416e8f2ade1f7dfb61d6f)
2022-09-23imx-gpu-viv: Remove OpenCL and OpenVX from unsupported SOCsTom Hochstein
OpenCL and OpenVX components are provided for SOCs that are not supported. Fix this by removing them from the PACKAGES variable and from the install. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit 09e2ce31195867024d271eefea9891b94b7d20dd)
2022-09-23imx-gpu-viv: Drop SOC condition on FILES:libgbm-imx*Tom Hochstein
The FILES variable should always specify the components regardless of whether those components work for the SOC. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit 6ea6800903c149b9c6297a40896ca206f74fa1cd)
2022-09-23imx-gpu-viv: Use FILES variable for VDK and Vulkan removalTom Hochstein
The removal of the libvdk-imx and libvulkan-imx components is properly handled with the existing FILES variables instead of with an incomplete hard-coded list. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit 4e2846e9cce900697f850fa092bc41a1cc5b9d4a)
2022-09-21imx-gpu-viv: Add support for i.MX 8 without WaylandTom Hochstein
This configuration is experimental and has never been fully tested. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit 0afe904e6bb501816ffc6cf0a7c136d7d46b144e)
2022-09-21imx-gpu-viv: remove vulkan files if not packagedMax Krummenacher
For the i.MX 8M Mini the GPU doesn't provide the Vulkan API and thus the Vulkan libs are not installed. Delete them in that case from the install directory to prevent the following build time error: | ERROR: imx-gpu-viv-1_6.4.3.p4.2-aarch64-r0 do_package: QA Issue: imx-gpu-viv: Files/directories were installed but not shipped in any package: | /usr/lib/libvulkan.so.1.2.1 | /usr/lib/libvulkan.so.1 Once the above files are deleted from ${D} I additionally get: | ERROR: imx-gpu-viv-1_6.4.3.p4.2-aarch64-r0 do_package_qa: QA Issue: -dev package imx-gpu-viv-dev contains non-symlink .so '/usr/lib/libSPIRV_viv.so' [dev-elf] Why it is not in the list of the `installed but not shipped`files I do not know, but as libSPIRV_viv is also packaged into the vulkan packages let's delete it too. Fixes: ee92b5a8 ("imx-gpu-viv: Mark libvulkan-imx unavailable for 8M Mini") Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit e55eda8b7f590ee07c5cb6c6605b7167c70456dd)
2022-09-21Merge pull request #1220 from Freescale/backport-1214-to-kirkstoneOtavio Salvador
[Backport kirkstone] musl fixes
2022-09-20imx-gpu-viv: Insert libgcompat.so to DT_NEEDED section of libsKhem Raj
These libs are pre-compiled for glibc therefore, on musl they will need redirecting via the gcompat stub to work at runtime. Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit d91b6dac7dd7c0879b3a4a5f8f3abd82c33780b7)
2022-09-20weston: Allow undefined symbols with muslKhem Raj
These are glibc specific symbols which gcompat should be able to handle at runtime Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 6a882207bccfad31d78b912006138bda79667615)
2022-09-20pango: Fix build on musl on socs with imxgpuKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit b193283531d05b436839cf66b0b5dca51c345d6d)
2022-09-20harfbuzz: Fix build with musl on imxgpu machinesKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 3159282461d2b251ad5d3f09d1ca0196d2b548c1)
2022-09-20cairo,xwayland: Fix compiling with musl with vivante gpu driver libsKhem Raj
This ensures that the symbols from the prebuilt libs are not flagged during build, we are betting on gcompat to provide the missing glibc API stubs at runtime. Depend on gcompat on musl needed for imxgpu machines its needed since graphics driver is precompiled for glibc. Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit fa4112e43fc4edc4a8521eddd459606328be647e)
2022-09-20imx-dpu-g2d,imx-gpu-viv,imx-sw-pdm: Use gcompat with muslKhem Raj
These recipes contain pre-built binaries and libraries which are built against glibc, we have a way to run such binaries on musl systems via gcompat stubs, however, we have to fool the system to ignore the missing rdeps on libc.so.6, since we know they will be available via gcompat being in rdep. Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 61718793a4c04c768ecc829372b9d4de3c6c463b)
2022-09-20imx-gpu-viv: Mark libvulkan-imx unavailable for 8M MiniTom Hochstein
The GPU drivers do not support 8M Mini, so properly exclude them from PACKAGES so the user gets an earlier indication of a problem: ``` $ bitbake vulkan-loader ERROR: Nothing RPROVIDES 'libvulkan-imx' (but /.../poky/meta/recipes-graphics/vulkan/vulkan-loader_1.3.216.0.bb RDEPENDS on or otherwise requires it) ERROR: Required build target 'vulkan-loader' has no buildable providers. Missing or unbuildable dependency chain was: ['vulkan-loader', 'libvulkan-imx'] ``` Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit ee92b5a8b2cad45de267d3cf6dae9251f5ed11fd)
2022-09-15gtk+3: Drop x11 config logicTom Hochstein
The original intent of dropping x11 support from the package was so only wayland would be supported. The fix in efcb2fe and 7447f7c removes that. However, it keeps the idea that the x11 packageconfig should be disallowed from being added if x11 is not in the distro features. This was never the intent of the original logic, and since the default is to enable x11 packageconfig if and only if x11 is a distro feature, just drop the logic entirely. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit e3f41f8c93ab66b1f124059cf5ce3d24b148285b)