summaryrefslogtreecommitdiff
path: root/genivi/strata/genivi-demo-platform
diff options
context:
space:
mode:
Diffstat (limited to 'genivi/strata/genivi-demo-platform')
-rw-r--r--genivi/strata/genivi-demo-platform/audiomanager-poc.morph10
-rw-r--r--genivi/strata/genivi-demo-platform/audiomanager@gdp.morph14
-rw-r--r--genivi/strata/genivi-demo-platform/browser-poc.morph29
-rw-r--r--genivi/strata/genivi-demo-platform/genivi-demo-platform-hmi.morph137
-rw-r--r--genivi/strata/genivi-demo-platform/mm-common.morph7
5 files changed, 197 insertions, 0 deletions
diff --git a/genivi/strata/genivi-demo-platform/audiomanager-poc.morph b/genivi/strata/genivi-demo-platform/audiomanager-poc.morph
new file mode 100644
index 00000000..6974705b
--- /dev/null
+++ b/genivi/strata/genivi-demo-platform/audiomanager-poc.morph
@@ -0,0 +1,10 @@
+name: audiomanager-poc
+kind: chunk
+pre-configure-commands:
+- sed 's:/opt/:/usr/lib/:g' $(git grep -l "/opt/")
+configure-commands:
+- cd AudioManagerPoC && qmake -makefile
+build-commands:
+- cd AudioManagerPoC && make
+install-commands:
+- cd AudioManagerPoC && make install INSTALL_ROOT="$DESTDIR"
diff --git a/genivi/strata/genivi-demo-platform/audiomanager@gdp.morph b/genivi/strata/genivi-demo-platform/audiomanager@gdp.morph
new file mode 100644
index 00000000..d77d0e68
--- /dev/null
+++ b/genivi/strata/genivi-demo-platform/audiomanager@gdp.morph
@@ -0,0 +1,14 @@
+name: audiomanager@gdp
+kind: chunk
+configure-commands:
+- |
+ cmake -DWITH_PULSE_ROUTING_PLUGIN=ON \
+ -DWITH_PULSE_CONTROL_PLUGIN=ON \
+ -DWITH_ENABLED_IPC=DBUS \
+ -DWITH_DATABASE_STORAGE=OFF \
+ -DWITH_DLT=OFF \
+ -DCMAKE_INSTALL_PREFIX="$PREFIX"
+build-commands:
+- make
+install-commands:
+- make DESTDIR="$DESTDIR" install
diff --git a/genivi/strata/genivi-demo-platform/browser-poc.morph b/genivi/strata/genivi-demo-platform/browser-poc.morph
new file mode 100644
index 00000000..1ca23d40
--- /dev/null
+++ b/genivi/strata/genivi-demo-platform/browser-poc.morph
@@ -0,0 +1,29 @@
+name: browser-poc
+kind: chunk
+description: The GENIVI browser proof-of-concept for the GENIVI Demo Platform.
+configure-commands:
+- qmake -d -r browser-poc.pro
+build-commands:
+- make all
+install-commands:
+- make INSTALL_ROOT="$DESTDIR" install
+- mkdir -p "$DESTDIR/usr/lib/systemd/user"
+- |
+ cat >"$DESTDIR/usr/lib/systemd/user/browser.service" <<EOF
+ [Unit]
+ Description=Genivi Browser PoC service
+ Requires=dbus.service
+
+ [Service]
+ ExecStart=/usr/lib/browser-poc/browser/browser
+ EOF
+- |
+ cat >"$DESTDIR/usr/lib/systemd/user/demoui.service" <<EOF
+ [Unit]
+ Description=Genivi Browser PoC demoui
+ Requires=browser.service
+
+ [Service]
+ Environment=LD_PRELOAD=/usr/lib/libEGL.so
+ ExecStart=/usr/lib/browser-poc/demoui/demoui
+ EOF
diff --git a/genivi/strata/genivi-demo-platform/genivi-demo-platform-hmi.morph b/genivi/strata/genivi-demo-platform/genivi-demo-platform-hmi.morph
new file mode 100644
index 00000000..ae3d645a
--- /dev/null
+++ b/genivi/strata/genivi-demo-platform/genivi-demo-platform-hmi.morph
@@ -0,0 +1,137 @@
+name: genivi-demo-platform-hmi
+kind: chunk
+pre-configure-commands:
+- |
+ sed -i 's/sd_journal_print(LOG_DEBUG,/printf("DEBUG: "/' $(find . -name '*.cpp' -o -name '*.h')
+- |
+ sed -i 's/sd_journal_print(LOG_INFO,/printf("INFO: "/' $(find . -name '*.cpp' -o -name '*.h')
+- |
+ sed -i 's/sd_journal_print(LOG_ERR,/printf("ERR: "/' $(find . -name '*.cpp' -o -name '*.h')
+configure-commands:
+- autoreconf -vfi && ./configure --prefix="$PREFIX"
+- cd app/gdp-hmi-background && qmake
+- cd app/gdp-hmi-launcher2 && qmake
+- cd app/gdp-hmi-panel && qmake
+- cd app/qml-example && qmake
+build-commands:
+- make
+- cd app/gdp-hmi-background && make
+- cd app/gdp-hmi-launcher2 && make
+- cd app/gdp-hmi-panel && make
+- cd app/qml-example && make
+install-commands:
+- make DESTDIR="$DESTDIR" install
+- cd app/gdp-hmi-background && make INSTALL_ROOT="$DESTDIR" install
+- cd app/gdp-hmi-launcher2 && make INSTALL_ROOT="$DESTDIR" install
+- cd app/gdp-hmi-panel && make INSTALL_ROOT="$DESTDIR" install
+- cd app/qml-example && make INSTALL_ROOT="$DESTDIR" install
+- mkdir -p "$DESTDIR"/usr/share/gdp
+- cp -a app/gdp-hmi-background/assets/* "$DESTDIR"/usr/share/gdp/
+- cp -a app/gdp-hmi-launcher2/content/images/* "$DESTDIR"/usr/share/gdp/
+- cp -a app/gdp-hmi-panel/assets/* "$DESTDIR"/usr/share/gdp/
+- mkdir -p "$DESTDIR/usr/lib/systemd/user"
+- mkdir -p "$DESTDIR/usr/lib/systemd/user/default.target.wants"
+- |
+ cat >"$DESTDIR/usr/lib/systemd/user/gdp-hmi-launcher2.service" <<EOF
+ [Unit]
+ Description=GENIVI Demo Platform HMI - Launcher2
+ Requires=gdp-hmi-controller.service
+
+ [Service]
+ Environment=LD_PRELOAD=/usr/lib/libEGL.so
+ ExecStart=/usr/bin/gdp-hmi-launcher2
+
+ [Install]
+ WantedBy=default.target
+ EOF
+- cd "$DESTDIR/usr/lib/systemd/user/default.target.wants" && ln -s ../gdp-hmi-launcher2.service .
+- |
+ cat >"$DESTDIR/usr/lib/systemd/user/gdp-hmi-background.service" <<EOF
+ [Unit]
+ Description=GENIVI Demo Platform HMI - Background
+ Requires=gdp-hmi-controller.service
+ After=gdp-hmi-controller.service
+
+ [Service]
+ Environment=LD_PRELOAD=/usr/lib/libEGL.so
+ ExecStart=/usr/bin/gdp-hmi-background
+
+ [Install]
+ WantedBy=default.target
+ EOF
+- cd "$DESTDIR/usr/lib/systemd/user/default.target.wants" && ln -s ../gdp-hmi-background.service .
+- |
+ cat >"$DESTDIR/usr/lib/systemd/user/gdp-hmi-controller.service" <<EOF
+ [Unit]
+ Description=GENIVI Demo Platform HMI - Controller
+ Requires=dbus.service
+ After=dbus.service weston.service
+
+ [Service]
+ ExecStart=/usr/bin/gdp-hmi-controller
+ Restart=always
+ RestartSec=2
+ TimeoutStopSec=1
+
+ [Install]
+ WantedBy=default.target
+ EOF
+- cd "$DESTDIR/usr/lib/systemd/user/default.target.wants" && ln -s ../gdp-hmi-controller.service .
+- |
+ cat >"$DESTDIR/usr/lib/systemd/user/gdp-hmi-panel.service" <<EOF
+ [Unit]
+ Description=GENIVI Demo Platform HMI - Panel
+ Requires=gdp-hmi-controller.service
+ After=gdp-hmi-background.service
+ After=EGLWLMockNavigation.service
+ After=EGLWLInputEventExample.service
+ After=demoui.service
+ After=qml-example.service
+
+ [Service]
+ Environment=LD_PRELOAD=/usr/lib/libEGL.so
+ ExecStart=/usr/bin/gdp-hmi-panel
+
+ [Install]
+ WantedBy=default.target
+ EOF
+- mkdir -p "$DESTDIR/usr/lib/systemd/user/EGLWLMockNavigation.service.wants"
+- cd "$DESTDIR/usr/lib/systemd/user/EGLWLMockNavigation.service.wants" && ln -s ../gdp-hmi-panel.service .
+- mkdir -p "$DESTDIR/usr/lib/systemd/user/EGLWLInputEventExample.service.wants"
+- cd "$DESTDIR/usr/lib/systemd/user/EGLWLInputEventExample.service.wants" && ln -s ../gdp-hmi-panel.service .
+- mkdir -p "$DESTDIR/usr/lib/systemd/user/demoui.service.wants"
+- cd "$DESTDIR/usr/lib/systemd/user/demoui.service.wants" && ln -s ../gdp-hmi-panel.service .
+- mkdir -p "$DESTDIR/usr/lib/systemd/user/qml-example.service.wants"
+- cd "$DESTDIR/usr/lib/systemd/user/qml-example.service.wants" && ln -s ../gdp-hmi-panel.service .
+- |
+ cat >"$DESTDIR/usr/lib/systemd/user/EGLWLMockNavigation.service" <<EOF
+ [Unit]
+ Description=EGL Wayland Mock Navigation
+
+ [Service]
+ ExecStart=/usr/bin/EGLWLMockNavigation -surface 10
+ EOF
+- |
+ cat > "$DESTDIR/usr/lib/systemd/user/EGLWLInputEventExample.service" <<EOF
+ [Unit]
+ Description=EGL Wayland Input Event Example
+
+ [Service]
+ ExecStart=/usr/bin/EGLWLInputEventExample --surface=5100
+ EOF
+- |
+ cat > "$DESTDIR/usr/lib/systemd/user/qml-example.service" <<EOF
+ [Unit]
+ Description=Genivi QML Example
+
+ [Service]
+ ExecStart=/usr/bin/qml-example
+ EOF
+- |
+ cat > "$DESTDIR/usr/lib/systemd/user/PowerOff.service" <<EOF
+ [Unit]
+ Description=HMI poweroff
+
+ [Service]
+ ExecStart=/bin/systemctl poweroff
+ EOF
diff --git a/genivi/strata/genivi-demo-platform/mm-common.morph b/genivi/strata/genivi-demo-platform/mm-common.morph
new file mode 100644
index 00000000..4f416e7c
--- /dev/null
+++ b/genivi/strata/genivi-demo-platform/mm-common.morph
@@ -0,0 +1,7 @@
+name: mm-common
+kind: chunk
+description: Common build files of the GNOME C++ bindings.
+build-system: autotools
+configure-commands:
+- ./autogen.sh
+- ./configure --prefix="$PREFIX"