Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/sh
KERNEL_VERSION="4.14.18"
KERNEL_SUFFIX="-sunxi"
cd "/usr/src/linux-headers-$KERNEL_VERSION-sunxi/mm"
wget https://raw.githubusercontent.com/torvalds/linux/master/mm/cma.h
cd -
git clone https://github.com/mripard/sunxi-mali.git
cd sunxi-mali
export CROSS_COMPILE=arm-linux-gnueabihf-
export KDIR="/lib/modules/$KERNEL_VERSION$KERNEL_SUFFIX/build"
./build.sh -r r6p2 -b
./build.sh -r r6p2 -i
depmod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment