diff --git a/CrossCompile.sh b/CrossCompile.sh
new file mode 100755
index 0000000..021beb2
--- /dev/null
+++ b/CrossCompile.sh
@@ -0,0 +1,35 @@
+#! /bin/bash
+#
+#
+
+WRKDIR=`pwd`
+CMDDIR=`dirname $0`
+cd $CMDDIR
+
+TOOLCHAIN=`grep BR2_HOST_DIR .config | awk -F\= -F\" '{print $2}'`
+echo $TOOLCHAIN
+
+if [[ $TOOLCHAIN = *\$\(BASE_DIR\)* ]]; then
+	export SYSROOTBIN=`readlink -f $CMDDIR`/output/host/usr/bin/
+else
+	export SYSROOTBIN=$TOOLCHAIN/usr/bin
+fi
+
+export PATH=$PATH:$SYSROOTBIN
+
+export CROSS_COMPILE=i586-buildroot-linux-gnu-
+export ARCH=arm
+export KERNELDIR=`pwd`/output/build/linux-linux-4.4.y
+export BB_KERNEL_SOURCES=$KERNELDIR
+export SYSROOT=`grep BR2_HOST_DIR .config | awk -F\= -F\" '{print $2}'`/usr/i586-buildroot-linux-gnu/sysroot
+export CC_FULLPATH="${SYSROOTBIN}${CROSS_COMPILE}"
+export CC=${CROSS_COMPILE}gcc
+export CXX=${CROSS_COMPILE}g++
+
+cd $WRKDIR
+if [ $# -eq "0" ] 
+then
+PROMPT_COMMAND='PS1="\[\033[0;31m\]CROSS CC:\[\033[0;32m\]$PS1";unset PROMPT_COMMAND' bash ; reset
+else
+$1
+fi
