diff options
author | James Thomas <james.thomas@codethink.co.uk> | 2015-05-21 14:57:07 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-10-13 16:45:02 +0000 |
commit | 4c3b1da81d25e3174065d7494deb97fd62ee49e3 (patch) | |
tree | edfe91e5178d9927015df3793bb98b526d38aaf3 /strata/weston-genivi/weston-gdp.morph | |
parent | 4e78fb19307a24b2fa82decb91832828c935f1a6 (diff) | |
download | definitions-4c3b1da81d25e3174065d7494deb97fd62ee49e3.tar.gz |
Use weston-genivi-gdp and create a systemd service to start weston
Diffstat (limited to 'strata/weston-genivi/weston-gdp.morph')
-rw-r--r-- | strata/weston-genivi/weston-gdp.morph | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/strata/weston-genivi/weston-gdp.morph b/strata/weston-genivi/weston-gdp.morph new file mode 100644 index 00000000..71f3c84d --- /dev/null +++ b/strata/weston-genivi/weston-gdp.morph @@ -0,0 +1,43 @@ +name: weston-gdp +kind: chunk +description: weston compositor +build-system: autotools +configure-commands: +- autoreconf -ivf +- | + cpu=$(echo $TARGET | cut -d '-' -f 1) + case "$cpu" in + armv7lhf) + export WESTON_NATIVE_BACKEND=drm-backend.so + ;; + *) + export WESTON_NATIVE_BACKEND=fbdev-backend.so + ;; + esac + LDFLAGS='-L/lib64 -lrt' \ + $ + ./configure --prefix=$PREFIX --disable-xwayland \ + --disable-x11-compositor \ + --disable-wayland-compositor --enable-egl \ + --enable-clients --enable-demo-clients-install --enable-fbdev-compositor +post-install-commands: +- install -d "$DESTDIR/usr/share/weston" +- install -m 0644 data/*.png "$DESTDIR/usr/share/weston/" +- sed -i 's/hmi-controller.so/ivi-controller.so/' ivi-shell/weston.ini +- install -d "$DESTDIR/root/.config" +- install -m 0644 ivi-shell/weston.ini "$DESTDIR/root/.config/weston.ini" +- mkdir -p "$DESTDIR/lib/systemd/system/multi-user.target.wants/" +- | + cat > "$DESTDIR/lib/systemd/system/weston.service" <<EOF + [Unit] + Description=Weston reference Wayland compositor + After=dbus.service + + [Service] + ExecStart=/usr/bin/weston-launch -u root -- --log=/tmp/weston.log + ExecStop=/usr/bin/killall -s KILL weston + + [Install] + WantedBy=multi-user.target + EOF +- cd "$DESTDIR/lib/systemd/system/multi-user.target.wants/" && ln -s ../weston.service . |