summaryrefslogtreecommitdiffstats
path: root/recipes-graphics
Commit message (Collapse)AuthorAgeFilesLines
* weston: fix build test-internal-screenshotMaxim Paymushkin2022-10-242-0/+34
| | | | | | | | | | | | | | | 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>
* Revert "imx-gpu-viv: inherit features_check in imx-gpu-viv bb file"Otavio Salvador2022-10-211-1/+1
| | | | This reverts commit 4d97ada2fa09f83dbb551370deb320e5c74545d3.
* imx-gpu-viv: inherit features_check in imx-gpu-viv bb fileMeng Li2022-10-211-1/+1
| | | | | | | | | | | 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> (cherry picked from commit 14916cfe741f696545515ddc768da43d2ea29fb6)
* vulkan-loader: Fix library packagingTom Hochstein2022-10-151-2/+3
| | | | | | | | | | | | 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>
* imx-gpu-viv: Install missing Vulkan ICD config fileTom Hochstein2022-10-112-3/+19
| | | | | | Add the missing json file for the i.MX vulkan implementation. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* vulkan-loader: Place .so in main packageTom Hochstein2022-10-111-0/+4
| | | | | | | The library libvulkan.so is loaded dynamically and so is needed in the main package. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* vulkan-loader: Drop mesa dependency for i.MX GPUTom Hochstein2022-10-111-3/+2
| | | | | | When i.MX GPU-based vulkan is used, the mesa drivers are not needed. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* vulkan: Downgrade to 1.2.182.0 for i.MX GPUTom Hochstein2022-10-111-0/+0
| | | | | | | 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>
* imx-gpu-viv: use the imxvulkan override for libvulkanJose Quaresma2022-10-041-2/+1
| | | | Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
* vulkan-loader: use the imxvulkan override in recommendsJose Quaresma2022-10-041-1/+1
| | | | | | | With this the libvulkan-imx is recommends only when the machine supports Vulkan. Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
* imx-gpu-viv: Allow limited OpenVX supportTom Hochstein2022-10-011-2/+9
| | | | | | | | | | 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>
* weston_10.0.0.imx: add build dependency on libdrmMarkus Niebel2022-09-301-0/+1
| | | | | | | | | | | 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>
* Merge pull request #1229 from MaxKrummenacher/masterOtavio Salvador2022-09-291-1/+8
|\ | | | | Some fixes for imx-nxp-bsp
| * imx-gpu-viv: fix removing non packaged filesMax Krummenacher2022-09-281-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * imx-gpu-viv: mx8mm: keep deploying openclMax Krummenacher2022-09-261-1/+0
| | | | | | | | | | | | | | | | | | | | 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>
* | weston: Fix the append logicKhem Raj2022-09-291-1/+1
| | | | | | | | | | | | | | | | 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>
* | weston: Add missing space before appending to PACKAGECONFIGKhem Raj2022-09-291-1/+1
| | | | | | | | | | | | | | This can cause problem by creating unknown packageconfigs by concatenating the strings Signed-off-by: Khem Raj <raj.khem@gmail.com>
* | weston: disable rdp as it pulls in some big dependenciesJose Quaresma2022-09-281-3/+1
|/ | | | | | | | | | | | | | | | | | | | | | | 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>
* imx-gpu-viv: Remove OpenCL and OpenVX from unsupported SOCsTom Hochstein2022-09-221-8/+30
| | | | | | | | 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>
* imx-gpu-viv: Drop SOC condition on FILES:libgbm-imx*Tom Hochstein2022-09-221-3/+3
| | | | | | | 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>
* imx-gpu-viv: Use FILES variable for VDK and Vulkan removalTom Hochstein2022-09-221-13/+16
| | | | | | | | 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>
* Merge pull request #1217 from thochstein/imx-gpu-vivOtavio Salvador2022-09-211-16/+25
|\ | | | | imx-gpu-viv: Add support for i.MX 8 without Wayland
| * imx-gpu-viv: Add support for i.MX 8 without WaylandTom Hochstein2022-09-211-16/+25
| | | | | | | | | | | | This configuration is experimental and has never been fully tested. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* | imx-gpu-viv: remove vulkan files if not packagedMax Krummenacher2022-09-211-9/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge pull request #1214 from YoeDistro/yoe/mutOtavio Salvador2022-09-208-4/+49
|\ \ | | | | | | musl fixes
| * | imx-gpu-viv: Insert libgcompat.so to DT_NEEDED section of libsKhem Raj2022-09-191-0/+20
| | | | | | | | | | | | | | | | | | | | | 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>
| * | weston: Allow undefined symbols with muslKhem Raj2022-09-191-0/+4
| | | | | | | | | | | | | | | | | | | | | These are glibc specific symbols which gcompat should be able to handle at runtime Signed-off-by: Khem Raj <raj.khem@gmail.com>
| * | pango: Fix build on musl on socs with imxgpuKhem Raj2022-09-191-0/+5
| | | | | | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
| * | harfbuzz: Fix build with musl on imxgpu machinesKhem Raj2022-09-191-0/+5
| | | | | | | | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
| * | cairo,xwayland: Fix compiling with musl with vivante gpu driver libsKhem Raj2022-09-192-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | imx-dpu-g2d,imx-gpu-viv,imx-sw-pdm: Use gcompat with muslKhem Raj2022-09-172-3/+7
| |/ | | | | | | | | | | | | | | | | | | 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>
* / imx-gpu-viv: Mark libvulkan-imx unavailable for 8M MiniTom Hochstein2022-09-191-4/+7
|/ | | | | | | | | | | | | | 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>
* gtk+3: Drop x11 config logicTom Hochstein2022-09-151-5/+0
| | | | | | | | | | | | 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>
* gtk+3: Fix logical error in removing x11Khem Raj2022-09-141-1/+1
| | | | | | | Last commit had a thinko, where it should be removing x11 only if x11 is not in distro features, but it ended up doing that for wayland Signed-off-by: Khem Raj <raj.khem@gmail.com>
* gtk+: Disable x11 only when wayland is in distro_features but x11 is notKhem Raj2022-09-131-3/+4
| | | | | | | Some distros enable both x11 and wayland in distro features in such cases it should not remove x11 from distro features. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* xserver-xorg: Drop patches which are no more applicableKhem Raj2022-09-1313-2040/+0
| | | | | | | | | | 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>
* xserver-xorg: Drop Remove-check-for-useSIGIO-option.patchKhem Raj2022-09-132-48/+0
| | | | | | | | This patch is already upstreamed [1] [1] https://gitlab.freedesktop.org/xorg/xserver/-/commit/36e353bcf428c4e6a31292ffa749ea6395cba4a3 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* weston: Fix build with clang-15Khem Raj2022-09-122-1/+37
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mesa-demos: Drop non-functional glx configurationTom Hochstein2022-09-061-1/+1
| | | | | | | | | The packageconfig glx is no longer used after a rework, and removing the packageconfig x11 now also removes glx support. [1] [1] https://github.com/openembedded/openembedded-core/commit/a904c9492e86be39fcdd244e8f4b9768861c0e77 Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* cairo: Ignore undef symbols on musl with imxgpuKhem Raj2022-09-031-0/+6
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* imx-gpu-viv: Enable packaging with muslKhem Raj2022-09-031-0/+3
| | | | | | | | gcompat provides a good wrapper to run glibc binaries on musl. However, the prebuilts cant escape glibc specific symbol versioning, therefore disable file-rdeps checks on musl. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* piglit: Remove portions which are now in main recipeKhem Raj2022-08-272-38/+0
| | | | | | | Some pieces have been moved to core in [1] [1] https://git.openembedded.org/openembedded-core/commit/?id=53c90930fca17cdaec2a5492320a286b6db6bdda Signed-off-by: Khem Raj <raj.khem@gmail.com>
* weston: Upgrade 9.0.0.imx -> 10.0.0.imxTom Hochstein2022-08-267-423/+50
| | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* libglu: Remove x11 requirement for i.MX GPUTom Hochstein2022-08-261-0/+1
| | | | | | i.MX GPU drivers don't require x11. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* mesa-demos: Update for latestTom Hochstein2022-08-262-92/+7
| | | | | | | | | | | | | | | | Drop OpenVG packageconfig and patch as OpenVG support is dropped from mesa-demos. For i.MX GPU: - x11 is not required - GLX is not supported - GLU is required - GLUT is not required for x11 Since x11 is not required but GLU is, restore the PACKAGECONFIG for glu, which was recently tied to x11. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* mesa-demos: Update formatting for readabilityTom Hochstein2022-08-261-13/+11
| | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* piglit: Add PACKAGECONFIG for glx and openclTom Hochstein2022-08-262-0/+42
| | | | | | | | | - Allow GLX tests to be disabled for systems that don't support it. - Allow OpenCL tests to be enabled. - Disable GLX tests for i.MX GPU, the drivers don't support GLX - Enable OpenCL tests for i.MX 8 Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-g2d-samples: Upgrade to latest 5.15.32-2.0.0Tom Hochstein2022-08-261-4/+6
| | | | | | Includes new dependency on cairo. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-dpu-g2d: Upgrade 2.0.0 -> 2.1.0Tom Hochstein2022-08-261-3/+3
| | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-gpu-g2d: Upgrade 6.4.3.p4.0 -> 6.4.3.p4.2Tom Hochstein2022-08-261-5/+5
| | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>