summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/wayland
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* weston: Fix non-GBM build error for i.MX 6 & 7Tom Hochstein2020-04-291-1/+1
| | | | | | | | | | | | i.MX 6 and 7 doesn't support GBM, required by weston-simple-dmabuf-egl: | 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. Remove the clients for i.MX 6 and 7. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* weston: Restructure recipe for ease of maintananceTom Hochstein2020-04-291-31/+60
| | | | | | | | Structure the recipe into two sections, the top as a verbatim copy of the upstream recipe that is the basis, and the bottom for the i.MX customization. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* weston: Align 8.0.0.imx recipe with 8.0.0Tom Hochstein2020-04-291-3/+5
| | | | | | | Update license file data and move i.MX customizations to unique lines for simpler diff. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* weston: upgrade recipe to version 8.0.0 from NXPAndrey Zhizhikin2020-04-164-202/+112
| | | | | | | | | | | | | Upgrade weston recipe version 6.0.1 -> 8.0.0 with following modifications performed: - Transition build system to meson, replace autotools references with meson options; - Align recipe with the latest version from oe-core, include all configuration changes done upstream into this recipe; - Drop patches applied upstream and those related to autotools; Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
* wayland-protocols: upgrade to 1.18 from NXPAndrey Zhizhikin2020-04-161-2/+2
| | | | Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
* weston-init.bbappend: Fix missing space in variable assignmentTom Hochstein2020-03-031-1/+1
| | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* wayland-protocols: Switch to i.MX fork for sourceTom Hochstein2020-02-124-389/+3
| | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* weston-init: use g2d for i.MX8M Nano SoCAndrey Zhizhikin2020-01-081-0/+3
| | | | | | Use 2D acceleration for i.MX8M Nano SoC. Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
* weston: refresh patch files to resolve hunksAndrey Zhizhikin2019-12-223-27/+28
| | | | | | | Refresh patches in this layer so they could be cleanly applied, this has been done via devtool. Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
* weston: Upgrade to 6.0.1.imxMihai Lindner2019-12-161-2/+3
| | | | Signed-off-by: Mihai Lindner <mihai.lindner@nxp.com>
* recipes: Use features_check instead of distro_features_checkKhem Raj2019-11-231-1/+1
| | | | | | distro_features_check is now deprecated Signed-off-by: Khem Raj <raj.khem@gmail.com>
* weston-init: Keep the logic to edit weston.ini to meta-freescaleKhem Raj2019-11-191-1/+1
| | | | | | | | | | | | | | This logic does not work across multiple layers even OE-Core machines dont build with it. For now its best to keep this confined to meta-freescale machines Idea is good but it needs to align with OE-core's methods where currently in OE-Core we expect machines to override weston.ini completely per machine, this logic sort of goes against it. However it has some goodness to it, eg. adding options based on DISTRO_FEATURES which OE-Core could have too but maybe implemented differently. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* weston: Move xwayland config to weston.iniTom Hochstein2019-11-185-18/+9
| | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* weston: Replace copies of weston.ini with logicTom Hochstein2019-11-184-75/+25
| | | | | | | Install a common base weston.ini and then customize it in the recipe by specifying custom options. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>