#!/bin/bash # Stupid shell script to compile kernel, nothing fancy ID="`pwd`" # Exports all the needed things Arch, SubArch and Cross Compile export ARCH=arm echo 'exporting Arch' export SUBARCH=arm echo 'exporting SubArch' # Export toolchain, use android default #export CROSS_COMPILE=/home/sub77/tc/linaro-4.9-15.05/bin/arm-linux-gnueabihf- export CROSS_COMPILE=/home/sub77/du/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi- # Make sure build is clean! echo 'Cleaning build' make clean # Generates a new .config and exists if [ "$1" = "config" ] ; then echo 'Making defconfig for matissewifi' make slim_matissewifi_defconfig exit fi # Exports kernel local version? Not sure yet. #echo 'Exporting kernel version' #export LOCALVERSION='SlimTest_1.0' # Lets go! echo 'Lets start!' make -j12