summaryrefslogtreecommitdiffstats
path: root/meta-agl-core
AgeCommit message (Collapse)AuthorFilesLines
2023-06-16meta-agl-core: fix polkit dependenciesScott Murray13-19/+22
As part of the systemd user session removal, some changes were made to attempt to fix pulling in polkit for core-image-weston, agl-image-weston, and agl-image-compositor so that the compositors would correctly start up in the resulting images. Unfortunately, just gating the dependency on polkit being in DISTRO_FEATURES breaks the usecase of using poky and meta-agl-core with our poky-agl distro configuration without also pulling in the meta-oe layer. This combination is used for testing meta-agl-core on the Yocto Project autobuilder, so that broke and was reported by upstream. To fix this usecase, the polkit dependency logic has been shifted to weston-init and agl-compositor-init via bbappends that are only used when meta-oe is present via our existing BBFILES_DYNAMIC set up. Since the dependency on polkit stems from a combination of the compositor PAM configuration from the -init packages and having systemd, pam, and polkit in DISTRO_FEATURES, this seems more correct, anyways. Other changes: - The explicit pam DISTRO_FEATURES checking that was added in the previous cleanup has been removed; it is actually redundant due to weston and weston-init having checks. Using the .inc file for that from upstream has been added to the agl-compositor and agl-compositor-init recipes to match the weston recipes and make the dependency visible in our tree. - There is no further need for our bbappend to core-image-weston, so it has been removed. Bug-AGL: SPEC-4836 Change-Id: Ia3052023dfb06d1c2190a03c72606ab4b27bbdd2 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/29014 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-06-12Prepare Prickly Pike Milestone 1Jan-Simon Moeller1-3/+3
Update the distro manifest. Bug-AGL: SPEC-4824 Change-Id: Iac55421a7a45ead25f021a8cece1813bf88e6015 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28986 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account
2023-06-12Remove systemd user session and clean up packagegroups and imagesScott Murray32-187/+273
Remove the use of a systemd user session to align with how upstream runs Weston, and to allow using all systemd sandboxing features with the compositor and homescreen, launcher, etc. applications. The changes for this touched enough packagegroups and images that further rework was done to address some of the cleanup described in SPEC-4813, see below for details. Changes: - Remove agl-session and update various recipes that were manually adding dependencies to the user session it created. The compositor (be it weston or agl-compositor) and Wayland clients now run in the system session as non-root users. - Revive agl-users recipe, this time living in meta-agl-core, with the purpose of creating the agl-driver user. For simplicity, agl-compositor is always run as the agl-driver user, as opposed to trying to wrangle running it as different users depending on build configuration. This can potentially be made more configurable if a downstream user has a usecase to be able to specify another user. - Fully split agl-compositor's systemd unit with a tweaked fork of the weston-init recipe and unit which lives in meta-agl-core. This will be easier to maintain than the attempt to reuse weston-init for builds without meta-app-framework that was done previously. - Create packagegroup-agl-graphical-compositor, distinct from the weston packagegroup. This should make it more straightforward for downstreams that want agl-compositor or weston. - Rename agl-image-agl-compositor to agl-image-compositor to remove redundancy. - Tweak the logic for the inclusion of a few debug packages (e.g. agl-shell-activator) to ensure they only show up in images when agl-devel is enabled. - Split weston-terminal and the required icon resources into separate packages in our weston bbappend to avoid pulling in weston just to get the terminal for testing. - Add a agl-core-image.bbclass to use as a base for images. - Move our cross-SDK configuration to a agl-crosssdk.bbclass to ease reuse. - Remove various empty packagegroups. - Unify image .inc files with their .bb files as a simplification, and to move towards more how upstream Yocto Project does things. - Split pipewire tools into their own -devel packagegroup. - Remove rcar3 additions to packagegroup-agl-graphical-multimedia, as that packagegroup is not machine-specific. They will be added back in via a change in meta-agl-demo. If a downstream user desires a platform-specific packagegroup for such packages in meta-agl-core, this can be revisited, though a different implementation should be used. - Replace some :append usage with += to avoid creating problems for downstream users. Bug-AGL: SPEC-4714, SPEC-4813 Change-Id: I55b29bf749f0d5d50993a362c665bce62b785f67 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28996 Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-06-05Use new weston-ini-conf scheme and remove old per-machine filesJan-Simon Moeller5-0/+30
The previous commit used an old file. Use the new generated version. Bug-AGL: SPEC-4822 Change-Id: Ic1b7018ce2840332c0e051101ce854b90f96ecae Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28985 Tested-by: Jenkins Job builder account
2023-06-05wayland/agl-compositor_git.bb: Bump SRCREVMarius Vlad1-1/+1
This SRCREV bump update formally removes SMACK and Waltham and modifies the client screenshooter client to generate a PNG screenshot for each output -- rather than creating an image for all outputs. In more detail to following changes have been added since the previous SRCREV bump: - 69bd3ddac4b23 policy-deny: Remove SMACK support - 0ed8064b0de23 compositor: Remove Waltham support - e0a1dcc548087 clients/screenshooter: Add the output name to screenshot name Change-Id: Ic951fdeddc3abff8b1f80be45896f1fdfb67bced Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28980 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-05-30Ensure all layers do pass yocto-check-layer and run-yocto-check-layer.sh scriptsJan-Simon Moeller2-56/+8
Ensure the layers do pass again and that the scripts are up-to-date. Bug-AGL: SPEC-4680 Bug-AGL: SPEC-4681 Bug-AGL: SPEC-4682 Bug-AGL: SPEC-4683 Bug-AGL: SPEC-4684 Change-Id: I5ab1bc49dc361a7fc30a62c5c82d286e66bad72e Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28875 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account
2023-05-30recipes-graphics/wayland/weston_10.0_aglcore.inc: Backport libweston11 ↵Marius Vlad2-1/+70
buffer release patch This is a backport from libweston 11 to would perform a synchronous commit that disables the output. Further more this removes our global state hammer regarding the such that we don't disable a CRTC that has a pending flip. Bug-AGL: SPEC-4772 Change-Id: I2631c818fd3a3192e293436fc4898f4a3de8b85d Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28906 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-05-08recipes-graphics/wayland/agl-shell-activator_git: Bump SRCREVMarius Vlad1-1/+1
To include the lastest agl-compositor changes, related to set_app_output request. Bug-AGL: SPEC-4673 Change-Id: I4c057182d5d39904a2b1b3a464fa29c927776cab Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28809 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-05-08recipes-graphics/wayland/agl-compositor_git: Bump agl-compositor SRCREVMarius Vlad1-1/+1
This update includes further gRPC API support, adding the ability to now move windows dynamically between different outputs. Further more this includes also the ability to susbcribe to the drm-backend debug scope (which is being created by the drm-backend module) and to also list other possible debug scopes the AGL compositor can subscribe. In more detail the following changes have been added since the previous update: - 01171e9abf8a13 compositor: Let the user know about the debug scopes available - cea026b06a9073 compositor: Add support for subscribing to libweston scopes - 0fef26d32431e7 shell: Add the ability to dynamically move application window - 998097db427c6a layout: Fix no-op check due to invalid checks - d5d2af73456fba desktop: Look for app_ids after the initial commit - b80044887e9750 src: Send out the output name for the remote role - 456f3fed4ff45b layout: Split remote from desktop role - 4a1684308bd6a1 grpc-proxy: Added set_app_output request Change-Id: I99f96aa983495b1eee2034de39526893085c7c0f Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28806 Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-05-08waltham: Drop waltham supportMarius Vlad11-334/+1
Given than we don't really have any users and more importantly no maintainers it would be best to remove Waltham support entirely from the tree. The AGL compositor will shortly follow-up to remove supporting code. Bug-AGL: SPEC-4669 Change-Id: I4df495bb873d70f380dcc09cb083686f11f0b2e2 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28805 Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-05-08weston_10.0_aglcore: Add helper iterator to loop over debug scopesMarius Vlad2-1/+91
This is helpful for users to list the available scopes, that other compoments of libweston subscribed to. Bug-AGL: SPEC-4593 Change-Id: Idec02efe997104f6af8164281eee0f2e46f996bf Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28804 Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-05-03weston-ini-conf: Add grpc-shell-server to no-activate iniMarius Vlad2-0/+7
This embeddeds the grpc-proxy configuration file into the no-activate configuration file, rather than creating a new no-activate-grpc-proxy, or no-activate-landscape-grpc-proxy. The grpc-proxy.cfg file is just a rename of grpc-server.cfg from meta-agl-demo/ tree, introduced with 1b347d8823, '[weston-ini-conf] Fix dependency issue with grpc in meta-agl-core'. Bug-AGL: SPEC-4776 Change-Id: Ie6183887cdb7b6e3f7cb431f01edb8da75e05946 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Suggested-by: Scott Murray <scott.murray@konsulko.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28738 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-04-28files/group: add sgx group with static ID for new systemdDenys Dmytriyenko1-0/+1
Yocto Project 4.0.9 now comes with systemd v250, which uses sgx group: https://git.openembedded.org/openembedded-core/commit/?h=kirkstone&id=3fd47697df858d4093d9cb4c6a378fc07aa4d064 Note: here sgx is not related to Imagination PowerVR GPU, but rather means Intel Software Guard Extensions: https://en.wikipedia.org/wiki/Software_Guard_Extensions Bug-AGL: SPEC-4768 Change-Id: I3f8656b5e859f1126388f52d9f8b54bfac0734a7 Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28720 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-04-26packagegroup-agl-core-devel: Add zstdScott Murray1-0/+1
Add zstd as a development package, as it's required to decompress coredumps on target with newer systemd. Bug-AGL: SPEC-4736 Change-Id: I2dec559afd28c1b2c681ce4f918eeb640a79744a Signed-off-by: Scott Murray <scott.murray@konsulko.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28707 Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account
2023-04-25Convert AGLCI into AGL_FEATUREJan-Simon Moeller1-2/+2
Use AGL_FEATURES instead of DISTRO_FEATURES. Change-Id: I9a866a4b921e2816613784768c60b874da28a16c Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28681 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account
2023-04-19native-shell-client: update SRCREVScott Murray1-1/+1
Update SRCREV to pick up: c5a05b1 Bump agl-shell protocol version Bug-AGL: SPEC-4735 Change-Id: Iaf48d6ef06d099d8193f0744b2c01428d630e927 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28654 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-03-22agl-shell-activator_git: Bump SRCREVMarius Vlad1-1/+1
This adds support for set_app_float, set_app_fullscreen and set_app_normal for the gRPC interface. In more detail this includes the following changes: - d2dcfd079aa110 AglShellGrpcClient: Add set_app_fullscreen functionality - 1542448f3084e7 src: add support for set_app_normal - 5695439dc3b1a4 src: Add set_app_float request support - 7d66c470049050 src: Fix iteration over actions Bug-AGL: SPEC-4673 Change-Id: Ief168f7383f691271248234f68df7644b1b1057d Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28567 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-03-22agl-compositor_git: Bump SRCREV to latestMarius Vlad1-2/+2
This SRCREV bump updates includes some minor fixes when hot-plugging the connector, and includes set_app_float, set_app_normal and set_app_fullscreen together with an implementation for deactivation of windows using the gRPC API. With this bump we also provide a versioned so libexec_compositor library rather than a generic unversioned one. In detail the following changes have been added: - 4e4624dee9850b4a4e5 grpc-proxy: Add set_app_fullscreen functionality - 9eb8ca6ac7473107ebe shell: Reset normal state when getting back to maximized - 359a0612e48d7d21d52 protocol: Add set_app_normal request - 4af44df30c1784a69b9 protocol, grpc-proxy: Add support for set_app_float - 65fc5191f046ad8c7ba protocol/grpc-proxy: Add deactivate_app request - 28ec0cff16d62260fb1 compositor: Added layout_save/layout_restore - ee50083d93869aaa581 shell: Check for a valid ivi_surface - 02fcb317161c08bcf02 shell: Check for invalid outputs passed on when activating - d98b08f1fcb6ff6ccc7 compositor: Fix memleak when disabling the output - 53a039ff1c4b05aaacc ivi-compositor: Add support for multiple app_ids - ce8dd33f3762e0ec449 meson: Deprecate waltham and inform users of that - 6fd11a88c4d3c82e33b meson: Bump to version 0.0.21 - 4003cfb04b7bae04c32 shell: Reset the area activation Change-Id: I2a2ea18124a825e7e7709aab9c4a4285377a45b0 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28564 Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-02-27Update scripts/run-yocto-check-layerJan-Simon Moeller1-3/+1
The added dependency to meta-oe masked the dependency issue. Remove it. Bug-AGL: SPEC-4707 Change-Id: Ia9740769ea99fcd3c4ddeb66e497fc91ed9816e1 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28514 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Denys Dmytriyenko <denys@konsulko.com>
2023-02-27[agl-shell-activator] Decouple due to dependency on grpcJan-Simon Moeller2-2/+7
We also need to deal with DEPENDS and agl-shell-activator. The latter is a pure grpc implementation, thus move it to a dynamic layer. Bug-AGL: SPEC-4707 Change-Id: I308104b59333f69dfe416bd3721b11fb7e1b96c4 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28513 Reviewed-by: Denys Dmytriyenko <denys@konsulko.com> Reviewed-by: Marius Vlad <marius.vlad@collabora.com> Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account
2023-02-16[weston-ini-conf] Fix dependency issue with grpc in meta-agl-coreJan-Simon Moeller1-3/+0
grpc is not in the core layer but in meta-oe . Guard the dependency and only enable when prerequisites are met. This also affects weston-ini-conf. We move this into meta-agl-demo. Bug-AGL: SPEC-4707 Change-Id: Ia07cc8e32ac0c38586765985f367dae0cf8c429c Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28510 Reviewed-by: Marius Vlad <marius.vlad@collabora.com> Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account
2023-02-16Fix dependency issue with grpc in meta-agl-coreJan-Simon Moeller1-0/+1
grpc is not in the core layer but in meta-oe . Guard the dependency and only enable when prerequisites are met. Bug-AGL: SPEC-4707 Change-Id: I922a846108ca13d8e6d50e79c3003b0b32a002a7 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28509 Reviewed-by: Marius Vlad <marius.vlad@collabora.com> Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account
2023-02-16meta-agl-core: Centralize qtlocation tweaksScott Murray3-0/+62
To avoid issues when combining the meta-agl-ic-container and meta-agl-demo layers, move the meta-agl-demo qtlocation bbappend to the pre-existing meta-qt5 dynamic-layers hierarchy in meta-agl-core. This does have a minor side-effect of enabling more map plugins in the QtLocation users in the meta-agl-ic-container guests, but seems more robust overall with respect to future work on binary package feeds. Bug-AGL: SPEC-4703 Change-Id: I8244c7ac7a22b25d28da7b8ffbf2454b68bee591 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28473 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-02-12Prepare master for Prickly PikeJan-Simon Moeller1-3/+3
Update the distro manifest. Change-Id: Ifbbab5b081f3de4e070aa3f106c46ff0656468df Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28459 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account
2023-02-09weston-ini-conf/core.cfg: Bring in shell-ext-clientMarius Vlad1-0/+3
Rather than messing up the ini file, bring it in from the core configuration file. This allows to start-up the gRPC proxy server at start-up. This is a follow from Revert "weston-ini-conf: Add agl-shell-grpc-server" This reverts commit 2f40613cbf42fd378feea57ccefbb3215ecc1355. Change-Id: I40ab339fe73efb07ac1e86e6778764a553a3cabe Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28441 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Scott Murray <scott.murray@konsulko.com> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-01-30Prepare Optimistic Octopus Milestone 4octopus_14.94.0octopus/14.94.014.94.0Jan-Simon Moeller1-3/+3
Update the distro manifest. Bug-AGL: SPEC-4691 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Change-Id: I4bb2e97dc32c3da7e9d24c843e951a99383b4229 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28438 Tested-by: Jenkins Job builder account
2023-01-29qemu: add bbappend to tweak PACKAGECONFIGScott Murray2-0/+6
Add a bbappend for qemu to tweak PACKAGECONFIG for target use to add libusb support. This is required for USB device passthrough for e.g. touchscreen support. Also enable libaio for potential performance benefits and selinux support for investigation into leveraging it for security improvement. Bug-AGL: SPEC-4618 Change-Id: If9a52bad0657a04d7fc7da3ba15cd14be611ffd4 Signed-off-by: Scott Murray <scott.murray@konsulko.com> (cherry picked from commit cc422ba11f0a18b830422d41e47ba85481daa258) Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28420 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-01-29systemd: enable iptc PACKAGECONFIGScott Murray1-1/+2
Add iptc to our systemd PACKAGECONFIG tweak so that bridging support will be available in systemd-networkd. Bug-AGL: SPEC-4618 Change-Id: I15d003ad69d6ca59613391beb2e78e3c5fe804cc Signed-off-by: Scott Murray <scott.murray@konsulko.com> (cherry picked from commit 69e119b969baa88594b3264709e21037aa783bb7) Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28417 Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-01-29connman-conf: ignore tap interfacesScott Murray1-1/+1
Add tap* interfaces to the list of interface names that connman should ignore so that it will not conflict with the tap interfaces qemu may set up. This seems safe in general, as a usecase where it makes sense for connman to assign an address to a tap interface is not immediately obvious. Bug-AGL: SPEC-4618 Change-Id: Ic9185e4f93a44c2d9e4265513afc04a2ec4c3d4a Signed-off-by: Scott Murray <scott.murray@konsulko.com> (cherry picked from commit 29afa2ad9f9d04477c7a80d3a35e83fb6e5227dc) Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28416 Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-01-29weston-ini-conf: make remote output configuration dynamicScott Murray2-1/+5
Rework things to also update the remote output configuration fragment based on the value of TRANSMITTER_OUTPUT_HOST. This helps when using different IP addresses for e.g. the KVM demo configuration. Bug-AGL: SPEC-4618 Change-Id: I198ff3e6a30b3968b4749998354a39325c088933 Signed-off-by: Scott Murray <scott.murray@konsulko.com> (cherry picked from commit 39def8ebd98c98e67304517ab118f9bde4cdf8e7) Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28415 Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-01-26Revert "weston-ini-conf: Add agl-shell-grpc-server"octopus_14.93.0octopus/14.93.014.93.0Jan-Simon Moeller1-2/+0
This reverts commit 2f40613cbf42fd378feea57ccefbb3215ecc1355. Reason for revert: This breaks the runtime with: Jan 25 04:07:51 qemuarm agl-compositor[456]: malformed section header: [shell-client-ext]\ncommand=/usr/lib/agl-compositor/agl-shell-grpc-server\n Jan 25 04:07:51 qemuarm agl-compositor[456]: [04:07:51.432] fatal: error opening or reading config file '/etc/xdg/weston/weston.ini'. Change-Id: I09f74614a9d7ec55550d46224ec1c1b96528eb0b Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28354 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Marius Vlad <marius.vlad@collabora.com> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-01-26weston-ini-conf: Add weston-ini-landscape-no-activateRoger Zanoni1-0/+16
This change adds an option to use a weston.ini config in landscape mode with automatic activation disabled by default, to be used by wam. Bug-AGL: SPEC-4647, SPEC-4528 Signed-off-by: Roger Zanoni <rzanoni@igalia.com> Change-Id: Ibaeefc4cae07b3f4cb4bbc619bb068fd259d81fc Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28371 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-01-23Prepare Optimistic Octopus Milestone 3Jan-Simon Moeller1-3/+3
Update the distro configuration. Bug-AGL: SPEC-4677 Change-Id: If68d70f93ec35f9f921083f04779216ea33ca6e0 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28413 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account
2023-01-23weston-ini-conf: Add agl-shell-grpc-serverMarius Vlad1-0/+2
Now that we have gRPC server implementation start the agl-shell-grpc server by default. Change-Id: I1d00b29306f90ababc5277ecb71a101eea1a46ca Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28364 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-01-23agl-shell-activator_git: Bump SRCREVMarius Vlad1-2/+2
This SRCREV bump adds gRPC support and removes agl-shell-desktop support. Change-Id: I946a9563321a6d9b5c756a364726fd3037ba5b63 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28363 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-01-23agl-compositor_git: Bump agl-compositor SRCREVMarius Vlad1-2/+3
This SRCREV bump includes the addition of agl-shell-grpc-server, an interface to agl-shell-desktop protocol, but instead of using wayland connection it uses Google's RPC. For the time being there's only a client using it, and that is agl-shell-activator. The plan is to phase out agl-shell-desktop entirely and use this interface as a way to perform additional window management. Further more this bump also includes a couple of connector hot-plug fixes and renames hide-cursor to disable-cursor entry section to better reflect its name. In more detail the following changes have been added: - 7ef34e0c465a7596 shell: Verify agl-shell version for bound_ok/bound_fail - c01b90ece22cc587 shell: Add fallback agl-shell version 1 - 0907e87f1576f8ad input: Fix minor issue while reporting disable cursor - c9d3edb4ee23a563 input: Rename hide-cursor to disable-cursor - 76fa1b83638310c2 src: Verify if the output is present - 79eac214d4866d84 src: Further hotplug connector fixes - 59375972f5642b7e grpc-proxy: Init gRPC - 0b766cf978b8b100 shell: Not not override the agl_shell interface resources - c42f50b567a0d5ad shell: Add a wrappers for sending events with agl-shell - 05bb0384732480a9 compositor: Allow to start other clients - 14a1292a39377472 agl-shell.xml: Introduce a new interface - 33997a7c96838795 compositor: Handle output destruction deferral Change-Id: I6df1d7fcf6d5d3abcc3c1c2b8a0cf820368a26de Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28318 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-01-22Exempt nfsroot and nbdroot from systemd-networkdJan-Simon Moeller2-2/+4
We need to exempt these in our wired configuration is using nbdroot or nfsroot. Likewise we can relax the connman settings again. Change-Id: I10fb9c97db1aba04941bf33f3e9d8a06a963cfac Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28406 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account
2023-01-20weston/0001-simple-touch-Add-maximized-fullscreen: Add maximized/fullscreen ↵Marius Vlad2-1/+138
for simple-touch simple-touch wasn't able to resize itself to max/fullscreen to this patch adds support for that. It is quite useful to have this client test out touch support, so we can re-use it whenever, for instance in the virtio aarch64 machine to test if we have indeed or not a touchscreen device. Upstream-Status: Submitted See: https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1095 Bug-AGL: SPEC-4656 Change-Id: I974b4c5ea8a85f1b3efe4a114f345de948441300 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28314 Tested-by: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-01-07files/group: add render group with static ID for new systemdDenys Dmytriyenko1-0/+1
Yocto Project 4.0.6 now comes with systemd v236, which uses render group: https://git.openembedded.org/openembedded-core/commit/?h=kirkstone&id=f902338f312cf5c55b2857e5c7e980cb11a26a9c https://git.openembedded.org/openembedded-core/commit/?h=kirkstone&id=ba1db7f9189526b02e3d75d375ece53953c2e942 Bug-AGL: SPEC-4668 Change-Id: I473644f4b9e57663f036b43a48a8319e4d664d65 Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28369 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2022-12-30systemd-conf-canbus: Add link configurationScott Murray2-2/+17
Add a .link file to set the transmit queue length to 1000 for physical CAN devices. This matches the default used for vcan devices, and in testing fixes the transmit buffer overflows when running the simulator script against an interface. Bug-AGL: SPEC-4652 Change-Id: Icb190cdcbda9b09e337789d3a88e39f7288f34eb Signed-off-by: Scott Murray <scott.murray@konsulko.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28291 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account
2022-12-18Prepare Optimistic Octopus Milestone 2octopus_14.92.0octopus/14.92.014.92.0Jan-Simon Moeller1-3/+3
Update the distro configuration. Bug-AGL: SPEC-4650 Change-Id: Ibf5234fb83798df32e4b0f9eccb19419a0740f82 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28298 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account
2022-12-16linux: config: add systemd sandboxing fragmentDenys Dmytriyenko2-0/+10
Add a kernel config fragment that enables additional features needed for systemd sandboxing support, using Classic BPF (Berkeley Packet Filter) kernel framework. Eventually this will be extended with more advanced features using eBPF (extended BPF), BTF (BPF Type Format) and LSM (Lunux Security Module) frameworks. Bug-AGL: SPEC-4627 Change-Id: I9ed21c654b2e0298be66073750dab6920e49b0c9 Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28297 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2022-12-16linux: config: move CONFIG_AUDIT* into own fragmentDenys Dmytriyenko3-2/+3
Enabling CONFIG_AUDIT* is needed by auditd and should be safe whether systemd is used or not and is not specific to SELinux. Note that systemd README has this old caveat mentioned | Note that kernel auditing is broken when used with systemd's | container code. When using systemd in conjunction with | containers, please make sure to either turn off auditing at | runtime using the kernel command line option "audit=0", or | turn it off at kernel compile time using: | CONFIG_AUDIT=n | If systemd is compiled with libseccomp support on | architectures which do not use socketcall() and where seccomp | is supported (this effectively means x86-64 and ARM, but | excludes 32-bit x86!), then nspawn will now install a | work-around seccomp filter that makes containers boot even | with audit being enabled. This works correctly only on kernels | 3.14 and newer though. TL;DR: turn audit off, still. But that seems to only apply to nspawn usage in some specific cases and on older kernels, plus there are even runtime workarounds available when needed, so let's enable it by default. Bug-AGL: SPEC-4627 Change-Id: I5fcd58ba41929d2966fadea27b6751e4fa6589c9 Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28276 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2022-12-16linux: config: enable kernel settings that systemd requiresDenys Dmytriyenko2-0/+44
Add kernel config fragment with all settings required by systemd. Some more generic settings need to be explicitly set here as well to satisfy necessary dependencies from systemd settings down the tree, otherwise some BSPs would break. Bug-AGL: SPEC-4627 Change-Id: I7a2796ea65da58a4f1fa0556cd94df67e7df7db9 Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28275 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2022-12-10Update cluster network configurationScott Murray3-3/+3
Update configuration files as appropriate with the IVI board as 192.168.10.2 and the cluster as 192.168.10.3. Bug-AGL: SPEC-4632 Change-Id: Idd41daa75fc6258d07d8f654848e78ced85dff35 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28154 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account
2022-12-10systemd-conf-canbus: Add FD configurationScott Murray2-0/+13
Add canbus-can-fd.network configuration that can be selected via CANBUS_NETWORK_CONFIG. Bug-AGL: SPEC-4633 Change-Id: Ic662be3e991910a4b35e114f144fe399a88ce477 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28153 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account
2022-12-08libsdl2: PACKAGECONFIG tweaksScott Murray2-0/+4
Add a couple of bbappends for libsdl2 to tweak its PACKAGECONFIG, based on Panasonic QEMU+KVM documentation. Bug-AGL: SPEC-4618 Change-Id: I7ceb4e46faa88f09311ad359a3b0b13a462f6cb2 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28192 Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account
2022-12-08linux-yocto: Rework virtio-aarch64 kernel configurationScott Murray1-0/+4
Changes: - Appending the virtio kernel metadata to SRC_URI in the linux-yocto bbappend was having the side-effect of overriding a lot of the changes from the other AGL configuration fragments. To avoid this, prepend the addition to AGL_KCONFIG_FRAGMENTS instead. - Add the HDA sound driver config fragment for virtio machines to allow using the QEMU emulation. - Add config fragment for the virtio kernel to ensure that CONFIG_DRM and the fbdev emulation are on. - Add config fragment for the virtio kernel to turn on CONFIG_PCI, as there are some peripherals that we may need to expose to guests with it. This and the DRM changes will be rationalized in the metadata repo once it's clear we do need them. Bug-AGL: SPEC-4618 Change-Id: I453b84d9840498772afd01404dd374f5c1d245da Signed-off-by: Scott Murray <scott.murray@konsulko.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28191 ci-image-build: Jenkins Job builder account Tested-by: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2022-12-08linux: config: move BBE-specific fragment from meta-agl-core to meta-agl-bspDenys Dmytriyenko2-2/+0
Commit d009fa0c42042a0b7d069779852953621e46469b as part of SPEC-4156 added a kernel config fragment to disable CONFIG_RELAY. Since this fragment is only applied to BBE, there's no need for it to reside in meta-agl-core and can be moved to meta-agl-bsp/meta-sancloud. Bug-AGL: SPEC-4156 Change-Id: I5da2632d6eb00bbf99ddb48cef861564d2ce868d Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28203 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2022-12-08linux-agl-config: correct override syntax for virtualmachineDenys Dmytriyenko1-1/+1
Commit dd6fc5dcaa0a027b7651bb365d5dd0f623498f8f as part of SPEC-4052 converted all overrides to the new syntax, but missed the one used for "virtualmachine" Bug-AGL: SPEC-4052 Change-Id: I1905c7e3b70b05c4ef06d8b4f240d0e144587fab Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/28204 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>