aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-connectivity/kuksa-val/kuksa-val-agl-demo-cluster.bb22
-rw-r--r--recipes-connectivity/kuksa-val/kuksa-val-agl-demo-cluster/kuksa-val.env1
-rw-r--r--recipes-connectivity/kuksa-val/kuksa-val-agl.bb27
-rw-r--r--recipes-connectivity/kuksa-val/kuksa-val-agl/00-agl_vss_overlay_2.2.json81
-rw-r--r--recipes-connectivity/kuksa-val/kuksa-val-agl/kuksa-val.env1
-rw-r--r--recipes-connectivity/kuksa-val/kuksa-val/kuksa-val.service3
-rw-r--r--recipes-platform/packagegroups/packagegroup-agl-demo-cluster-support.bb1
-rw-r--r--recipes-platform/packagegroups/packagegroup-agl-ivi-services.bb1
8 files changed, 136 insertions, 1 deletions
diff --git a/recipes-connectivity/kuksa-val/kuksa-val-agl-demo-cluster.bb b/recipes-connectivity/kuksa-val/kuksa-val-agl-demo-cluster.bb
new file mode 100644
index 000000000..1f1a6411f
--- /dev/null
+++ b/recipes-connectivity/kuksa-val/kuksa-val-agl-demo-cluster.bb
@@ -0,0 +1,22 @@
+SUMMARY = "AGL cluster demo configuration for KUKSA.val, the KUKSA Vehicle Abstraction Layer"
+HOMEPAGE = "https://github.com/eclipse/kuksa.val"
+BUGTRACKER = "https://github.com/eclipse/kuksa.val/issues"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+
+SRC_URI = "file://kuksa-val.env"
+
+inherit allarch update-alternatives
+
+do_install() {
+ install -d ${D}${sysconfdir}/default
+ install -m 0644 ${WORKDIR}/kuksa-val.env ${D}${sysconfdir}/default/kuksa-val.agl-demo-cluster-support
+}
+
+ALTERNATIVE:${PN} = "kuksa-val-env"
+ALTERNATIVE_LINK_NAME[kuksa-val-env] = "${sysconfdir}/default/kuksa-val"
+ALTERNATIVE_TARGET[kuksa-val-env] = "${sysconfdir}/default/kuksa-val.agl-demo-cluster-support"
+ALTERNATIVE_PRIORITY[kuksa-val-env] = "20"
+
+RDEPENDS:${PN} += "kuksa-val"
diff --git a/recipes-connectivity/kuksa-val/kuksa-val-agl-demo-cluster/kuksa-val.env b/recipes-connectivity/kuksa-val/kuksa-val-agl-demo-cluster/kuksa-val.env
new file mode 100644
index 000000000..e6778a3d9
--- /dev/null
+++ b/recipes-connectivity/kuksa-val/kuksa-val-agl-demo-cluster/kuksa-val.env
@@ -0,0 +1 @@
+EXTRA_ARGS="--overlays /usr/share/kuksa-val/overlays --address 0.0.0.0"
diff --git a/recipes-connectivity/kuksa-val/kuksa-val-agl.bb b/recipes-connectivity/kuksa-val/kuksa-val-agl.bb
new file mode 100644
index 000000000..1614c5fbd
--- /dev/null
+++ b/recipes-connectivity/kuksa-val/kuksa-val-agl.bb
@@ -0,0 +1,27 @@
+SUMMARY = "AGL demo signal overlay for KUKSA.val, the KUKSA Vehicle Abstraction Layer"
+HOMEPAGE = "https://github.com/eclipse/kuksa.val"
+BUGTRACKER = "https://github.com/eclipse/kuksa.val/issues"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+
+SRC_URI = "file://00-agl_vss_overlay_2.2.json \
+ file://kuksa-val.env \
+"
+
+inherit allarch update-alternatives
+
+do_install() {
+ install -d ${D}${sysconfdir}/default
+ install -m 0644 ${WORKDIR}/kuksa-val.env ${D}${sysconfdir}/default/kuksa-val.agl
+ install -d ${D}${datadir}/kuksa-val/overlays
+ install -m 0644 ${WORKDIR}/00-agl_vss_overlay_2.2.json ${D}${datadir}/kuksa-val/overlays/
+}
+
+FILES:${PN} += "${datadir}/kuksa-val/overlays"
+
+ALTERNATIVE:${PN} = "kuksa-val-env"
+ALTERNATIVE_LINK_NAME[kuksa-val-env] = "${sysconfdir}/default/kuksa-val"
+ALTERNATIVE_TARGET[kuksa-val-env] = "${sysconfdir}/default/kuksa-val.agl"
+
+RDEPENDS:${PN} += "kuksa-val"
diff --git a/recipes-connectivity/kuksa-val/kuksa-val-agl/00-agl_vss_overlay_2.2.json b/recipes-connectivity/kuksa-val/kuksa-val-agl/00-agl_vss_overlay_2.2.json
new file mode 100644
index 000000000..6cfdf5eee
--- /dev/null
+++ b/recipes-connectivity/kuksa-val/kuksa-val-agl/00-agl_vss_overlay_2.2.json
@@ -0,0 +1,81 @@
+{
+ "Vehicle": {
+ "children": {
+ "ADAS": {
+ "children": {
+ "CruiseControl": {
+ "children": {
+ "IsSet": {
+ "datatype": "boolean",
+ "description": "Indicates if cruise control speed is set. True = Enabled. False = Disabled.",
+ "type": "sensor",
+ "uuid": "65444a5d94dd45c59187f4179bf541ad"
+ }
+ }
+ }
+ }
+ },
+ "Cabin": {
+ "children": {
+ "Infotainment": {
+ "children": {
+ "Media": {
+ "children": {
+ "Action": {
+ "datatype": "string",
+ "description": "Tells if the media was",
+ "enum": [
+ "unknown",
+ "Stop",
+ "Play",
+ "FastForward",
+ "FastBackward",
+ "SkipForward",
+ "SkipBackward",
+ "NextSource"
+ ],
+ "type": "actuator",
+ "uuid": "0357aea525bf505981a14e4fc720094e"
+ }
+ }
+ },
+ "Navigation": {
+ "children": {
+ "State": {
+ "datatype": "string",
+ "description": "Navigation state",
+ "enum": [
+ "unknown",
+ "Active",
+ "Arrived",
+ "Stopped"
+ ],
+ "type": "sensor",
+ "uuid": "4c16a4aace5a418580c6370356d2acb9"
+ },
+ "ElapsedDistance": {
+ "datatype": "float",
+ "description": "Navigation elapsed distance",
+ "type": "sensor",
+ "unit": "km",
+ "uuid": "0bef606dcf5b4a75bfd7e5f3c68359ec"
+ }
+ }
+ },
+ "Cluster": {
+ "children": {
+ "Mode": {
+ "datatype": "boolean",
+ "description": "Cluster mode switch engaged",
+ "type": "actuator",
+ "uuid": "7df1649ebed447ef81bb6e92786514d9"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/recipes-connectivity/kuksa-val/kuksa-val-agl/kuksa-val.env b/recipes-connectivity/kuksa-val/kuksa-val-agl/kuksa-val.env
new file mode 100644
index 000000000..74a5f4e4d
--- /dev/null
+++ b/recipes-connectivity/kuksa-val/kuksa-val-agl/kuksa-val.env
@@ -0,0 +1 @@
+EXTRA_ARGS="--overlays /usr/share/kuksa-val/overlays"
diff --git a/recipes-connectivity/kuksa-val/kuksa-val/kuksa-val.service b/recipes-connectivity/kuksa-val/kuksa-val/kuksa-val.service
index 97ef66557..5467e9a47 100644
--- a/recipes-connectivity/kuksa-val/kuksa-val/kuksa-val.service
+++ b/recipes-connectivity/kuksa-val/kuksa-val/kuksa-val.service
@@ -4,7 +4,8 @@ After=network.target
[Service]
User=kuksa
-ExecStart=/usr/bin/kuksa-val-server
+EnvironmentFile=-/etc/default/kuksa-val
+ExecStart=/usr/bin/kuksa-val-server $EXTRA_ARGS
Restart=on-abort
[Install]
diff --git a/recipes-platform/packagegroups/packagegroup-agl-demo-cluster-support.bb b/recipes-platform/packagegroups/packagegroup-agl-demo-cluster-support.bb
index 8c3fe3b9d..a950ef408 100644
--- a/recipes-platform/packagegroups/packagegroup-agl-demo-cluster-support.bb
+++ b/recipes-platform/packagegroups/packagegroup-agl-demo-cluster-support.bb
@@ -13,4 +13,5 @@ RDEPENDS:${PN} += "\
packagegroup-agl-demo-platform \
tbtnavi \
cluster-demo-network-config \
+ kuksa-val-agl-demo-cluster \
"
diff --git a/recipes-platform/packagegroups/packagegroup-agl-ivi-services.bb b/recipes-platform/packagegroups/packagegroup-agl-ivi-services.bb
index 77f832bc0..d9e691bf7 100644
--- a/recipes-platform/packagegroups/packagegroup-agl-ivi-services.bb
+++ b/recipes-platform/packagegroups/packagegroup-agl-ivi-services.bb
@@ -9,5 +9,6 @@ PACKAGES = "\
RDEPENDS:${PN} += "\
kuksa-val \
+ kuksa-val-agl \
kuksa-dbc-feeder \
"