summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--strata/rvi.morph11
-rw-r--r--strata/rvi/rvi_core.morph16
2 files changed, 27 insertions, 0 deletions
diff --git a/strata/rvi.morph b/strata/rvi.morph
new file mode 100644
index 00000000..12953115
--- /dev/null
+++ b/strata/rvi.morph
@@ -0,0 +1,11 @@
+name: rvi
+kind: stratum
+build-depends:
+- morph: strata/audio-bluetooth.morph
+- morph: strata/erlang.morph
+chunks:
+- name: rvi_core
+ morph: strata/rvi/rvi_core.morph
+ repo: upstream:rvi_core
+ ref: 9a3db2baecdddbfba8e8bfeb71038e4de6a44225
+ unpetrify-ref: v0.5.0
diff --git a/strata/rvi/rvi_core.morph b/strata/rvi/rvi_core.morph
new file mode 100644
index 00000000..c34f8a97
--- /dev/null
+++ b/strata/rvi/rvi_core.morph
@@ -0,0 +1,16 @@
+name: rvi_core
+kind: chunk
+build-system: manual
+build-commands:
+- |
+ make deps
+ make compile
+ make escript
+install-commands:
+- |
+ make DESTDIR="$DESTDIR" install
+ install -d "$DESTDIR"/usr/lib/systemd/system
+ install -m 0644 yocto_template/rvi.service "$DESTDIR"/usr/lib/systemd/system
+post-install-commands:
+- echo "genivi.org/node/$(cat /proc/sys/kernel/random/uuid)" > "$DESTDIR"/etc/opt/rvi/device_id
+- install -m 0644 priv/config/rvi_common.config "$DESTDIR"/etc/opt/rvi/rvi.config