ksa242/gentoo-cubieboard-overlay — pull request #2 by spellbuilder (2014-05-06 13:30:01+00:00)
Title: Bunch of updates.

1) Added media-libs/mesa and x11-base/xorg-server ebuild, which are just copy of currently stable portage ones but with additional 'opengl' USE flag, so mesa goes not compile libGL anymore, and xorg-server does not build glx extension, which is libGL dependent. This is done, because mali driver does not provide support for OpenGL, and only for OpenGL ES. So this is done to ensure that no program will try to use simultaneously libGL from mesa and libGLES* from sunxi-mali package.
So into make.conf it is suggested to put USE="egl gles gles1 gles2 -opengl"
2) Updated xf86-video-fbturbo with selectable r3p2 git branch which provides much higher performance on A20 (cubieboard2). To use it you will need kernel with updated driver - currently only in one of ssvb/linux-sunxi branches, and not in mainstream yet. Also no ebuild for it present. I had to install it manually.
3) Some minor updates to u-boot-sunxi, so it compile properly with current version.
4) *Most important* Rewritten sunxi-mali ebuild, so it installs libraries manually, also it installs provided udev rules file into correct place by itself. And for a desert it also compiles and installs test executable to check that mali EGL is really working.
Btw, which board you have? My cubieboard2 on 1920x1080p60 DVI-D scores 122 points in glmark2 (gles2).

And I have problems with Firefox compilation. It looks like it incorrectly recognizes arm fpu's and fails on linking stage due to undefined references to neon-related stuff independently from my CFLAGS.

P.S. Latest r3p2 binary driver libEGL does not exports some structure, so if you have problems with _mali_clz_lut, then you need to follow workaround proposed by ssvb in https://groups.google.com/forum/#!msg/linux-sunxi/zx4gwC1QyMc/yzIhzANutmYJ