Advertisement
Guest User

rebmali

a guest
Jan 1st, 2013
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.15 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3.  
  4. cd /home/linaro/malibuild
  5. # default branch is r3p0-04rel0
  6. git clone https://github.com/linux-sunxi/xf86-video-mali.git
  7. # default branch is r3p0-04rel0
  8. git clone https://github.com/linux-sunxi/libump.git
  9. git clone https://github.com/linux-sunxi/mali-libs.git
  10. cd mali-libs
  11. # you can also select framebuffer instead of x11 if you want.
  12.  
  13.  
  14. if [ "x$1" = "x" ]; then
  15. make x11 || exit 1
  16. else
  17.         if [ "x$2" = "x" ]; then
  18.                 make $1  || exit 1
  19.         else
  20.                 make $1 VERSION=$2  || exit 1
  21.         fi
  22. fi
  23. make headers
  24. cd ../libump
  25. # if you have 'libdri2 not found': apt-get install libdri2-dev
  26. make
  27. rm -rf /usr/include/ump
  28. make install
  29. if [ "x$1" = "xx11" ]; then
  30.         # xf86-video-mali needs autoreconf to build
  31.         cd ../xf86-video-mali
  32.         autoreconf -vi
  33.         # if you have different rootfs layout, fix paths to yours
  34.         ./configure --prefix=/usr
  35.         make
  36.         make install
  37. fi
  38.  
  39. #cp xorg.conf /usr/share/X11/xorg.conf.d/99-mali400.conf
  40. # restart your X server
  41. # 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