summaryrefslogtreecommitdiffstats
path: root/meta-agl-profile-graphical
AgeCommit message (Collapse)AuthorFilesLines
2020-12-17SPEC-3723: restructure meta-aglJan-Simon Moeller59-2135/+0
Goal is to reach a minimal meta-agl-core as base for IVI and IC work at the same time. Trim dependencies and move most 'demo' related recipes to meta-agl-demo. v2: changed to bbapend + .inc , added description v3: testbuild of all images v4: restore -test packagegroup and -qa images, compare manifests and adapt packagegroups. v5: rebased v6: merged meta-agl-distro into meta-agl-core, due to dependency on meta-oe, moved -test packagegroup and -qa images to own layer meta-agl-core-test v7: Fixed comments from Paul Barker v8: Update the markdown files v9: restore wayland/weston/agl-compositor recipes/appends, reworked to move app f/w specific changes to bbappends in meta-app-framework and only demo specific weston-init changes to meta-agl-demo v10: fix s/agldemo/aglcore/ missed in weston-init.bbappend Description: This patch is part 1 out of 2 large patches that implement the layer rework discussed during the previous workshop. Essentially meta-agl-core is the small but versatile new core layer of AGL serving as basis for the work done by the IC and IVI EGs. All demo related work is moved to meta-agl-demo in the 2nd patchset. This should be applied together as atomic change. The resulting meta-agl/* follows these guidelines: - only bsp adaptations in meta-agl-bsp - remove the agl-profile-* layers for simplicity -- the packagegroup-agl(-profile)-graphical and so on have been kept in meta-agl-demo - meta-agl-profile-core is now meta-agl-core - meta-agl-core does pass yocto-check-layer -- therefore use the bbappend + conditional + .inc file construct found in meta-virtualization - meta-agl/meta-security has been merged into meta-agl/meta-app-framework - meta-netboot does pass yocto-check-layer - meta-pipewire does pass yocto-check-layer Migration: All packagegroups are preserved but they're now enabled by 'agl-demo'. Bug-AGL: SPEC-3723 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Ia6c6e5e6ce2b4ffa69ea94959cdc57c310ba7c53 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25769
2020-12-10agl-compositor_git: Bump agl-compositor SRCREVMarius Vlad1-1/+1
This agl-compositor bump adds support for loading waltham-transmitter-plugin, that handles the remote input, and for streaming out buffers by making use of remoting plugin. Further fixes have been added, most importantly to handle the case were applications do not have an app_id set. Along side that, clients using GDK/GTK toolkit can run correctly. - bdd8dd718496 layout: Do not attempt to activate surfaces that doesn't have a valid app_id - 54ab8a8cc447 shell: Throttle the log message - 9c605257e22e build/: Allow to build the compositor w/o waltham - 16ab9c3ba0e2 shell: Perform wl_list_init() after wl_list_remove() - 7239ababba46 desktop: Allow to remove surface from pending list - 47d79bb6a1f1 desktop: Do not attempt to advertise the clients if there are none - 308078596396 desktop: Delay surface creation until committed - 681f5df23492 shell: Destroy weston_transmitter_surface as well - 27e99ddcad08 shell: Keep a reference to weston_transmitter_surface - ea7a72cbc284 desktop: Insert a black surface only when the output is a remote type - 3d32d6d6daf5 desktop: Group tests for checking against last remote surface - 456fe3dd3b28 shell: Push the surface to the remote side - 3f05a28017b2 main: Create a remoting output if the waltham plug-in has been loaded - 36d2a12f8176 ivi-compositor: Add the ability to distinguish between different types of remoting outputs - a30af04e6f81 main: Add support loading waltham transmitter plug-in - 06e9aa93360b layout: Check app_id for remote type of surfaces - dce67758ac77 shell: Avoid creating and inserting black surface - b4d7a5a1861d main: Use the output handler to destroy to black view - fe771c084c2f shell: Advertise app when app_id is available - abe3abc327b7 shell: Avoid advertising applications without app_id set - 51a77a42b400 main: Create black surface after listening socket Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: If5ac067121a814e512ea7648af8290774a60558a Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25670 Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2020-12-04meta-agl-profile-graphical: add device dependency hook in weston-initScott Murray2-0/+17
Add a mechanism in the weston-init recipe to allow machine templates to trigger installation of a systemd drop-in that adds a DRM device dependency for the weston@.service unit. Also, tweak the qemux86-64 configuration to enable doing so against dev-dri-card0.device to avoid startup failures due to the slow i915 initialization on e.g. the UpSquared. This approach has been taken since it seems safer for now to only apply it for qemux86-64 than doing a blanket default that might then need to be over-ridden for vendor BSPs. Bug-AGL: SPEC-3518 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I74ce4f878f9aa3f0d555f96a79578f3d8ca72550 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25675 ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
2020-12-03meta-agl-profile-graphical: backport weston drm tear-down fixScott Murray2-0/+38
As part of the fixes for compositor start up failures on UpSquared, backport the fix for cleaning up the DRM backend when start up fails. This does result in start up working on the UpSquared, but usually after one or more failures, so a systemd dependency to avoid that will also be added via another change. However, this particular fix still seems worth applying as it may be potentially useful for AGL members that roll their own customized distributions. Bug-AGL: SPEC-3518 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I9a0bcea279c0da80ff3c25bd0e6ab3f137cb6ef1 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25674 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2020-12-02weston_8.0.%.bbappend: Add weston_seat_* patchMarius Vlad2-0/+107
Necessary for building out waltham-transmitter-plug-in. Bug-AGL: SPEC-3601 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Idb2d5e24a28223ae4468a81bcdb5ff68b673b376 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25451 Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2020-12-02weston_8.0.%.bbappend: Remove unused patchMarius Vlad2-115/+0
This removes compositor-drm-introduce-drm_get_dmafd_from_view patch which was already commented out and we no longer make use of it for the transmitter plug-in (which was the intended audience for). Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I4886d9a00b1b0af90e97622e26e5881088c082be Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25450 Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2020-12-02weston_8.0.%.bbappend: Remove unused patchMarius Vlad2-41/+0
This removes main-change-remoting-initialization-timing patch. We no longer use the weston as compositor so do not need to patch it up. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I54ebb3ff8222e704454bd8d350f37208d0219c30 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25449 Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2020-12-02weston_8.0.%.bbappend: Remove unused patchMarius Vlad2-265/+0
This removes ivi-shell-Fix-crash-due-no-transmitter-screen patch. We no longer make use of ivi-shell so no need to patch it up. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Ie34b2601dfbbfdce0e2b33844d4761601eb46922 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25448 Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2020-11-11waltham_%.bbappend: Added bbappend recipe for walthamMarius Vlad4-0/+183
Waltham no longer compiles and it is required for waltham-transmitter-plugin to function. A follow-up task has been added at SPEC-3647 to further determine what we should do about it. For now, this adds a bbappend recipe and with it 2 patches that fixes trivial compilation errors. The third patch is for 'enhancing' the waltham protocol to pass from the transmitter plug-in to the receiver side the app_id. Bug-AGL: SPEC-3601, SPEC-3647 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Ie01e4ad1db0a64d9d911308250ea63a79f78c6fa Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25452 Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2020-10-19[RCAR] Fix cluster-demo image build for RCAR boardRonan Le Martret1-1/+1
* For the agl-cluster-demo-platform image we need to apply a patch on gstreamer1.0-plugins-bad package. For now the RCAR was exclude, for an unkwon reason. Bug-AGL: SPEC-3632 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh> Change-Id: Ib94edf4717184946dfa20a5319d171757027ce4e Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25442 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2020-10-13agl-compositor_git: Bump SRCREVMarius Vlad1-1/+2
This bump brings brings a bug-fix for a corner-case that dealt with hiding/showing surfaces, and it adds the agl-screenshooter protocol and a client with it -- useful to allowing users to take a screenshot but also in CI to have some basic sanity testing. In detail, the following changes have been added: - 9bb8ea6f615650 Use a configuration option for hidding out the cursor - 17d86f9b8afa69 main: Enable screenshoter interface when debug option is passed - 3ba840cd3a5a2f input: Add basic seat handling - be8288cc5b1270 client/screenshooter: Client for taking screenshots - 991714fc7f92ae screenshooter: Add agl-screenshooter protocol - 1f888f2050ac50 layout: Set active output NULL when displaying background Squashed and install agl-screenshooter client in the same commit to please yocto/OE. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I19d2b3e3176bae3586cb2913aeacbd25fd48bde7 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25309 ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2020-09-30Update Licence filenameLi, Xiaoming1-2/+2
follow up the change of https://gerrit.automotivelinux.org/gerrit/c/apps/agl-service-radio/+/25283 Change-Id: Ide3d4c533812d72fbed6a8358f15c1fe2a415ce5 Signed-off-by: Li, Xiaoming <lixm.fnst@cn.fujitsu.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25284 Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2020-09-15remove dependency on qtwebsockets from taskmanager bindingRaquel Medina1-1/+0
Bug-AGL: SPEC-3571 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: I54309f4fd65a1456baf6dcef6029d756ebf48c81 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25264 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2020-09-11recipes-graphics/wayland/agl-compositor: Bump SRCREVMarius Vlad1-1/+1
Update SRCREV to include a work-around for clients that will set-up an application after the initial commit of the surface. The following changes have included in this bump: 0056122343c7829 layout: Activate by default xdg surface that do not have an app_id set 8769c76e59ec448 layout: If no valid output found, abort early with a protocol violation Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I074d159f70c9e86527c9721bfc26519fce7ea838 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25243 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2020-08-31Remove replaced windowmanager recipes and runxdgJan-Simon Möller4-69/+0
agl-service-windowmanager, libwindowmanager and qlibwindowmanager are deprecated. Runxdg is using these and no longer required. Also remove qtaglextras. Bug-AGL: SPEC-3555 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> Change-Id: I412035ea0e9694aad84aa2e8294b4d52f70f57e4 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25161 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
2020-08-20meta-agl-profile-graphical: remove agl-desktop-configScott Murray4-42/+0
Remove recipe and usage, as it has not been needed for a long time and the user-weston-term systemd units cause spurious error messages. Bug-AGL: SPEC-3539 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I2b7bde5846f9900d8a249a7e355a3d0f1a5ea032 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25138 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2020-08-04recipes-graphics/wayland/agl-compositor: Bump SRCREV for agl-compositorMarius Vlad1-1/+1
Bumps the agl-compositor to the latest version. This update removes, from the default, allow-all policy, the private extensions bind tests, such that applications making use of those private extensions are free to bind to them. We'll need some better ways to corroborate/integrate with AFM to allow a dynamic way to communicate which applications can bind to those private extensions. On the other hand, for the deny-all policy, the permitted application list has been extended to include the cluster dashboard and the cluster receiver applications, and users can use that in practice if they require some mechanism in place to control which application can bind to the private extensions. In more detail, the changes are: - c7bc55dce459 layout: Add missing hooks for other surface roles - bf016d204089 layout: Advertise state change for other types of surface roles - 35f6733fb39b shell: Assume consistency with the desktop roles - 5fe16df23483 policy-*: Remove any private binding restrictions for allow-all policy Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I3c25af73a76404c87e09245fee04d0f3a2a48ad9 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25057 ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Scott Murray <scott.murray@konsulko.com>
2020-07-10recipes-graphics/wayland/agl-compositor_git: Add PACKAGECONFIG forMarius Vlad1-0/+2
deny-all policy Bug-AGL: SPEC-3432 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Ib91bfe7056ad268f660243d3f859c9eb5f9fd1f4 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/24928 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Scott Murray <scott.murray@konsulko.com> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2020-07-10recipes-graphics/wayland/agl-compositor_git: Update SRCREVMarius Vlad1-1/+1
Another round of updates for agl-compositor. This update adds a deny-all policy engine, and adds checks in the allow-all policy as to use SMACK labels to check the clients binding to the agl_shell* interfaces. The allow-all policy is still in effect, with the deny-all policy being available to be used as a meson, compile option. A few minor corner cases fixes, found while testing out waylandsink. The update includes the following: - 39ea644837d desktop: Fix destruction of applications that fallback to the desktop role - faea097edab shell: Avoid checking against surfaces that do not have an app_id - 40da59d00a7 README: Add a few words about the deny-all policy engine - 572d0eac44f desktop: Allow desktop_api to handle surface removal - 03f51daf2fc policy: Add a deny-all policy as an example - ea317303ac4 policy-default: Use libsmack to check client label - bbf173123cd policy: Add a new policy hook to restrict access to private extensions - 9827cfd2557 desktop: Avoid referencing the output's surface for pending surfaces Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Ibd67e06a60b18334d3c07c2f6c710b7e77201148 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/24927 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Scott Murray <scott.murray@konsulko.com>
2020-06-25agl-compositor: Update SRCREVMarius Vlad1-1/+1
Bump SRCREV to match latest master. This update includes the following changes: - 06773d6a doc: Added arch diagram - 03755785 README: move README.md to doc/ - 51be2ca7 layout: Clip the view to the size specified by width and height - 7854caac shell: Pass the bounding box values to the pop-up surface - 40d73940 agl-shell-desktop: Add the ability to pass width and height as area of the bounding box - 9701fd67 (review/marius_vlad/24652) shell: Advertise application_id event for other surface roles - c8d025cd (review/marius_vlad/24651) layout: Do not attempt to activate the surface on the remote output - 16826129 src: Mark surfaces with the 'remote' role if configuration file says so - 81be1de5 main: Do the installment of black surfaces for remote outputs as well - ba9b65aa shell: Add some extra checks to make sure we don't trip ourselves - a04518d8 main: Enable remote outputs later than local (DRM) outputs - 7536014f main, layout: Minor clean-ups and added some further logging - 9af06129 main: Retrieve the agl-shell-app-id from the config file - bafead57 main: Retrieve the transform and scale from config file - 9f2f83ea src: Create an ivi_output for the remote output - 22514079 src: Hold a reference for remoting_api in the ivi_compositor - b3c4f205 main: Add the ability to load the remote plugin - 7af3d376 desktop: Remove commiting code for the panel - b491db31 shell: Do not remove the black surface if we don't have a background set for that output - c6941d74 desktop: Display a black surface for apps being moved using config file - 9d29ef9f layout: Remove black surface when trying to use migrate views to other outputs - 8df7681a src/: Use agl-shell-app-id to set-up views on a different output - f235042e layout: Add a wrapper to print out the surface role - 5c90f163 src: Insert a black surface/remove it when the last remote surface role is present - f88d870a layout, desktop: Treat the remote surface role like the desktop one - 226f4ca4 layout: Remove the quirks as now we have the policy hooks in place to handle that - 978c7f8c src/: Add the remote surface role - 0e4d30b4 src/: Add all surface roles to a wrapper for retrieving the output - 496b4170 (sandbox/mvlad/split-wip-take2) layout: Do not attempt to activate a split or a fs surface - a9ae8d75 layout: Resize the active surface when doing the split - 831d1b21 layout: Allow to commit the fullscreen and split surface roles - a2d066f0 layout: Remove unused ivi_compositor reference - af2b5c21 shell: Determine the role type - edbfbad7 shell: Introduce fullscreen and split role type of a surface - f73edbcf desktop: Missing assert include - a2f9566b desktop: Handle correctly panel and bg removal of agl-shell unbind - 79420056 README.md: Add documentation details about agl-shell and agl-shell-desktop Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I67971d937e0348d31c2e47c70ebffe6127f96bbe Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/24865 Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2020-06-25Merge "Merge the agl-compositor sandbox into master"Jan-Simon Moeller3-6/+10
2020-06-25gstreamer1.0-plugins-bad: Modify meson build file to install waylandMarius Vlad3-34/+29
header Removes the older patch in the process as autotools/autogen are no longer in use. Bug-AGL: SPEC-3382 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Ib5c99b62e5cd434bc8ebfd7c1b5460784f72e806 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/24860 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Veeresh Kadasani <external.vkadasani@jp.adit-jv.com> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2020-06-24Make the agl-compositor the default compositorJan-Simon Möller2-4/+9
This makes the agl-compositor the default starting with Jumping Jellyfish For development purposes, you have these variables at hand to influence the setup: AGL_DEFAULT_WESTONSTART AGL_DEFAULT_WM_SHELL Check your conf/local.conf for details. Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> Change-Id: Iceb35375e04f947009800b80511f6360026403fe
2020-06-24packagegroup-agl-graphical-weston: Remove weston-ready dependencyMarius Vlad1-2/+1
weston-ready was in place to make sure that weston was up and running before agl-service-windowmanager. As the latter will no longer be needed we no longer need weston-ready (not only that but it blocks/hangs other apps from running with the agl-compositor). Bug-AGL: SPEC-3342 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Ic4b1ff54acb45eb1e28595443b788b061949623f
2020-06-10agl-service-homescreen: use AGL_APP_REVISION as SRCREVScott Murray1-1/+1
Switch agl-service-homescreen recipe to using AGL_APP_REVISION as its SRCREV as all the other binding recipes do. This change picks up commits: 89edd73 Fix CMake files and non-debug crashes 055909f Update autobuild script to create new targets Bug-AGL: SPEC-2049, SPEC-3343 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Ibb1b8b78f5dc15b73a81d51afe87082cd9796d9e Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/24676 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
2020-05-26Cluster demo support updatesScott Murray3-34/+45
Changes include: - Add agl-weston-remoting feature that sets "weston-remoting" distro feature. The intent is to replace agl-gstrecorder in meta-agl-devel with something more generic. - Add weston remoting initialization timing patch to weston bbappend in meta-agl-profile-graphical, conditional on "weston-remoting" distro feature. - The 0004-unconditionally-include-mman.h.patch weston patch is no longer required after the SMACK labeling changes, remove it as cleanup. - Enable the weston "remoting" PACKAGECONFIG in weston bbappend, also conditional on "weston-remoting". A redefinition of the "remoting" PACKAGECONFIG option is required to fix a recipe bug that will have a fix sent upstream. - Rename virtualoutput.cfg weston.ini fragment to remote-output.cfg to better reflect its current contents. Bug-AGL: SPEC-3395 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I9c0579670d81296492b3b8bed93aafb3f7ffc15c Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/24567 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2020-05-18Rework test/debug image features and crosssdk image definitionsScott Murray2-15/+0
Changes include: - The agl-test-wgt/agl-devel-wgt image features and the scheme of appending to their FEATURE_PACKAGES definitions turned out to be problematic with respect to resulting in unexpected extra packages ending up in agl-image-{minimal,ivi}, etc., when building with agl-demo configured (which is typical usage). To avoid this, the FEATURE_PACKAGE definitions for the image features have been replaced with tweaks to define COMPLEMENTARY_GLOBS for the features to bring in the test/debug/coverage packages via that mechanism. - The above removes the need to define the extra test/devel packagegroups, and requires some minor tweaks to aglwgt.bbclass to use a -debug package for the debug widget instead of -dbg, to avoid collisions with the dbg-pkgs image feature. As well, the afb-test package has been added as to RDEPENDS of all test widget packages, since that seems sensible and avoids needing to explicitly adding it elsewhere. - Attempt to rework the various crosssdk image definitions to use a layered set of .inc files to remove duplication and ensure that additions to the SDK are declared once in the appropriate profile. It is likely that a clean sheet implementation would have some things coming from meta-agl-profile-graphical, so further rework may be required/desired to continue cleaning things up. Bug-AGL: SPEC-3300, SPEC-3375 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I942b61501beb41d037001b70a501f90b9a59c45d
2020-05-17weston-init: Use the same config file from westonMarius Vlad1-0/+1
Bug-AGL: SPEC-3374 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I1f3f78c8b15b1c488b12bff4fcc79c0511a48955
2020-05-14agl-compositor: Update SRCREV for libweston8 updateMarius Vlad1-1/+1
The following update adds support for libweston8, pop-up kind of dialogs, a few fixes and includes the following: - 1956bd3bfb0 main: Convert to using the logging/debuggging fraemwork - ac4e3581fb1 main: Add a (valid) return code when exiting - 61dea1841a4 main: We don't have weston-debug extension available - a7887be3ed9 meson.build: Add a meson variable to track libweston version - 35b1ed57d2a main: Subscribe to the logger scope - 6e60f22455c meson.build: Update build version - 25ede504313 policy-default: Install default for the state event notify - b4ae3794bc9 policy: Add another hook for controlling the application state change event - 401773a4639 protocol: agl-shell-desktop: Send notification for application state change - 795eb91d057 policy-default: Install default policy for deactivate request - ee9259703dc policy: Add a new policy hook for deactivating apps - 65f9de0a549 policy-default: Add the de-activate request to the default policy - d0b4585202c agl-shell-desktop: Add the ability to hide client windows - 410d47884ff layout: Save the pending output - ef3d1990c49 shell: Store the ivi compositor in the desktop_client - 5ce0b5d5200 layout, desktop: Implement the pop-up role - ab151e5d3d1 agl-shell-desktop: Allow to set role properties for the application - 63b6b6b1e14 shell: Display previously pending surface once the ready request was received - 225415dcbad meson.build: Increase agl-compositor version for libweston8 upgrade - f5141881d54 main: Update weston_compositor_add_log_scope to libweston8 - 79dacfa4f3d meson.build: Increase to libweston8 dependency - 457456edb3d main: Use bool for weston_config_section_get_bool() Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Ifcc94efa9a84fb261330a43d7e22efda1bbde1ca
2020-05-12Add i.MX8MQ EVK supportScott Murray1-0/+0
Add imx8mqevk-viv machine template for i.MX8MQ EVK which uses the default Vivante driver configuration in meta-freescale with the new community linux-fslc-imx kernel. The following additional changes have been made to support this: - A linux-fslc-imx bbappend has been added to pull in the AGL kernel configuration, and a imx8mq-evkb config fragment has been added to enable the required Wifi driver for the updated EVKB board. - Stale qtbase and weston-init bbappends/patches have been removed from meta-agl-bsp/meta-freescale-layer. - The meta-agl-profile-graphical Weston 8.0.0 bbappend has been renamed to 8.0.% so the wildcard will apply it to meta-freescale's weston_8.0.0.imx recipe. Known issues: - The required PipeWire configuration for the onboard audio needs further investigation. Bug-AGL: SPEC-3258 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I4ea5437ef0ea8bedb9dd2157f2822ff25ee56cff
2020-05-12meta-agl-profile-graphical: add SMACK labelling for westonScott Murray6-103/+28
The initial patch to allow disabling memfd usage in weston has proven to be naive, as the v7 wayland seat resource changes in Weston 8.0.0 are dependent on them. To avoid needing to make more invasive changes such as forcing the seat resource version back to v6, drop the patch in favor of having Weston run under a System::Weston SMACK label and adding the rules required to have it work. As well, use-XDG_RUNTIMESHARE_DIR.patch and the associated service unit changes have been removed since they are not required now with explicit labelling in place. Bug-AGL: SPEC-3305, SPEC-3350 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I8aef287219a7f95992a82f4ec2ee8e1822ca4ce8
2020-05-12Widget packaging reworkScott Murray2-3/+18
aglwgt.bbclass changes: - Made the autobuild/agl/autobuild script a hard requirement, as all upstream widgets have it, and this is the first step to actually using it in the class to drive building the widgets after a subsequent round of autobuild script updates. - Reworked wgt packaging to simplify the logic and split the test, debug, and coverage widgets into separate packages to allow installing them separately. - The on target install directories for the widgets have been changed to release, test, debug, and coverage under /usr/AGL/apps, with the previous logic with respect to the AGLWGT_AUTOINSTALL variable being retained for the few widgets that need to go into the manualinstall directory. An "autoinstall" symlink has been added to point at the release directory to maintain previous behavior. This should allow a simple path to configuring installation of the debug or coverage widgets on first boot with future changes. - Added logic to only assume test widgets exist for recipes with names starting with "agl-service-". This can be over-ridden by defining AGLWGT_HAVE_TESTS as "true" in a recipe. - Added AGLWGT_EXTRA_BUILD_ARGS variable for passing extra arguments to widget builds. Currently its default value includes the previous VERBOSE=true that was passed to every autobuild invocation, and "${PARALLEL_MAKE}" which has been added to improve build speed. - Added AGLWGT_PACKAGE_WARN variable to control extra warnings around the existence of test/debug/coverage widgets when packaging. Once further build rework is done, the default for this will likely be changed to "true", currently the output is too verbose to do so. - Removed over-rides to force building of test widget when building with the agl-ptest feature set, as it is now unnecessary and will result in an undesired extra copy of the test widget in the release folder. Other changes: - Created new devel and test packagegroup variants for several of the existing packagegroups to contain the associated widgets. - Added agl-devel-wgt and agl-test-wgt IMAGE_FEATURES to control the addition of dbg/coverage and test widgets to images. Additions to the FEATURE_PACKAGES variables have been added in several places to add the corresponding widget packagegroups. - Added the agl-devel-wgt image feature to the agl-devel feature template definition to match current behavior. Bug-AGL: SPEC-3300 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I3a28615db94bbc04e30e98ac3dce8cae942a499f
2020-04-27meta-agl-profile-graphical: disable memfd usage in westonScott Murray3-1/+84
The YP dunfell release's Weston 8.0.0 is the first version to switch to hard-coded usage of memfd's for its shared memory access if the memfd_create system call is available in libc. At the moment, this is problematic since accesses to the non-filesystem file descriptors get blocked by SMACK. For now, while a longer-term solution is worked out in SPEC-3305, patch Weston to allow disabling memfs usage at build time, and do so by using the option in our bbappend. Bug-AGL: SPEC-3302, SPEC-3305 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Ie217c63cd4f43e3de1e802cb026c1ee2905bc5b7
2020-04-27meta-agl-profile-graphical: update weston for dunfellScott Murray3-49/+14
Rename weston bbappend, remove backported patch, and update a patch for weston 8.0.0 in dunfell. Bug-AGL: SPEC-3302 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I518bd403133c193e5f68ee89e69dfccc56d5c78d
2020-04-27meta-agl-profile-graphical: update wayland-ivi-extension for dunfellScott Murray1-1/+1
Update wayland-ivi-extension patch for weston 8.0.0 in dunfell. Bug-AGL: SPEC-3302 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I2d82203e33d87c49ea8ceadc225fcf3930aae20e
2020-04-27meta-agl-profile-graphical: update wayland for dunfellScott Murray3-43/+7
Remove backported patch now present in wayland 1.18.0 in dunfell, and update another patch to quiet patch fuzz QA warning. Bug-AGL: SPEC-3302 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I4ac5adfac6167cc96a755f07922c1c0721d0cb05
2020-04-27Update distro_features_check usageScott Murray1-1/+1
Replace distro_features_check usage with features_check to work with dunfell, which has removed distro_features_check. Bug-AGL: SPEC-3302 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I46ef0d0feaa5515dd664de4cc5a9691e2ebe109b
2020-04-27Declare layer compatibility for dunfellScott Murray1-1/+1
For the upgrade to YP dunfell/3.1 we need to update the layer compatibility. Bug-AGL: SPEC-3302 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Ieb1ac9ef1f48f077c9cd312c4ac295ae1cc062b0
2020-04-20Update SRCREV for agl-compositorMarius Vlad1-2/+2
This brings up two major bits of functionality: the introduction of the agl-shell-desktop protocol, which should be used by regular application(s) to activate/switch other to other applications, and the introduction of the policy API and with it, a default allow-all kind of policy engine. In more details, the following changes have been included: - fcd71e034d378921e layout: Mark activated surface by default - 1ee1bff64338dede1 desktop: Remove the active surface only if matches the one being displayed - 0e66ee13b73e3ca21 meson.build: Increase the build version of agl-compositor - 721d4d4f73e5d30ce README.md: Start adding some light documentation on the policy part - 0a932bc7d66b062e6 layout: Allow by default to activate the application - 58a3fe5c292349916 policy-default: Install a default policy engine - 98457c49f5d777e40 policy: Init policy framework API - fe3358fa9b560a43e ivi-compositor: Use the helpers for array length - 6491e204fd4a9bd2d meson.build: Do another agl-compositor version bump - 72aa326d8f54ad75c meson.build: Install agl-shell-desktop extension - 786f91bd280b83049 protocol: Advertise the applications to regular clients - a35a7f2e5cc20bd40 protocol: Add agl-shell-desktop protocol This patch also installs the agl-shell-desktop XML file. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Icaec7e375242a0266383523806e5eca40d75b652
2020-04-14Revert "agl-service-homescreen: update SRCREV"Raquel Medina1-2/+1
This reverts commit b8bc5c0f601c5a2f385b3141d2da5b13d0e04599 to roll back SRCREV for agl-service-homescreen. agl-service-homescreen's commit 055909f introduces the bug described by SPEC-3326. Bug-AGL: SPEC-3326 Change-Id: If983e353c72c8623700c46a1a34f1cd319a9fc45 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
2020-04-09agl-service-homescreen: update SRCREVRaquel Medina1-1/+2
Update SRCREV to pick up: 055909f: Update autobuild script to create new targets Bug-AGL: SPEC-2049 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: I54668759153a2deedd14741412943e372f9c9262
2020-04-06meta-agl-profile-graphical: update weston-ready's weston dependencyScott Murray1-2/+2
When I switched AGL over to using upstream OE's template unit scheme for running weston as non-root for the zeus upgrade, I missed the dependency in weston-ready.service, update it to weston@display.service to match the new configuration. Bug-AGL: SPEC-3309 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I0814ae0807bd8d9d6f27e9a0c2e1238f0e89ba7c
2020-03-31Use top-level LICENSE files for each repoJan-Simon Moeller3-0/+333
We re-use the OpenEmbedded / Yocto Project style to declare the licenses more prominently in the top level folders. LICENSE is derived from poky's LICENSE file. Bug-AGL: SPEC-3295 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Change-Id: I059b5b42beb0d422ad2e679e958588240b5d8989
2020-03-18Support Salvator-X/XS boardDuy Dang1-1/+1
Add new machines to build with AGL: - h3-salvator-x-nogfx - h3-salvator-x - m3-salvator-x-nogfx - m3-salvator-x Bug-AGL: SPEC-3169 Change-Id: I0cfa838ad40f8afda01aeb693fbf595bad8b4730 Signed-off-by: Duy Dang <duy.dang.yw@renesas.com>
2020-03-11agl-compositor: Update SRCREV to use libweston7Marius Vlad1-1/+1
This includes the following changes (all of them related to the libweston7 upgrade): - dbba1adda7f meson.build: Increase version of the compositor - b352cee6f81 meson.build: Build X11 backend optionally - 93523a7f38b meson.build: Increase wayland-protocol version dependency - c769a272324 main: Add support for the logging context when creating the compositor instance - a17bac48464 meson.build: Upgrade build and headers to libweston7 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I94e5077c48eca76092306892d6e25e345eeda45e
2020-02-21Merge remote-tracking branch 'agl/next'Jan-Simon Möller39-1756/+144
* agl/next: meta-agl-bsp: Add CONFIG_LSM workaround for 5.1+ kernels meta-agl-profile-cluster-qt5: disable qtbase patches zeus updates for dragonboard-410c meta-security: activates dbus-cynagora recipes-graphics/wayland/weston: Expose weston_output_damage() meta-agl-profile-core: tweak udisks2 configuration for AGL meta-agl-bsp/meta-arago: update weston bbappend [RCAR] Update rcar driver weston 7 bsp 3.21.0 [RCAR] Update rcar driver weston 7 bsp 3.21.0 [RCAR] Split ADSP path for ulcb and ulcb-kf Fix nss-localuser post install meta-agl-bsp: meta-raspberrypi: handle zeus upgrade meta-agl-profile-core: add patch for systemd-udevd SECLABEL crash meta-security: disable dbus-cynara patches meta-agl-bsp: handle ptest-runner upgrade meta-agl-distro: Add inc file for next branch over-rides meta-agl-distro: BBMASK problematic upstream meta-security bbappend meta-agl-distro: prefer linux-yocto 4.19 LTS kernel meta-agl-profile-graphical-qt5: enable qt5location services meta-agl-profile-core: update most recipe meta-agl-profile-core: update neardal recipe Update base local.conf.sample meta-agl-profile-graphical: don't always build agl-compositor meta-agl-profile-graphical: update weston and weston-init meta-agl-profile-graphical: update wayland-ivi-extension for weston 7.0.0 meta-agl-distro: add polkit to DISTRO_FEATURES meta-agl-profile-core: update fontconfig bbappend meta-agl-profile-core: switch to udisks2 meta-security: handle systemd upgrade meta-agl-profile-graphical-qt5: handle qtwayland upgrade meta-agl-profile-core: handle freetype upgrade meta-agl-bsp meta-agl-profile-core: upgrade to opencv 4.x meta-agl-profile-core: update rtl-sdr recipe for zeus meta-security meta-app-framework: handle xmlsec1 upgrade meta-agl-profile-graphical: upgrade to gstreamer 1.16 meta-agl-profile-core: remove libmicrohttpd backport meta-agl-profile-core: remove backported curl and nghttp2 recipes meta-agl-profile-core: remove libnfc recipe meta-agl-profile-core: remove connman backport meta-agl-profile-graphical: remove weston 5.0.0 patches meta-agl-profile-core: remove old glibc patch meta-agl-bsp/meta-intel: remove linux-firmware_git.bbappend meta-agl-bsp: remove weston and wayland-protocols backports meta-app-framework: remove libzip recipe meta-security: remove keyutils recipe Declare layer compatibility with zeus Change-Id: Ie8ee1e37958279e7cf2d503c54ffacb46ba0c31c
2020-02-20agl-service-homescreen: Relax computation of appidJosé Bollo1-1/+1
The returned appid is now either the part up to the first @ or the entire string if no @ is present. This evolution is needed to able the removal of handling different versions. Bug-AGL: SPEC-2538 Change-Id: I16cdb3e4a68b2bee067ab18bc2cd2ea21781bed1 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2020-02-17agl-compositor: Update SRCREVMarius Vlad1-1/+1
Includes the following changes: - 357c5a034a89dc meson.build: Allow to install the private extension - 405a475fa64594 Update .gitreview file - ca5e2aec22cb7b meson.build: Allow to build/install locally - ed4a9b0d9c5937 meson.build: Enable Wextra and transform warning messages into errors - 191dc29c7d05d8 main: Avoid warning on un-initialized display - b43a012824af01 shell: Add a black surface in the fullscreen layer - 433edac095bb14 desktop: Remove the surface in all cases - ab2e660c891df7 desktop: Reset the active surface - f8457f6d62370f shell: Allow the client shell to unbind/rebind to agl-shell interface - 08ea4a2fec76b4 layout: Do not delay mapping of desktop surface until commit time - 3950b7e787c19b layout: Use the background's surface ivi_output when activating apps by default - ffd00ab3a05351 ivi-compositor: Add systemd notify message - 219a513fd959b8 shared: Add some regular helpers - e5027ce09a4440 layout: Force a repaint of the entire output - 0e47c84e348b65 layout: Print out when adding panels/background - 2d7243208d3e45 src/: Add basic support for app switching Change-Id: I366880b5fb5a09a23d9af26ea638ad5e1f14dafa Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
2020-02-16recipes-graphics/wayland/weston: Expose weston_output_damage()Marius Vlad2-0/+31
Seems that we can damage all the outputs, but not individual and output so patch libweston to include that declaration. The symbol's already exported. Bug-AGL: SPEC-3179 Change-Id: I6f765304c61d4ef288ebf015a131d9e138d50e97 Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
2020-02-14agl-compositor: Install agl-shell protocolMarius Vlad1-1/+1
As with 357c5a034a89 we now install the agl-shell protocol, so make yocto aware of it. Change-Id: I6976d9ebb86287305f45580a65a2c36b31f99488 Signed-off-by: Marius Vlad <marius.vlad@collabora.com>