forked from RobertCNelson/stable-kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
system.sh.sample
55 lines (43 loc) · 1.29 KB
/
system.sh.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
#copy as "system.sh" and tweak for your system
ARCH=$(uname -m)
#Ubuntu Natty
#sudo apt-get install gcc-arm-linux-gnueabi
#Ubuntu Maverick:
#gcc-4.4
#sudo apt-get install gcc-4.4-arm-linux-gnueabi
#or gcc-4.5
#sudo apt-get install gcc-4.5-arm-linux-gnueabi
#Use CodeSourcery: http://www.codesourcery.com/sgpp/lite/arm/portal/subscription?@template=lite (GNU/Linux)
#Just download and extract...
if test "-$ARCH-" = "-armv7l-"
then
echo "Using: Native armv7l Compiler"
CC=
else
echo "Using: Cross Compiler"
#For ubuntu, if you apt-get the gcc-"version"-arm-linux-gnueabi from above..:
#CC=arm-linux-gnueabi-
#Test that user actually modified the above CC line:
if test "-$CC-" = "--"
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 25: #CC=arm-linux-gnueabi-"
exit
fi
fi
#Allow the usage of git to help create kernel patches
#GIT_MODE=1
#Use with Caution, mount locations can change... This define's SD/MMC card mount location for load_uImage.sh script.
#MMC=/dev/sde
#Old Stuff, Such as: Debian Lenny, Ubuntu Jaunty, Ubuntu Karmic need this:
#NO_DEVTMPS=1
#zImage to uImage
#OMAP3-4
#ZRELADDR=0x80008000
#mx51
#ZRELADDR=0x90008000
#mx53
#ZRELADDR=0x70008000