From 77bb487ee42a9eb15f4d8650e5488cf9d901e722 Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Wed, 8 Oct 2014 12:02:20 +0200 Subject: [PATCH] generic-adaptation: add mesa support for vmware Change-Id: I4b8b482c3ca3f075c251f2bf40eada7544512768 Bug-Tizen: TC-1043/part Signed-off-by: Philippe Coval --- Makefile | 1 + src/generic-adaptation/Makefile | 3 +++ src/generic-adaptation/generic-adaptation.sh | 13 +++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 src/generic-adaptation/Makefile create mode 100644 src/generic-adaptation/generic-adaptation.sh diff --git a/Makefile b/Makefile index 4db9456..e990878 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ install: install -d ${DESTDIR}/usr/share/image-configurations/generic/scripts install -m 644 patterns/*.yaml ${DESTDIR}/usr/share/package-groups/generic install -D scripts/* ${DESTDIR}/usr/share/image-configurations/generic/scripts + make -C src/generic-adaptation $@ test: merge-patterns -o output/ -p patterns -s diff --git a/src/generic-adaptation/Makefile b/src/generic-adaptation/Makefile new file mode 100644 index 0000000..69b512b --- /dev/null +++ b/src/generic-adaptation/Makefile @@ -0,0 +1,3 @@ +install: generic-adaptation.sh + install -d ${DESTDIR}/etc/profile.d/ + install $< ${DESTDIR}/etc/profile.d/ diff --git a/src/generic-adaptation/generic-adaptation.sh b/src/generic-adaptation/generic-adaptation.sh new file mode 100644 index 0000000..9a2fabb --- /dev/null +++ b/src/generic-adaptation/generic-adaptation.sh @@ -0,0 +1,13 @@ +do_gallium=true + +/usr/sbin/lspci \ + | grep 'VGA compatible controller: VMware' >/dev/null 2>&1 \ + || do_gallium=false + +if $do_gallium ; then + EGL_PLATFORM=gallium + export EGL_PLATFORM + + EGL_DRIVER=egl_gallium + export EGL_DRIVER +fi -- 2.7.4