summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/wayland
Commit message (Collapse)AuthorAgeFilesLines
* wayland-protocols: Add i.MX 9 series compatibility for NXP BSPTom Hochstein2023-02-171-1/+1
| | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* wayland-protocols: Simplify compatibility logicTom Hochstein2023-02-171-1/+1
| | | | | | | | | 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>
* layer: Use github for i.MX sourceTom Hochstein2023-02-081-1/+1
| | | | | | The NXP repos are moving to github. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* weston-init: Correct override of INI_UNCOMMENT_ASSIGNMENTSJun Zhu2022-12-201-4/+5
| | | | | | | 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>
* weston-init: Drop redundant xwayland=true settingTom Hochstein2022-12-152-4/+0
| | | | | | | The main recipe now sets xwayland=true in weston.ini, so drop it from here. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* weston imx: update from 10.0.0.imx to 10.0.1.imxMax Krummenacher2022-11-181-3/+3
| | | | | | Update to the version used in lf5.15.52_2.1.0. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
* 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>
* 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>
* 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>
* 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>
* weston: Fix build with clang-15Khem Raj2022-09-122-1/+37
| | | | 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>
* weston: 9.0.0.imx: fix build with latest masterMax Krummenacher2022-07-122-1/+43
| | | | Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
* weston: Upgrade to NXP 5.15.5-1.0.0Tom Hochstein2022-05-111-1/+1
| | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* weston: Add vsync to cloned displays.Piotr Wojtaszczyk2022-04-042-0/+103
| | | | | | | When using g2d clone mode allocates additional surfaces according to FB_MULTI_BUFFER for each cloned display. The g2d blit from the main screen to the cloned displays is done using inactive surface. The FBIOPAN_DISPLAY ioctl to the surface is done afterwards.
* mx8dx: Normalize MACHINEOVERRIDES implementationTom Hochstein2022-03-311-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | The imx8dx-mek machine is similar to imx8qxp-mek and so the mx8qxp override was included in the MACHINEOVERRIDES hierarchy. This is non-standard, and the rework of the SOC overrides didn't handle it properly, leading to a build break: ``` Log data follows: | DEBUG: Executing shell function do_compile | NOTE: 8QX boot binary build | cp: failed to access '/home/aquino/src/ossystems/oel-platform/build/tmp/work/imx8dx_mek-oel-linux/imx-boot/1.0-r0/git/iMX8DX/scfw_tcm.bin': Not a directory | WARNING: /home/aquino/src/ossystems/oel-platform/build/tmp/work/imx8dx_mek-oel-linux/imx-boot/1.0-r0/temp/run.do_compile.1809636:179 exit 1 from 'cp /home/aquino/src/ossystems/oel-platform/build/tmp/deploy/images/imx8dx-mek/imx-boot$ tools/scfw_tcm.bin /home/aquino/src/ossystems/oel-platform/build/tmp/work/imx8dx_mek-oel-linux/imx-boot/1.0-r0/git/iMX8DX/scfw_tcm.bin' | WARNING: Backtrace (BB generated script): | #1: compile_mx8x, /home/aquino/src/ossystems/oel-platform/build/tmp/work/imx8dx_mek-oel-linux/imx-boot/1.0-r0/temp/run.do_compile.1809636, line 179 | #2: do_compile, /home/aquino/src/ossystems/oel-platform/build/tmp/work/imx8dx_mek-oel-linux/imx-boot/1.0-r0/temp/run.do_compile.1809636, line 151 | #3: main, /home/aquino/src/ossystems/oel-platform/build/tmp/work/imx8dx_mek-oel-linux/imx-boot/1.0-r0/temp/run.do_compile.1809636, line 189 ERROR: Task (/home/aquino/src/ossystems/oel-platform/sources/meta-freescale/recipes-bsp/imx-mkimage/imx-boot_1.0.bb:do_compile) failed with exit code '1' ``` Fix the problem by removing mx8qxp from the mx8dx hierarchy and adapting existing mx8qxp overrides appropriately. Fixes: #1027 Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* wayland-protocols: Upgrade 1.22.imx -> 1.25.imxTom Hochstein2022-03-251-3/+9
| | | | | | | | This is a pre-release version from upcoming NXP Q2 release added to kirkstone to fix mesa compatibility problems. The commit does also update the recipe to align with the one in OE-core. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* Revert "weston-init: fix some invalid overrides"Tom Hochstein2022-03-151-2/+2
| | | | | | There is a root cause to this that will be fixed instead. This reverts commit 6be9870b5057cf122cecb2716583169b39de78ae.
* weston-init: fix some invalid overridesMing Liu2022-03-131-2/+2
| | | | | | | | | | The mx8qm-nxp-bsp/mx8qxp-nxp-bsp overrides would not work because imxgpu2d would take effect in the end since it has higher priority in MACHINEOVERRIDES. Append mx8qm-nxp-bsp/mx8qxp-nxp-bsp after imxgpu2d can fix the problem. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* Generalize overrides subsystem for NXP and Mainline supportOtavio Salvador2022-02-213-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Essentially, we extend the overrides to a generic-bsp, nxp-bsp, and mainline-bsp. So, for example, the mx8mq override is split into: - imx-generic-bsp: compatible with every i.MX SoC and both BSP variants - imx-nxp-bsp: compatible with every i.MX SoC but specific to NXP BSP - imx-mainline-bsp: compatible with every i.MX SoC but specific to Mainline BSP - mx8-generic-bsp: compatible with every i.MX8 SoC and both BSP variants - mx8-nxp-bsp: compatible with every i.MX8 SoC but specific to NXP BSP - mx8-mainline-bsp: compatible with every i.MX8 SoC but specific to Mainline BSP - mx8m-generic-bsp: compatible with every i.MX8M SoC and both BSP variants - mx8m-nxp-bsp: compatible with every i.MX8M SoC but specific to NXP BSP - mx8m-mainline-bsp: compatible with every i.MX8M SoC but specific to Mainline BSP - mx8mq-generic-bsp: compatible with every i.MX8MQ SoC and both BSP variants - mx8mq-nxp-bsp: compatible with every i.MX8MQ SoC8 but specific to NXP BSP - mx8mq-mainline-bsp: compatible with every i.MX8MQ SoC but specific to Mainline BSP The extender mechanism is responsible for extending the override list to include the generic overrides. We can then use the three different variants to handle the metadata correctly. Generically speaking, the conversion mainly was automated (with a lot of back and forth until getting it right). To convert an existing layer, the following script can be used: ```sh git ls-files classes recipes-* \ | xargs sed -i \ -e 's,:\(mx[6-8]\w*\),:\1-nxp-bsp,g' \ -e 's,(\(mx[6-8]\w*\)),(\1-nxp-bsp),g' \ -e 's,\(mx[6-8]\w*\)|,\1-nxp-bsp|,g' \ -e 's,|\(mx[6-8]\w*\)),|\1-nxp-bsp),g' \ \ -e 's,:\(mx[5s]\w*\),:\1-generic-bsp,g' \ -e 's,(\(mx[5s]\w*\)),(\1-generic-bsp),g' \ -e 's,\(mx[5s]\w*\)|,\1-generic-bsp|,g' \ -e 's,|\(mx[5s]\w*\)),|\1-generic-bsp),g' \ \ -e 's,:\(vf\w*\),:\1-generic-bsp,g' \ -e 's,:\(vf[56]0\w*\),:\1-generic-bsp,g' \ -e 's,\(vf\w*\)|,\1-generic-bsp|,g' \ -e 's,|\(vf\w*\)),|\1-generic-bsp),g' \ -e 's,\(vf[56]0\w*\)|,\1-generic-bsp|,g' \ -e 's,|\(vf[56]0\w*\)),|\1-generic-bsp),g' \ \ -e 's,:\(imx\) ,:\1-nxp-bsp ,g' \ -e 's,(\(imx\)),(\1-nxp-bsp),g' \ -e 's,\(imx\)|,\1-nxp-bsp|,g' \ -e 's,|\(imx\)),|\1-nxp-bsp),g' for d in $(find -type d | egrep '/mx[6-8]w*'); do git mv $d $d-nxp-bsp done for d in $(find -type d | egrep '/imx$'); do git mv $d $d-nxp-bsp done for d in $(find -type d | egrep '/mx[5s]w*'); do git mv $d $d-generic-bsp done ``` Fixes: #791. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* weston-init: Set bindir properly in weston.iniTom Hochstein2022-02-111-0/+1
| | | | | | | The customized weston.ini is installed in the rootfs with an unresolved bindir variable. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* weston-init: Enable screen sharingTom Hochstein2022-01-291-1/+2
| | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* weston: Adjust base patch for forkTom Hochstein2022-01-291-8/+10
| | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* weston: Upgrade to L5.10.72-2.2.0 releaseTom Hochstein2022-01-291-1/+1
| | | | | | | | | | | | | | | Fixes: ``` 26da63a4 screen-share: weston screen-share poor performance with g2d-renderer f8ce046f g2d-renderer: weston screenshare fail to work on rdp-backend with g2d-renderer 74ae3012 drm-backend: rename NV12_10LE40 to NV15 78e17706 backend-fbdev: MIPI display recovery slowly after suspend resume e73c641e LF-4317 launcher-logind: weston sometimes failed to start when booting up from eMMC d5ad97f2 g2d-renderer: use dmabuf.attributes.stride for video stride 23166110 LF-3992 state-propose: fix chromium cannot show on 8mq platform ``` Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* weston: Update base portion of recipeTom Hochstein2022-01-296-6/+104
| | | | | | | Update the base portion of the i.MX fork recipe to the latest OE-core recipe c8aa0222ce2be647911114aaebcbb0d55d7caf87. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* weston: Rework SRC_URITom Hochstein2022-01-291-5/+3
| | | | | | | Rework the i.MX SRC_URI override so it's clear what is changed and what is inherited. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* wayland-protocols: Upgrade to 1.22.imxTom Hochstein2022-01-291-2/+2
| | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* layer: More override fixesTom Hochstein2021-08-121-1/+1
| | | | | | | | | | Adds fixes for _imx, _imxdpu, _imxdrm, _imxgpu, _imxgpu3d, virtual PREFERRED_PROVIDER versions Fix other places for imx/imxdpu/imxdrm overrides Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* layer: Convert to new override syntaxKhem Raj2021-08-123-38/+38
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* weston-init: uncomment use-g2d=1 based on imxgpu2d MACHINEOVERRIDEChris Dimich2021-05-191-15/+10
| | | | | | | | | | | | | | | affects the following SoCs: -mx6q -mx6dl -mx6sx -mx6sl -mx7ulp -mx8qm -mx8mm -mx8mp -mx8qxp Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
* weston: Fix xwayland dependencyCarlos Rafael Giani2021-04-291-1/+1
| | | | | | | xserver-xorg-wayland was replaced in OE-core with a standalone xwayland recipe, so the xwayland dependency has to be adapted. Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
* weston: Update to 230e9bcTom Hochstein2021-04-261-1/+1
| | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* weston-init: Do not exit with error if uncomment function failFabio Berton2021-04-141-1/+1
| | | | | | | Show a warning instead of raising an error when uncomment function can't found the text. This allows using a custom weston.ini file in bbappend. Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
* weston-init: Rework uncomment function logicVinicius Aquino2021-04-131-1/+1
| | | | | | | Fix error "Commented setting '#use-g2d=1' not found" when building for some imx machines. Signed-off-by: Vinicius Aquino <voa.aquino@gmail.com>
* weston-init: Update weston.iniTom Hochstein2021-02-112-2/+10
| | | | | | | | | - Add repaint-window for all i.MX 8 to support 4K display - Add enable-overlay-view option as comment - Enable touchscreen_calibrator - Update transform values which were re-worked for weston 9.0 Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* weston: update to 9.0.0.imxMax Krummenacher2021-02-013-23/+70
| | | | | | | | | NXP release imx_5.4.70_2.3.0. 0001-weston-launch-Provide-a-default-version-that-doesn-t.patch update taken from NXP BSP. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
* wayland-protocols: update to 1.20.imxMax Krummenacher2021-02-011-2/+2
| | | | | | NXP release imx_5.4.70_2.3.0. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
* weston-init: enable g2d for mx6dl/mxq machinesPierluigi Passaro2021-01-311-0/+6
| | | | | | | Both the machines do support g2d and this fix graphical artifacts when using a mouse Signed-off-by: Pierluigi Passaro <pierluigi.p@variscite.com>
* weston-imx: Bump revision f13d40a3Fabio Berton2020-12-111-1/+1
| | | | | | | | | | | | This commit includes the following changes: - f13d40a3 compositor-drm: Add environmen variables configuration in weston.ini - 1e1f6fb5 compositor-drm: display will be blank when weston restart with rotate - 27cde525 gl-renderer: Video playback always flashes and jitteres on the top-right corner - e08a9c3d g2d-renderer: UI is abnormal using G2D compositor - 81a7538f gl-renderer: mm06 has performance dropped Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
* weston: add libxcursor to depends for xwaylandMax Krummenacher2020-09-301-2/+2
| | | | | | | | | | Otherwise configure will fail. | ../git/xwayland/meson.build:27:2: ERROR: Problem encountered: xwayland requires xcursor which was not found. Or, you can use '-Dxwayland=false'. This reverts additionally commit 86cde62d1 which addressed the same issue. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
* weston-imx: remove also xwayland from package configAndrey Zhizhikin2020-09-291-1/+1
| | | | | | | | | | | Commit [5a5c5dd23ea0173ef16073c3c651aec89b5a67c1] removes x11 and wayland from PACKAGECONFIG, but when wayland with X11 distro is used - this leaves the xwayland package config option enabled. Without x11 and wayland in PACKAGECONFIG, xwayland cannot be enabled so remove this config option as well. Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
* weston-init: add weston.ini section to support imx8mpAndrey Zhizhikin2020-09-291-0/+3
| | | | | | Allow usage of 2D blit accelerator present in imx8mp soc Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
* weston-imx: Remove wayland and x11 from PACKAGECONFIGFabio Berton2020-09-221-0/+1
| | | | | | | | Weston i.MX uses framebuffer to render images and doesn't work if wayland PACKAGECONFIG is enabled. Without this weston can't find the wayland display. Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
* weston.ini: Move to imx subdirKhem Raj2020-09-141-0/+0
| | | | | | This ensures that it does not lurk for non meta-freescale BSPs Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Revert "weston-init: use g2d for i.MX8M Nano SoC"Tom Hochstein2020-07-231-3/+0
| | | | | | 8M Nano does not have 2D acceleration. This reverts commit b3f51ab82838a67146d5b6fcf8f19d36c5efeb37.
* weston: Restore partial clients for i.MX 6 and 7Tom Hochstein2020-05-051-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The clients configuration for fbdev was recently removed from meta-freescale [1] because of the following error: ``` | Run-time dependency gbm found: NO (tried pkgconfig and cmake) | | clients/meson.build:134:4: ERROR: Problem encountered: weston-simple-dmabuf-egl requires gbm which was not found. If you rather not build this, drop "dmabuf-egl" from simple-clients option. ``` [1] eda44e49618610c13ebe4c026cd4981b404a1543 It was also removed for non-Wayland from OE-core [2] because of the following error in the same client dmabuf-egl: ``` clients/meson.build:141:4: ERROR: Problem encountered: weston-simple-dmabuf-egl requires option renderer-gl which is not enabled. If you rather not build this, drop "dmabuf-egl" from simple-clients option. ``` [2] 9b1d30810eeecb46b977c8eed68be69aef891312 Restore the working subset of clients. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* weston: Cleanup FILES for no longer used folderTom Hochstein2020-04-291-2/+0
| | | | | | | ${sysconfdir}/xdg/weston was used to install weston.ini, but that functionality has moved to weston-init. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* weston: Fix build error for opengl typoTom Hochstein2020-04-291-1/+1
| | | | | | | | There was an extra hyphen on the command line: meson: error: unrecognized arguments: --Dopengl=false Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>