Skip to content

Instantly share code, notes, and snippets.

Created January 5, 2013 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4462671 to your computer and use it in GitHub Desktop.
Save anonymous/4462671 to your computer and use it in GitHub Desktop.
#!/bin/bash
cd /home/linaro/malibuild
# default branch is r3p0-04rel0
git clone https://github.com/linux-sunxi/xf86-video-mali.git
# default branch is r3p0-04rel0
git clone https://github.com/linux-sunxi/libump.git
git clone https://github.com/linux-sunxi/mali-libs.git
cd mali-libs
# you can also select framebuffer instead of x11 if you want.
if [ "x$1" = "x" ]; then
make x11 || exit 1
else
if [ "x$2" = "x" ]; then
make $1 || exit 1
else
make $1 VERSION=$2 || exit 1
fi
fi
make headers
cd ../libump
# if you have 'libdri2 not found': apt-get install libdri2-dev
make
rm -rf /usr/include/ump
make install
if [ "x$1" = "xx11" ]; then
# xf86-video-mali needs autoreconf to build
cd ../xf86-video-mali
autoreconf -vi
# if you have different rootfs layout, fix paths to yours
./configure --prefix=/usr
make
make install
fi
#cp xorg.conf /usr/share/X11/xorg.conf.d/99-mali400.conf
# restart your X server
# dont forget to 'chmod 777 /dev/ump' and 'chmod 777 /dev/mali' on each boot, or create a rule for udev for this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment