Permalink
Browse files

Add script

Change-Id: I77de104d4b4d64548e9d940c9e540dee63e3c715
Signed-off-by: Josue Rivera <prbassplayer@gmail.com>
  • Loading branch information...
1 parent ca4b8c6 commit 804241421574e07cb8acdcfec284e80cf4a9d91f @PRJosh PRJosh committed Mar 27, 2014
Showing with 32 additions and 0 deletions.
  1. +32 −0 make.sh
View
32 make.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+# Stupid shell script to compile kernel, nothing fancy
+
+# Exports all the needed things Arch, SubArch and Cross Compile
+export ARCH=arm
+echo 'exporting Arch'
+export SUBARCH=arm
+echo 'exporting SubArch'
+#export CROSS_COMPILE=/home/prbassplayer/Honami/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-
+export CROSS_COMPILE=/home/prbassplayer/WIP4.4/prebuilt/linux-x86/toolchain/linaro-4.7-13.04/bin/arm-linux-gnueabihf-
+#export CROSS_COMPILE=/home/prbassplayer/WIP4.4/prebuilt/linux-x86/toolchain/linaro-4.8-13.06/bin/arm-linux-gnueabihf-
+echo 'exporting Cross Compile'
+
+# Make sure build is clean!
+echo 'Cleaning build'
+make clean
+
+# Generates a new .config and exists
+if [ "$1" = "config" ] ; then
+echo 'Making defconfig for '$2''
+make slim_"$2"_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 -j$1

0 comments on commit 8042414

Please sign in to comment.