Newer
Older
#!/bin/bash
#copy as "system.sh" and tweak for your system
ARCH=$(uname -m)
###ADVANCED, OPTIONAL: gcc version override (useful for gcc/kernel regressions)
#GCC_OVERRIDE="gcc-4.4"
if [ "x${ARCH}" == "xarmv7l" ] ; then
echo "Debug: using native armv7l gcc Compiler"
CC=
echo "Debug: using Cross Compiler"
#CC=arm-linux-gnueabi-
#Test that user actually modified the above CC line:
if [ "x${CC}" == "x" ] ; then
echo ""
echo "Error: You haven't setup the Cross Compiler (CC variable) in system.sh"
echo ""
echo "with a (sane editor) open system.sh and modify the commented Line 14: #CC=arm-linux-gnueabi-"
echo ""
echo "If you need hints on installing an ARM GCC Cross ToolChain, view README file"
echo ""
exit
fi
GCC="gcc"
if [ "x${GCC_OVERRIDE}" != "x" ] ; then
GCC="${GCC_OVERRIDE}"
fi
GCC_TEST=$(LC_ALL=C ${CC}${GCC} -v 2>&1 | grep "Target:" | grep arm || true)
GCC_REPORT=$(LC_ALL=C ${CC}${GCC} -v 2>&1 || true)
if [ "x${GCC_TEST}" == "x" ] ; then
echo ""
echo "Error: The GCC ARM Cross Compiler you setup in system.sh (CC variable)."
echo "Doesn't seem to be valid for ARM, double check it's location, or that"
echo "you chose the correct GCC Cross Compiler."
echo ""
echo "Output of: ${CC}${GCC} -v"
echo "${GCC_REPORT}"
echo ""
exit
fi
Robert Nelson
committed
##This script will clone torvalds linux git tree from kernel.org. From this git tree
##this script can generate a prinstine starting point before running the patch.sh script.
Robert Nelson
committed
##For most users, the default will work fine, for other kernel developers who have
##already cloned torvalds tree, and would like to safe file space, just define LINUX_GIT in this file.
##
##git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git ${HOME}/
#
#LINUX_GIT=${HOME}/linux-stable/
###OPTIONAL: (REQUIRED FOR RUNNING: ./tools/install_image.sh)
##Since 2.6.39?, it's now possible to build a Linux Kernel for devices that have
##different physical address of the kernel entry point or "ZRELADDR". This also means
##these scripts only create zImage's, if you'd like uImage, run mkimage yourself, or use
##the ./tools/load_uImage.sh to load the uImage on a MMC card.
Robert Nelson
committed
#ZRELADDR=0x80008000
Robert Nelson
committed
#ZRELADDR=0x90008000
Robert Nelson
committed
#ZRELADDR=0x70008000
###ADVANCED: Allow the script to build uImage's directly, so-far safe for TI OMAP, but not Freescale..
#BUILD_UIMAGE=1
Robert Nelson
committed
###OPTIONAL: (REQUIRED FOR RUNNING: tools/install_image.sh )
##Note: This operates on raw disks, NOT PARTITIONS
##WRONG: MMC=/dev/mmcblk0p1
##CORRECT: MMC=/dev/mmcblk0
##WRONG: MMC=/dev/sde1
##CORRECT: MMC=/dev/sde
#MMC=/dev/sde
###ADVANCED: Secret Sauce Patches:
##Have some secret sauce, you dont want to share with the community??
##
##It'll look specifically for *.patch files... Doesn't care about order/etc.. And I don't care about enhancing it.. ;)
#LOCAL_PATCH_DIR=/full/path/to/dir/
###ADVANCED: Pull in Torvalds current master tree before applying local patchset
#This is very useful during an intial 'rc0' merge.
#It is never supported... Enable at your own risk
#LATEST_GIT=1
###ADVANCED: enable DEBUG_SECTION_MISMATCH
#http://cateee.net/lkddb/web-lkddb/DEBUG_SECTION_MISMATCH.html
#DEBUG_SECTION=1