-
Notifications
You must be signed in to change notification settings - Fork 0
/
go_uImage.sh
executable file
·53 lines (40 loc) · 1.32 KB
/
go_uImage.sh
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
#!/bin/sh
#rm linux
#ln -s linux-beagle-xm/ linux
#ln -s linux-beagle-xm_from_vasya/linux-beagle-xm/ linux
#ln -s linux-3.2.51/ linux
#ln -s linux-3.0.1/ linux
set -e
#export PATH=$PATH:$(pwd -P)/u-boot/tools
export PATH=$PATH:$(pwd -P)/../../U-Boot/u-boot/tools
export ARCH=arm
#export CROSS_COMPILE=$(cd ../..; pwd -P)/openembedded/bin/arm-angstrom-linux-gnueabi-
#export CROSS_COMPILE=$(cd ../..; pwd -P)/openembedded_4.6.3/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-
#export CROSS_COMPILE=$(cd ../..; pwd -P)/arm-2013.05-24/bin/arm-none-linux-gnueabi-
export CROSS_COMPILE=$(pwd -P)/../../Compilers/arm-2010q1-202/bin/arm-none-linux-gnueabi-
is_zImage=0
if test -z "$@"; then
is_zImage=1
fi
#cp -f -T .config_2011.10.19 linux/.config;
for k in $@; do
case $k in
(zImage) is_zImage=1;
# (oldconfig) cp -f -T config20091228 linux/.config;;
# (oldconfig) cp -f -T config20100408 linux/.config;;
# (oldconfig) cp -f -T config20100527 linux/.config;;
# (oldconfig) cp -f -T .config linux/.config;;
# (?);;
esac;
done
#cd linux
#make distclean
#make clean;
make -j5 ARCH=${ARCH} CROSS_COMPILE=${CROSS_COMPILE} uImage
#if [ "${is_zImage}" -eq "1" ]; then
# cp -f -T ./arch/arm/boot/zImage ../mkkernel/zImage
# cd ../mkkernel
# ./mkkernel.sh
# cp -f -T uImage ../../tftpboot/uImage
#fi
#make menuconfig