summaryrefslogtreecommitdiffstats
path: root/meta-agl-flutter/recipes-graphics/toyota/files/0002-shell-configuration-Obey-json-configuration-file.patch
blob: b9a864c5cac29db9df4e0feeec62dc31c6d51297 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From 36c7deb35719d2219dc6e868ab14d9a4ce984d1f Mon Sep 17 00:00:00 2001
From: Marius Vlad <marius.vlad@collabora.com>
Date: Mon, 25 Jul 2022 15:51:06 +0300
Subject: [PATCH 2/3] shell/configuration: Obey json configuration file

Setting the name of the application to kApplicationName, by default,
would cause the check in getCliOverrides to always be true, which in
turn will ignore whatever the user specified in the configuration file.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
---
 shell/configuration/configuration.cc | 2 ++
 shell/main.cc                        | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/shell/configuration/configuration.cc b/shell/configuration/configuration.cc
index f8b1e13..616de48 100644
--- a/shell/configuration/configuration.cc
+++ b/shell/configuration/configuration.cc
@@ -220,6 +220,8 @@ std::vector<struct Configuration::Config> Configuration::ParseConfig(
     if (cfg.view.height == 0) {
       cfg.view.height = kDefaultViewHeight;
     }
+    if (cfg.app_id.empty())
+      cfg.app_id = kApplicationName;
 
     res.emplace_back(cfg);
   }
diff --git a/shell/main.cc b/shell/main.cc
index 65c3f37..6fdd907 100644
--- a/shell/main.cc
+++ b/shell/main.cc
@@ -44,7 +44,7 @@ void RemoveArgument(std::vector<std::string>& args, const std::string& arg) {
 
 int main(int argc, char** argv) {
   struct Configuration::Config config {
-    .app_id = kApplicationName, .json_configuration_path{}, .cursor_theme{},
+    .app_id = {}, .json_configuration_path{}, .cursor_theme{},
     .disable_cursor{}, .debug_backend{}, .view {}
   };
 
-- 
2.35.3
started with AGL [here](https://wiki.automotivelinux.org/start/getting-started) For information about contributing to the AGL Distro [here](https://wiki.automotivelinux.org/agl-distro/contributing) ## Quick start guide See README-AGL.md ## 'meta-agl' Layer Dependencies * poky > URI: git://git.yoctoproject.org/poky > branch : jethro > tested revision: 40376446904ae3529be41737fed9a0b650ed167d * meta-openembedded > URI: git://git.openembedded.org/meta-openembedded > layer : meta-openembedded > branch : jethro > tested revision: 8ab04afbffb4bc5184cfe0655049de6f44269990 Specifically out of meta-openembedded these sub-layers are used: * meta-openembedded/meta-oe * meta-openembedded/meta-multimedia * meta-openembedded/meta-networking * meta-openembedded/meta-python ## Layers There are 5 layers in top-level `meta-agl`. * `meta-agl/meta-ivi-common`\ `meta-ivi-common` is a layer which contains common packages to AGL Distribution and other platforms for In-Vehicle Infotainment system. * `meta-agl/meta-agl`\ `meta-agl` is a layer which contains AGL common and middleware packages. * `meta-agl/meta-agl-bsp`\ `meta-agl-bsp` is a layer which contains required packages to boot AGL distribution on an emulated machine(QEMU). * `meta-agl/meta-netboot`\ `meta-netboot` contains the netboot initrd support recipes. This is needed in case of booting over the network as NFS does not support the securitylabels. ## Packagegroups AGL package group design: * packagegroup-agl-image-minimal packagegroup-agl-core-automotive.bb packagegroup-agl-core-connectivity.bb packagegroup-agl-core-graphics.bb packagegroup-agl-core-kernel.bb packagegroup-agl-core-multimedia.bb packagegroup-agl-core-navi-lbs.bb packagegroup-agl-core-os-commonlibs.bb packagegroup-agl-core-security.bb packagegroup-agl-core-speech-services.bb These are for making image ``agl-image-minimal`` which is small image just capable of allowing a device to boot. Subsystem should maintain packagegroup-agl-core-[subsystem].bb which should hold sufficient packages to build ``agl-image-minimal``. * packagegroup-agl-image-ivi packagegroup-agl-ivi-automotive.bb packagegroup-agl-ivi-connectivity.bb packagegroup-agl-ivi-graphics.bb packagegroup-agl-ivi-kernel.bb packagegroup-agl-ivi-multimedia.bb packagegroup-agl-ivi-navi-lbs.bb packagegroup-agl-ivi-os-commonlibs.bb packagegroup-agl-ivi-security.bb packagegroup-agl-ivi-speech-services.bb These are for making image ``agl-image-ivi`` which is baseline for the profiles of AGL distro. 'Baseline' means Service Layer and Operating System Layer defined in AGL Spec v1.0. * packagegroup-agl-test.bb Additional tools used in QA tests (for agl-image*-qa). * packagegroup-ivi-common* packagegroup-ivi-common-core-automotive.bb packagegroup-ivi-common-core.bb packagegroup-ivi-common-core-connectivity.bb packagegroup-ivi-common-core-graphics.bb packagegroup-ivi-common-core-kernel.bb packagegroup-ivi-common-core-multimedia.bb packagegroup-ivi-common-core-navi-lbs.bb packagegroup-ivi-common-core-os-commonlibs.bb packagegroup-ivi-common-core-security.bb packagegroup-ivi-common-core-speech-services.bb packagegroup-ivi-common-test.bb These are for picking up some packages from upstreams like GENIVI/Tizen/Others. The layer of ``meta-ivi-common`` has no image to build, all packagegroups are aggregated to ``packagegroup-ivi-common-core' and it is included by images, ``agl-image-ivi.bb`` and ``agl-demo-platform.bb``. ## Supported Machines See [docs.automotivelinux.org](http://docs.automotivelinux.org)