build: complete overhaul

Of course, most of it is in the sunxi-mali repository.

Signed-off-by: Luc Verhaegen <libv@skynet.be>