summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
Commit message (Collapse)AuthorAgeFilesLines
* libsdl2: upgrade to 2.0.14Yann Dirson2021-02-053-87/+1
| | | | | | | | | | | This version does not support tslib any more, as can be seen by the failed AUH run. Originally-by: Romain Roffé <romain.roffe@blade-group.com> (From OE-Core rev: 5b54e97594ab021a73d3225ed42dac0dfaf3fc15) Signed-off-by: Yann Dirson <yann@blade-group.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* util-macros: upgrade 1.19.2 -> 1.19.3Wang Mingyu2021-01-301-2/+2
| | | | | | | (From OE-Core rev: 00f136011312d9f42381fcbfa6a58e2675e1acce) Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wayland: upgrade 1.18.0 -> 1.19.0Denys Dmytriyenko2021-01-305-136/+24
| | | | | | | | | | | This release mostly contains bug fixes and minor protocol updates. Related patches were rebased and backported patches dropped. (From OE-Core rev: 353382f6c7f3904a11e0a73a1b17eff4963bdcb9) Signed-off-by: Denys Dmytriyenko <denis@denix.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* native: Stop clearing PACKAGESRichard Purdie2021-01-291-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Native recipes have been special and they don't have packages generated from them. The RDEPENDS/RPROVIDES and other runtime package specific variables can contain important data about dependencies recipes need though and currently it is required to write this information explicitly in the native case. We now delete the packaging tasks for native recipes which removes the need to clear PACKAGES. The next step to improve the metadata is to stop clearing it and ensure any entries in these variables are remapped appropriately. The R* variables were already being processed by the class extension code but the implementation was suboptimal. This patch stops clearing PACKAGES and PACKAGES_DYNAMIC and fixes the places where that caused issues in OE-Core, for example PACKAGES additions in anonymous python without the "-native" suffix and a case where the included classes caused a self reference in DEPENDS which would once have been removed by the previous code. The implementation uses datastore/parser parameters to ensure that the variable overrides are not overwritten when calling setVar which is appropriate for a function as close to the core as this one is. Some now unneeded code in python3-setuptools is dropped, there are further changes like this which can follow. This change was verified with OE-Core by comparing task-depends.dot generated by "bitbake world -g" before and after the change, the files were identical. (From OE-Core rev: fd6a007efa7cb45101a66f294af81d9d33bb3fab) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* shaderc: add spirv-headers as dependencieJose Quaresma2021-01-291-1/+1
| | | | | | | (From OE-Core rev: 32007e42f7174b9ab90ff2c5ae79933e2cb83137) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* spirv-tools: cleanupJose Quaresma2021-01-291-21/+10
| | | | | | | | | | | - spirv-headers is provived in a separete receipe, so add it as dependencie - add a new package spirv-tools-lesspipe that needs bash - remove unneeded external sources (From OE-Core rev: 97cab6b9691497841b2ae894e25f83d893c2ee30) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* spirv-headers: Add receipeJose Quaresma2021-01-291-0/+17
| | | | | | | (From OE-Core rev: 0f7aa28a254ab25e3c3f6322d750e765518fb8b5) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* shaderc: fix the build with glslang 11.1.0Jose Quaresma2021-01-293-54/+9
| | | | | | | | | | | | | | | Drop patches: * 0001-Fix-the-link-order-of-libglslang-and-libHLSL.patch is rejected upstream and is not need when glslang as shared libs. Update pacthes: * 0001-cmake-de-vendor-libs-and-disable-git-versioning.patch renamed and refreshed from 0003-cmake-de-vendor-libs-and-disable-git-versioning.patch. (From OE-Core rev: 496c69d56806a2521bfc51b4de9575637db2ac02) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* shaderc: avoid reproducible issuesJose Quaresma2021-01-291-5/+7
| | | | | | | (From OE-Core rev: 1fb9e706ba83df272ca924d8ea65460bb5675aa8) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glslang: disable precompiled headerJose Quaresma2021-01-291-0/+1
| | | | | | | | | | | - precompiled headers have reproducible issues [1] [1] https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20210125-3iawhiyz/packages/diff-html (From OE-Core rev: 94cea2b5f3091de0326c4d7322b45de2ce9fae3b) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glslang: enable shared libsJose Quaresma2021-01-291-0/+10
| | | | | | | (From OE-Core rev: 3355367f339c36161aced3e9fcbc38bca7915ada) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glslang: upgrade 8.13.3743 -> 11.1.0Jose Quaresma2021-01-291-5/+3
| | | | | | | | | | | | | | | License-Update: Add additional licenses - [1] BSD-2-Clause & MIT & Apache-2.0 - [2] GPL-3-with-bison-exception [1] https://github.com/KhronosGroup/glslang/commit/2962be40baff69848fd786c609289666b60741b8 [2] https://github.com/KhronosGroup/glslang/commit/14a2cfbc72f2bb2e060fdfe3fbe6a4d54e3817a8 (From OE-Core rev: 6ddba144e1aa9288645ec4b7271fc4138ef945ba) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* piglit: upgrade to latest revisionAnuj Mittal2021-01-202-26/+1
| | | | | | | (From OE-Core rev: 8d23a0d498d14cdac0eb353c362527dd2faf93cc) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* harfbuzz: upgrade 2.7.2 -> 2.7.4Anuj Mittal2021-01-204-156/+1
| | | | | | | | | | Remove backported patches and remove the introspection patch as that is no longer needed. (From OE-Core rev: 94bc7f8c2442f6627b001f1dd40c0023260b22e8) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* vulkan-tools: upgrade 1.2.162.0 -> 1.2.162.1Anuj Mittal2021-01-201-1/+1
| | | | | | | (From OE-Core rev: c35f89f1f09a4c3aa0bcf91b63027c2d8bcd15fd) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libepoxy: upgrade 1.5.4 -> 1.5.5Anuj Mittal2021-01-202-6/+6
| | | | | | | (From OE-Core rev: ef24da0af6fe2eab618e01a70093efba26a12557) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* vulkan-samples: Disable PCH for reproducibilityRichard Purdie2021-01-161-1/+5
| | | | | | | | | | | | We're still seeing reproducibility issues on the autobuilder with this recipe. I was able to make the output "match" by rebuilding the PCH and then rebuilding the binary objects, proving the PCH isn't deterministic. Disable PCH until we can get to the bottom of why that may be. (From OE-Core rev: 95686432ecb7e411155563643d59a3d5f683937c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa,mesa-gl: upgrade to 20.3.2Dmitry Baryshkov2021-01-153-1/+1
| | | | | | | | | Upgrade mesa and mesa-gl recipes to version 20.3.2. (From OE-Core rev: 5ab325c18640dd6d17ac4592f3ba3e484a5bdb37) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* vulkan-samples: Fix reproducibility issueRichard Purdie2021-01-152-0/+39
| | | | | | | | | | | | | | There is code to remove the prefix CMAKE_SOURCE_DIR from __FILENAME__ paths used for logging with LOGE() in the code. We need to make this match the value we use in the debug source remapping from CFLAGS. If we don't, the code is firstly removing the incorrect prefix and possibly moving outside the string, secondly, it causes a reproducibility issue depending on the length of path the build happens in. Add a small patch and configuration to avoid the issue. (From OE-Core rev: 410dbfd1f82b4862ced6fca88789edf0fd9d65df) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* cantarell-fonts: upgrade 0.201 -> 0.301zhengruoqin2021-01-081-1/+1
| | | | | | | (From OE-Core rev: 9a2a23d4ae4ea9eedac62c0205429cab43562fc3) Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* vulkan-samples: update to latest revisionAlexander Kanavin2020-12-311-1/+1
| | | | | | | (From OE-Core rev: e1ffe54edb93c9e7130b0771c9f0bf409dc637cc) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* vulkan-tools: upgrade 1.2.154.0 -> 1.2.162.0Alexander Kanavin2020-12-301-2/+2
| | | | | | | (From OE-Core rev: 7c02312db002a2bd9bf3a028ba0174a56fc09194) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* vulkan-loader: upgrade 1.2.154.1 -> 1.2.162.0Alexander Kanavin2020-12-302-2/+44
| | | | | | | (From OE-Core rev: daaaf5c7163cd30363b21e21d7f6a32ada967dfc) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libva-utils: update 2.9.1 -> 2.10.0Alexander Kanavin2020-12-301-2/+2
| | | | | | | (From OE-Core rev: 878da93e137dd3dbe82b00a965dd0b623c4df1d7) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* piglit: update to latest revisionAlexander Kanavin2020-12-302-1/+26
| | | | | | | (From OE-Core rev: 6fbec0f12a4083341ae2bd3de05f66196bbf5327) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* xserver-xorg: upgrade 1.20.9 -> 1.20.10Alexander Kanavin2020-12-301-1/+1
| | | | | | | (From OE-Core rev: 3b03545ea141a9b6c38742aea6e8464e1a1b2a26) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* xprop: upgrade 1.2.4 -> 1.2.5Alexander Kanavin2020-12-301-2/+1
| | | | | | | (From OE-Core rev: f6bf58c41eed5361ba22b176225a7894c2539e1b) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* vulkan-headers: upgrade 1.2.154.0 -> 1.2.162.0Alexander Kanavin2020-12-301-1/+1
| | | | | | | (From OE-Core rev: 3f96db0b6a053a920be40532a17aebb4f34bebc8) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libx11: upgrade 1.6.12 -> 1.7.0Alexander Kanavin2020-12-303-60/+4
| | | | | | | (From OE-Core rev: 8b46fa5fdf9d5fb159e552a06fc4622cc99b30c2) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libva: upgrade 2.9.0 -> 2.10.0Alexander Kanavin2020-12-303-1/+1
| | | | | | | (From OE-Core rev: e4e3423891755a2601c127e138a713a79f1be61e) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: update 20.2.4 -> 20.3.1Trevor Woerner2020-12-245-93/+2
| | | | | | | | | | | | | | | | | | | Two of the patches have been applied upstream: 0001-meson-Add-xcb-fixes-to-loader-when-using-x11-and-dri.patch 0005-vc4-use-intmax_t-for-formatted-output-of-timespec-me.patch The 'surfaceless' platform is now enabled by default, therefore it is no longer a valid choice. The meson build system is intelligent enough now to decide if 'drm' needs to be enabled based on whether or not gbm is available. Therefore 'drm' also is no longer a valid platform choice: ERROR: Options "drm, surfaceless" are not in allowed choices: "auto, x11, wayland, haiku, android, windows" RP: Add missing mesa-gl upgrade (From OE-Core rev: de68fe9268092c0600a81bedfc805eaed9dcb87b) Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* spirv-tools: upgrade 2020.5 -> 2020.6Jose Quaresma2020-12-211-2/+2
| | | | | | | (From OE-Core rev: cd6a05e6683db7a239a9559b079a00628589263d) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* shaderc: upgrade 2020.3 -> 2020.4Jose Quaresma2020-12-212-13/+8
| | | | | | | (From OE-Core rev: 905a5f9ccb314def651aa22c6c87bc313946fc99) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa.inc: switch true/enabled false/disabledTrevor Woerner2020-12-201-11/+11
| | | | | | | | | | | | | | | | | | | | | A number of options have been switched from true/false to enabled/disabled and the older usage is deprecated, as is seen in the configuration logs: ../mesa-20.3.1/meson.build:92: WARNING: gles1 option "true" deprecated, please use "enabled" instead. ../mesa-20.3.1/meson.build:100: WARNING: gles2 option "true" deprecated, please use "enabled" instead. ../mesa-20.3.1/meson.build:119: WARNING: shared-glapi option "true" deprecated, please use "enabled" instead. ../mesa-20.3.1/meson.build:381: WARNING: gbm option "true" deprecated, please use "enabled" instead. ../mesa-20.3.1/meson.build:412: WARNING: egl option "true" deprecated, please use "enabled" instead. ../mesa-20.3.1/meson.build:493: WARNING: dri3 option "false" deprecated, please use "disabled" instead. ../mesa-20.3.1/meson.build:516: WARNING: gallium-vdpau option "false" deprecated, please use "disabled" instead. ../mesa-20.3.1/meson.build:570: WARNING: gallium-xvmc option "false" deprecated, please use "disabled" instead. ../mesa-20.3.1/meson.build:691: WARNING: gallium-va option "false" deprecated, please use "disabled" instead. ../mesa-20.3.1/meson.build:727: WARNING: gallium-xa option "false" deprecated, please use "disabled" instead. (From OE-Core rev: acf78fd3d03e4fe07ee4ad677f178d17dc10ac7b) Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: remove patch disabling asmAnuj Mittal2020-12-152-151/+0
| | | | | | | | | | | | | | | | | | | This was originally added for musl only [1]. Upstream has removed this option but we reverted that change during an upgrade to fix certain musl specific compile time issues [2]. I compile tested without this patch on musl-x86 and musl-x86-64 and don't see the warnings anymore. Similar textrel issues were fixed upstream so perhaps those helped [3]. [1] https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit?id=68bf128e901e89d5b49a28b15d5083b2bf6b536f [2] https://www.openembedded.org/pipermail/openembedded-core/2019-November/289222.html [3] https://gitlab.freedesktop.org/mesa/mesa/-/commit/45206d7673adb1484cbdb3eadaf82e0849c9cdcf?merge_request_iid=1974 (From OE-Core rev: a7bd1c3ca4d2f8a5e230b19517af1c52aec35f3e) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: add more details to elf-tls patchAnuj Mittal2020-12-151-0/+15
| | | | | | | | | | | | Include link to upstream report and the last autobuilder failure [1] so it's easy to identify why this is needed in future. [1] https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/1160/steps/8/logs/step1c (From OE-Core rev: 28647f8e4fb5fe2e56f0609900187bc658ba9ccf) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libinput: upgrade 1.16.3 -> 1.16.4zangrc2020-12-091-1/+1
| | | | | | | (From OE-Core rev: 4d3ebeef202d9c0544749b64d47e269d939a5124) Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* mesa: Update 20.2.1 -> 20.2.4Fabio Berton2020-12-093-1/+1
| | | | | | | | | | This commit adds the changes of 20.2.2, 20.2.3 and 20.2.4 bug fix releases. (From OE-Core rev: 9c39a1360d81264e867242f238f6d14fdb395e96) Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* piglit: fix reproducibilityAlexander Kanavin2020-12-096-0/+169
| | | | | | | (From OE-Core rev: fc4c82773d50756394108d2af474041b5113dbcc) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* cantarell-fonts: update 0.0.25 -> 0.201Alexander Kanavin2020-12-092-25/+18
| | | | | | | | | | | | | | | Incorrectly set git regex meant we were stuck with a 4 year old version. Use tarballs as they contain prebuilt font files; building them from source requires a bunch of obscure dependencies. Contains portions of libglyph which are Apache 2.x licensed. (From OE-Core rev: 4dcde0147ec4d63ab4459dc1e995cea155130e36) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* xkbcomp: upgrade 1.4.3 -> 1.4.4Alexander Kanavin2020-12-091-2/+1
| | | | | | | (From OE-Core rev: c740bc0eefd250d7ef6386dd8ae6cc593b982792) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* piglit: upgrade to latest revisionAlexander Kanavin2020-12-091-1/+1
| | | | | | | (From OE-Core rev: 5aec8cff9430142b39f1d3fc2c67a178b1feb53f) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* pango: upgrade 1.46.2 -> 1.48.0Alexander Kanavin2020-12-092-2/+36
| | | | | | | | | Add a patch to fix failing ptest. (From OE-Core rev: 1c33aa37c59f028afe3dc0250af39fd0fbc3bc65) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* vulkan-samples: update to latest revisionAlexander Kanavin2020-12-091-1/+1
| | | | | | | (From OE-Core rev: 69e3758a820a2283ec19f4fcf217a0065ef2ad96) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libxkbcommon: upgrade 1.0.1 -> 1.0.3zangrc2020-11-291-1/+1
| | | | | | | (From OE-Core rev: 9117c0d6b4995ee22feb3162dd1f3a3ea7839fe6) Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libjpeg-turbo: upgrade 2.0.5 -> 2.0.6zangrc2020-11-292-8/+8
| | | | | | | | | | | | -License-Update: Copyright year updated to 2020. Refresh the following patch: 0001-libjpeg-turbo-fix-package_qa-error.patch (From OE-Core rev: 490fe53f625417494dd63a4fe4dcaa98a3c54eb9) Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libsdl2: Add directfb to PACKAGECONFIG rdependsMark Jonas2020-11-291-1/+1
| | | | | | | | | | | | | | PACKAGECONFIG[directfb] already adds directfb to the build dependencies. But the automatically generated runtime dependencies do not add the directfb package to the runtime dependencies. Most likely this happens because libsdl2 does not link against directfb but uses dlopen() or similar. Thus, the runtime dependency to directfb needs to be declared explicitly. (From OE-Core rev: 62d3cbe7c8261c1c875ff6da11572409262aaf02) Signed-off-by: Mark Jonas <toertel@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* vulkan-samples: fix do_compile failureChangqing Li2020-11-242-0/+119
| | | | | | | | | | | | | | fix error: | framework/lib/ppc/libframework.a(device.cpp.o): in function `std::__atomic_base<unsigned long long>::load(std::memory_order) const': | /usr/include/c++/10.2.0/bits/atomic_base.h:426: undefined reference to `__atomic_load_8' some arch don't have built-in atomic, so need to link it explicitly (From OE-Core rev: 65410c5ff4f9c34758d1e2270132c631166e7d1a) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* weston-init: Stop running weston as rootJoshua Watt2020-11-245-28/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | Running the weston compositor as the root user is an insecure default behavior for OE-core. We can do much better, at least when using systemd. Change the recipe to create a dedicated "weston" user and start weston as this user. The systemd service and socket units are no longer template units, as there were several inconsistencies in the templates. Instead, there is now a global /run/wayland-0 socket that gets created, and systemd will start weston on demand when a client connects to that socket or when attempting to reach graphical.target, whichever comes first. This also allows downstream users to easily change the behavior so that weston *only* starts on demand by adding a drop file. Access to the global socket is controlled by a "wayland" group; any user that is a member of the group can use the socket to talk to the compositor. This also satisfies another use case where another systemd service might start a graphical application that needs to display with weston (e.g. a single function device in kiosk mode). Finally, the udev rules for starting weston with the existance of a DRM device have been removed. Being WantedBy= a graphical target should eliminate the need for this behavior, and having it present makes it difficult for downstream users to start weston on demand (having to override the udev rules). (From OE-Core rev: dd83fb40f76749c6689807afabc63b9d5c2a4065) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* weston-init: Fix incorrect idle-time settingAlistair2020-11-171-1/+1
| | | | | | | (From OE-Core rev: 84b3a6b7bd73ebad90865ee4351578c2109358fb) Signed-off-by: Alistair Francis <alistair@alistair23.me> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>