#------------------------------------------------------------
#------------------------------------------------------------
This is a sunxi-cedar driver port from linux-sunxi 3.4 kernel module to CHIP-linux 4.4, enabling "/dev/cedar_dev" entry for use with gst-plugin-cedar and ffmpeg-cedrus amongst others.
#Get prerequisites
apt-get install git build-essential fakeroot kernel-package zlib1g-dev libncurses5-dev lzop
apt-get install gcc-arm-linux-gnueabihf binutils-arm-linux-gnueabihf
#Prepare Linux kernel tree
git clone --single-branch --branch debian/4.4.13-ntc-mlc https://github.com/NextThingCo/CHIP-linux.git
cd CHIP-linux/
export KERNEL_SRC=$(pwd)
export LOCALVERSION="-ntc-mlc"
make ARCH=arm multi_v7_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j$(($(nproc)+1)) INSTALL_MOD_PATH=$WORKSPACE modules
#Build sunxi_cedar_mod.ko module
git clone https://github.com/mzakharo/sunxi_cedar.git
cd sunxi_cedar/
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j$(($(nproc)+1))