diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-10-15 16:24:20 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-10-15 17:18:28 +0000 |
commit | ffc75a3d6a1f5ae35b2c526ad168917812b35405 (patch) | |
tree | 6f25d8b6f3c7f7583cf7110b60ee17d79d3f7f22 /strata/weston-genivi | |
parent | 5b20f758549ff165d214b67a3d476fcda6db1c1e (diff) | |
download | definitions-baserock/pedroalvarez/gdp-rebase.tar.gz |
Add GENIVI Demo Platform support (strata/systems/cluster)baserock/pedroalvarez/gdp-rebase
Change-Id: I1d8b72d19ffafcccdea0436ee7f5283acbc6f535
Diffstat (limited to 'strata/weston-genivi')
-rw-r--r-- | strata/weston-genivi/weston-gdp.morph | 42 |
1 files changed, 42 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..17c38d5a --- /dev/null +++ b/strata/weston-genivi/weston-gdp.morph @@ -0,0 +1,42 @@ +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/etc/xdg/weston" +- install -m 0644 ivi-shell/weston.ini "$DESTDIR/etc/xdg/weston/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 . |