From 5b20f758549ff165d214b67a3d476fcda6db1c1e Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Thu, 15 Oct 2015 16:22:34 +0000 Subject: Set default WESTON_NATIVE_BACKEND for genivi weston Change-Id: Iefa6aaa78a111aac5594912d2366bf0f9e28ea87 --- strata/weston-genivi/weston.morph | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'strata') diff --git a/strata/weston-genivi/weston.morph b/strata/weston-genivi/weston.morph index 810ce5e9..71704948 100644 --- a/strata/weston-genivi/weston.morph +++ b/strata/weston-genivi/weston.morph @@ -5,6 +5,15 @@ 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 \ -- cgit v1.2.1