Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement