-
Notifications
You must be signed in to change notification settings - Fork 1
/
uboot_make
executable file
·37 lines (30 loc) · 964 Bytes
/
uboot_make
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
echo ============================
echo -- run u-boot build
echo ----------------------------
echo -- setup toolchain
#PATH=$PATH:/opt/eldk-5.4/armv7a/sysroots/i686-eldk-linux/usr/bin:/opt/eldk-5.4/armv7a/sysroots/i686-eldk-linux/usr/bin/armv7a-vfp-neon-linux-gnueabi
#export PATH
#CROSS_COMPILE=armv7a-
CROSS_COMPILE="/opt/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-"
export CROSS_COMPILE
echo ----------------------------
echo -- make distclean
make distclean
echo ----------------------------
echo -- delete old u-boot* files
rm -v u-boot*
echo ----------------------------
if [ "$1" = "nand" ]
then
echo "configure nand support"
make am335x_dhcom_nand_defconfig
else
echo "configure emmc support"
make am335x_dhcom_emmc_defconfig
fi
echo -- make u-boot
make -j5 all > u-boot.txt
echo make messages: u-boot.txt
echo ----------------------------
echo -- make u-boot done
echo ============================