summaryrefslogtreecommitdiffstats
path: root/recipes-config
AgeCommit message (Collapse)AuthorFilesLines
2023-06-07Remove systemd user session and clean up packagegroups and imagespike_15.91.0pike/15.91.015.91.0Scott Murray4-40/+11
Remove the use of 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: - Rework systemd units and recipes of affected applications. - Rework images to pull in image .bb files instead of .inc files. - Pull in the new agl-image-compositor as a base image where appropriate. - Update weston-terminal-conf recipe to use new split out weston-terminal package. - Use new agl-crosssdk bbclass where appropriate. - Pull some local common cross-SDK additions into a new agl-ivi-crosssdk.inc include file and use as appropriate. Note that this does have a side effect of likely correcting the contents of agl-image-ivi-crosssdk for some recent additions. - Remove flutter-gallery bbappend that turned it into an app, as we are not using it in images, have other examples now, and it seems better to not affect the contents of agl-image-flutter. - Remove unused agl-image-graphical-html5. If a downstream user does desire an image with Chromium+WAM without applications, restoring it can be considered. - Remove unused agl-image-graphical-qt5-crosssdk. - Remove all packagegroup-agl-profile-* packagegroups, as they were either empty or not providing value at this point. Any future plans for defining profiles can start from a clean sheet. - Added new packagegroup-agl-ivi-multimedia-hardware to hold some rcar3 specific additions (via override) that were previously being appended onto packagegroup-agl-graphical-multimedia even though they are machine-specific and that packagegroup is not. This may be a stopgap solution if the agl-ivi-* packagegroups are reworked further. - Replace some :append usage with += to avoid creating problems for downstream users. Bug-AGL: SPEC-4714, SPEC-4813 Change-Id: I544b1495bed1e2e2412a8e46b7d20d7622ec28c9 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2023-05-09Override group setting for agl-driverNaoto Yamaguchi1-0/+14
In container integration case, a common group between host and guest shall use static groups. AGL Demo IVI run agl-compositor using agl-driver user and group. The agl-driver doesn't have input group. This patch add agl-driver to input group. Bug-AGL: SPEC-4766 Change-Id: Ibe5cec7127f967890ddded4e45e2097d920fbfdd Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
2023-05-09Remove tty dependency from agl-session in guest containerNaoto Yamaguchi3-0/+26
When existing agl demo integrate to container guest, need to remove real tty device dependency. This patch remove tty device dependency from agl-session in case of container guest. Bug-AGL: SPEC-4766 Change-Id: I5fc88d19554b659271a74858fb588a9aaa9b13f6 Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
2023-01-29Update guest input and CAN configuration for QEMU+KVM demoScott Murray2-2/+12
Changes: - Tweak agl-qemu-runner to make CAN options configurable. - Update the IVI guest image agl-qemu-runner configurations to enable an emulated PCI CAN device mapped to the host can0. - Update the IVI guest image agl-qemu-runner configurations to change the input device to a USB passthrough corresponding to the bottom USB 2.0 connector of the 2x stack on the reference hardware, so that a USB touchscreen can be used for demos. Bug-AGL: SPEC-4618 Change-Id: I6b690377f5fe0a481e283d7370cbb165478ee8eb Signed-off-by: Scott Murray <scott.murray@konsulko.com> (cherry picked from commit 0eb0e7ad872bc03cbc8af5c95bfe0219ebf06bfd)
2023-01-29Rework guest network configuration for QEMU+KVM demoScott Murray14-4/+67
Changes: - Tweak agl-qemu-runner to make network options configurable. - Add qemu-config-vmnet0 recipe that installs the required configuration files to set up a vmnet0 bridge device for QEMU to add the guests to, and to run dnsmasq against it to provide set IPs (in 172.16.10.0/8) to known MAC addresses that can be used to get the IVI and IC guests at stable IP addresses. - As part of the above, disable connman DNS proxying to avoid conflicting with dnsmasq. This does mean this package should only be used for simple host images where applications can live with less dynamic DNS configuration behavior. - Update the various guest configuration files for agl-qemu-runner to set the new QEMU_NET_OPT variable as required. Bug-AGL: SPEC-4618 Change-Id: I81d2ea9f0605a8bca7ac17d6e8f33c0b1a9f2c46 Signed-off-by: Scott Murray <scott.murray@konsulko.com> (cherry picked from commit 0219e6547b627f45936599fa54e02cad27dee4f4)
2022-12-29Rework cluster demo configurationScott Murray4-11/+33
Changes: - Rename cluster-dashboard-demo-config to cluster-demo-config since the installed AGL.conf will also be used for receiver configuration now. - Add a Flutter cluster version of AGL.conf that configures the receiver window geometry as required. The alternative mechanism is used to generate separate packages with the different AGL.conf files. - Update the package names installed by agl-demo-preload in the Qt and Flutter cluster demo images. It may make sense to do further rework in the dashboard and receiver apps post-CES to split things into separate configuration files, but this seems the most straightforward way to do things for now. Bug-AGL: SPEC-4640 Change-Id: If8a65228c75f28a53ef32a49be90f75a85d60a16 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2022-11-23agl-qemu-runner: Add recipesScott Murray8-0/+136
Add recipes for agl-qemu-runner.sh QEMU wrapper script and template systemd unit, and guest per-image configuration files and systemd unit links for the various demo platform images. The configurations for the demo images can be mixed and matched somewhat, but only one each of IVI and cluster should be used, as there are some static CPU assignments in the configurations. As well, this has only been tested on the AGL reference hardware at present, some rework will likely be required to support other platforms. There is room to add a bbclass to simplify the guest configuration recipes, but that has not been done for now as this approach may be temporary; a switch to libvirtd with appropriate configurations is likely. Bug-AGL: SPEC-4618 Change-Id: Ieefbd4081cca506f915957cc313411a5ed1ece5c Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2022-07-06Rework demo packagegroup and imagesScott Murray2-0/+13
Rework the agl-ivi-demo-platform* images to reduce duplication, and move the additions for the agl-demo-cluster-support and agl-demo-preload features. Changes: - Pull in agl-image-ivi.bb in the crosssdk image rather than duplicating its contents. This means the package additions from the demo features will be reflected in the SDK, which seems more in line with general expectations of how Yocto SDKs work. - New packagegroups are created for the agl-demo-cluster-support and agl-demo-preload features, and they are pulled into the agl-ivi-demo-platform / agl-demo-platform image using features in IMAGE_FEATURES. This avoids changing the contents of various packagegroups based on AGL_FEATURES and seems more futureproof with respect to binary packaging. - ALLOW_EMPTY has been removed in a few packagegroup recipes, as it does not seem to make sense if the packagegroup will never be empty. - The cluster-dashboard-demo-config recipe pulled into the agl-demo-cluster-support packagegroup has been added back, it was accidentally removed in the application framework cleanup. Bug-AGL: SPEC-4424 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Icaa38651a1d29de09bb40576c773e3f93ee87098
2022-03-08Restore cluster and telematics demo imagesScott Murray3-0/+62
Changes: - Restore the image recipes for the agl-cluster-demo-platform and agl-telematics-demo-platform images, with updates to them and their associated packagegroups for the app framework removal. - Restore updated recipes required for the above, including: * cluster-dashboard * cluster-receiver * qt-cluster-receiver * tbtnavi - Simple systemd unit files have been added for the cluster applications and are installed as user session units. Starting of cluster-dashboard (the XDG version) and cluster-receiver in the AGL user session is enabled by default. - The recipes to install the dedicated network configuration for the cluster demo have been restored so that the agl-cluster-demo-support and agl-demo-preload features will do what is expected again. Known outstanding issues: - The previous signal-composer binding support has been removed from cluster-dashboard, so related functionality (i.e. driving it from CAN) is disabled until replacement is worked out. - While tbtnavi builds, the previous use of the navigation binding is stubbed out in libqtappfw, so it will not receive location and route information from ondemandnavi. - Nothing has been added yet to start tbtnavi in the AGL user session, the plan is to do so with a systemd user unit once a new mechanism for controlling it from ondemandnavi has been implemented. - The telematics-recorder application has not yet been updated to replace its signal-composer, gps, and network binding use. The intent is to address these issues in the 13.0.x point releases. Bug-AGL: SPEC-4283 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I520c23775b21504cb7dd92538319cc5bf826ff64
2021-12-21agl-users: removemarlin_12.91.0marlin/12.91.012.91.0Scott Murray1-24/+0
Remove unused agl-users recipe as attempting to use it now would conflict with the agl-driver user definition in the new agl-session recipe. Bug-AGL: SPEC-4161 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Ifdded99fdec297379e0454bd26aaef8133f11d51
2021-11-04agl-users: remove display userScott Murray1-3/+0
The "display" user has effectively been replaced with a "weston" user in the new weston-init support for running as non-root from upstream Yocto, so remove creation of it from the agl-users recipe. If the agl-users recipe will be retained in the new application scheme, this cleanup is required. Bug-AGL: SPEC-4121 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Iafd7a08dfd7ba3514ef4264c68d697cfd9790047
2021-11-03Prepare master for new framework integrationJan-Simon Möller23-854/+0
During the last workshop the transition to the new framework was presented. This change essentially deprecates the SMACK-based application framework. To prepare the integration of it, we remove the deprecated components: - recipes-apis : all agl-service-* - recipes-demos: all demo apps but homescreen - non-essential configurations Todo: We need to bring-back the html5 image in a follow-up w/o ties into the old framework. v2: kept WAM + Chromium recipes for reference v3: rebased Bug-AGL: SPEC-4121 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Change-Id: I58075f5f1e477106a1aad3d2171a0904bf0cb16e
2021-08-20Convert to new override syntaxScott Murray10-23/+23
This is the result of running a slightly customized version of the convert-overrides.py script from poky with additional overrides added. The intent of these changes is to minimize the effort to keep the "next" branch that builds against poky master up to date and tested in preparation for the switch to the next Yocto LTS release in early 2022. Bug-AGL: SPEC-4052 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I6eeadd2c985c008b04f8f9815bf0f6fb064bedac
2021-03-02cluster-demo-simulator: update LICENSE/LIC_CHKSUM_FILEScott Murray1-13/+5
Upstream has renamed the common license files, but investigation revealed that the LICENSE on this purely configuration recipe should likely be MIT to be consistent with the other similar recipes in the tree, so update both LICENSE and LIC_CHKSUM_FILE to fix both issues. As well, now that the demo repositories are merged, this recipe can just RDEPEND on simple-can-simulator, rather than duplicating it. Bug-AGL: SPEC-3819 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I2302e904258a67d3c2a1756f94d247e3779106f0
2021-03-02cluster-lin-bridging-config: update LICENSE/LIC_CHKSUM_FILEScott Murray1-2/+2
Upstream has renamed the common license files, but investigation revealed that the LICENSE on this purely configuration recipe should likely be MIT to be consistent with the other similar recipes in the tree, so update both LICENSE and LIC_CHKSUM_FILE to fix both issues. Bug-AGL: SPEC-3819 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I82b6c44aa1d09008a9915250f111c93e6b9de02c
2021-01-12Add dev-mapping-ci recipeScott Murray5-0/+27
Add a dev-mapping-ci recipe that installs a CI specific version of /etc/dev-mapping.conf for the agl-service-can-low-level binding. Additionally, the dev-mapping-demo recipe files have been moved to recipes-config/dev-mapping so all the dev-mapping* recipes are in the same place, and the now required "j1939" bus mapping has been added to the various dev-mapping files. To enable use of the new recipe, a definition of the variable PREFERRED_RPROVIDER_virtual/low-can-dev-mapping has been added to the agl-demo feature definition that enables it based on the AGLCI DISTRO_FEATURE. This is intended to replace the definition in poky-agl.conf, which will be removed in subsequent cleanup. Bug-AGL: SPEC-3756 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Ieb80a7f4b76ddd7851acca521dea1a8dd104cf86
2020-12-17SPEC-3723: restructure meta-agl-demoJan-Simon Moeller7-0/+122
All demo related components should be in here now. We keep the packagegroups on purpose for now to stay backward-compatible. v2: layer does pass yocto-check-layer, dependencies adapted v3: remove the dynamic-layer setup, use all-in-one approach v4: Fixed comments from Paul Barker. Tnx! v5: Removed wayland/weston/agl-compositor additions, except for demo specific weston-init bbappend Follow-up changes required later: - massaging packagegroups - scrub of recipes Bug-AGL: SPEC-3723 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I47cefd8c23d46b2cdd063470e3f7d97d5ad952d8
2020-08-19Add can-dev-mapping-helperjellyfish_9.99.3jellyfish/9.99.39.99.3Scott Murray1-1/+0
Changes: - Add a can-dev-mapping-helper.sh script and systemd unit to drive it, the script checks if the CAN devices specified in the low-can configuration file /etc/dev-mapping.conf exist, and if not brings up corresponding virtual CAN devices. - Add a systemd over-ride conf file for agl-service-can-low-level that makes can-dev-mapping-helper a dependency. This should ensure that the low-can binding always starts even if there are no physical CAN hardware devices. - Added a Before statement to sllin-demo.service to ensure that it will run before can-dev-mapping-helper and ensure that lin_config can create sllin0 correctly. - Removed the sllin-demo-virtual systemd unit, as it will no longer be required with can-dev-mapping-helper. - Updated the /var/run paths in sllin-demo.service and associated start_lin_demo.sh script to quiet systemd warnings about /var/run usage. Bug-AGL: SPEC-3540 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Ife02f75f57ac7bbdee6b02217e2ab657fe8c36e0
2020-05-26Cluster demo support updatesScott Murray4-19/+43
Changes include: - Rework cluster-demo-network-config recipe to have the installed service file be a template, allowing the recipe to potentially change the target network device easily. A new variable AGL_CLUSTER_NET_DEVICE has been added to do so, with a default value of eth1. The interface configuration has been moved to a helper shell script, cluster-demo-network-conf.sh, with some additional logic added to update the interface blacklist in the connman configuration. This makes things more generic and allows setting up the cluster demo on boards other than H3+KF. - Update agl-cluster-demo-support feature dependency with new agl-weston-remoting feature that replaces agl-gstrecorder. Bug-AGL: SPEC-3395 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I9109b8e7782112d5504866f67e6bb5953c79d4a8
2020-02-07cluster-demo-support: add recipe for cluster-demo-simulatorJan-Simon Moeller3-0/+425
The cluster-demo-simulator is a small python script that sends can messages to simulate speed and rpm. It has support for steering wheel events. Bug-AGL: SPEC-3090 . Change-Id: I45bf259c984c59912a674a57ccc642a1917a3209 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> (cherry picked from commit b0620c288705d14aadb9cdd95e47b8b22dc7662a)
2019-12-30Add demo low-can device mappingScott Murray2-0/+24
Rework the agl-demo-preload feature to specify a new demo-specific PREFERRED_RPROVIDER for the new virtual/low-can-dev-mapping virtual package. This enables using the sllin0 interface on the CES demo setup as the low-speed interface. Bug-AGL: SPEC-3076 Change-Id: I872137d8acb1f5ec5df9eac92f25953b28128b36 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2019-12-29Add virtual sllin support and LIN bridging to CAN for demosScott Murray2-0/+40
To enable seeing the steering wheel LIN messages on the cluster board for the planned CES demo, a systemd unit that wraps the use of candump in bridging mode is added when the agl-cluster-support feature is enabled. To make sure that the sllin0 interface is always available for testing without the specific demo LIN hardware, a vcan interface is set up as sllin0 when the ttyUSB0 device representing the serial adapter for the LIN transceiver is not present. Since this virtual sllin0 interface is very useful for general testing of the steering wheel event support up through the low-can and signal-composer stack, it has not been hidden behind agl-cluster-demo-support. Bug-AGL: SPEC-3049 Change-Id: Idb478e3fe4085859e8704ab0329a341b1a11e0ef Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2019-11-13unicens-configuration: updated driver configTobias Jahnke1-50/+9
- adopt driver configuration to provide 2 'mono' ALSA capture devices Bug-AGL: SPEC-2953 Signed-off-by: Tobias Jahnke <tobias.jahnke@microchip.com> Change-Id: Iff5138828dd192cd9370b2ac1ab17c7fc3db208b
2019-09-02Update demo features for switch to ondemandnaviScott Murray2-0/+38
The ondemandnavi navigation application does not work with the mapviewer cluster demo application, so update the logic to handle the agl-cluster-demo-support feature in packagegroup-agl-demo-platform to not pull it in when using ondemandnavi as the virtual/navigation provider. Since the plan is to replace mapviewer with an equivalent QtLocation based map streamer for the cluster demo, the mapviewer-demo recipe has also been replaced with a more generically named cluster-demo-network-config recipe. Additionally, the agl-demo-preload feature logic has been tweaked to not pull in the map package for the old navigation application when using ondemandnavi. Bug-AGL: SPEC-2576 Change-Id: I57b45ab152f9fab6cee97d570be1949136cd39eb Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2019-07-04unicens-config: Add udev rules for inic devicesScott Murray2-5/+8
Install a udev rules file in the unicens-config recipe to set the group and SMACK label on the inic character devices so they are accessible by services with the new audio permission. Bug-AGL: SPEC-2591 Change-Id: I52135cf62ca8bfab0badd8850d49639d86ed73c1 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2019-06-19agl-login: switch to user 1001José Bollo1-1/+1
The user 'agl-driver' has the uid 1001. The objective is to make him the user of the homescreen. Bug-AGL: SPEC-1016 Change-Id: I02d8a0adb3877166727172629c46aa728aa56416 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-11-28recipes-config: unicens-config: set up additional sound card in ↵Christian Gromm1-0/+12
configuration file This patch adds the configuration for an additional ALSA sound card to the MOST driver configuration file. It is needed to have another capture device registered with ALSA. Change-Id: I9c458448c80bef47d61831157c1b80ce1a7a9848 Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
2018-10-09recipes-config: unicens-config: add capture device to configuration fileChristian Gromm1-0/+12
This patch adds a capture device to the MOST sound configuration. Is is needed to have the kernel driver register another sound card with the ALSA subsystem. Change-Id: I6406c40a788251e860768acce3c886b395e95ce0 Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
2018-08-07recipes-config: make unit be wanted by multi-user.targetChristian Gromm1-1/+1
This patch replaces the default.target with the multi-user.target to ensure that the unit is being executed by systemd. Change-Id: I3d696eb88052be63c82bd11434fd338371deb38d Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
2018-01-23unicens-config: Add bash to rdepsChanghyeok Bae1-0/+3
Fixes QA Issue: /usr/bin/unicens-config.sh contained in package unicens-config requires /bin/bash , but no providers found in RDEPENDS_unicens-config? [file-rdeps] Bug-AGL: SPEC-1181 Change-Id: I6d7ec9487d22c05ce531b38f997d376ae24d8863 Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com>
2017-12-21recipes-config: unicens-config: add service type oneshotChristian Gromm1-0/+1
This patch sets the type of the unicens-config.service file to oneshot. It is needed to ensure a proper initialization of the system on an SMP machine. Change-Id: I4bb74157efe1d4a9ce86d29135af6898eefa30d1 Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
2017-12-19recipes-config: unicens-config: update configuration scriptChristian Gromm1-20/+21
This patch updates the shell script that is used to configure the discovered MOST devices. It is needed because current configuration vectors don't match the attached device interfaces Change-Id: I6618a619bc0c1e1332ba91100da1c5e8135c1d72 Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
2017-11-30agl-login-manager: Use numbers for login usersJosé Bollo1-1/+1
Adapt to changes in AGL that now handles user by number, just numbers. Change-Id: Ia01ee46e7db8d3bcd5ce43a34f7ba9ba5bc2f3f9 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-29recipes-config: unicens-config: fix driver configuration scriptChristian Gromm1-2/+2
This patch is needed to fix the driver configuration script which mixes up the channel settings. Change-Id: I0a83a8b9b6de68fc509b75728f28e71e4ebf2feb Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
2017-11-28recipes-config: unicens-config: fix file permissionChristian Gromm1-1/+1
This patch changes the permission of the file unicens-config.service to 644. It is needed because an executable service file is considered a security risk. This patch fixes JIRA SPEC-1137. Change-Id: Idab5080450be358b5775ce4dbb1737f2bcd34a5f Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Reported-by: Dominig Ar Foll <dominig.arfoll@fridu.net>
2017-11-23recipes-platform: add MOST driver configurationChristian Gromm3-0/+198
This patch adds the necessary files to have the MOST driver configured for UNICENS2 at system start up. Change-Id: I9a69192332d355a3f9d3df3771cd364771e8eb9a Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
2017-05-09Run weston with dedicated 'display' user and groupRonan Le Martret1-0/+1
Bug-AGL: SPEC-546 Change-Id: I2ddc07547f9f2afd724feda80a80f65e890ebcf5 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>