linux kernel uboot編譯指令碼
阿新 • • 發佈:2018-12-25
kernel編譯指令碼
#! /bin/bash
#doc ref
#http://processors.wiki.ti.com/index.php/Linux_Core_U-Boot_User's_Guide#Building_MLO_and_u-boot
# do NOT add linux-devkit to PATH
#export PATH=$HOME/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/bin:$PATH
export ARCH=arm
# set CROSS_COMPILE to include the path to the toolchain
#export CROSS_COMPILE=arm-linux-gnueabihf-
export CROSS_COMPILE=/usr/local/arm/cross/am335xt3/devkit/bin/arm-arago-linux-gnueabi-
# delete previous binaries
#make distclean
# pass in defconfig file
#make tisdk_am335x-evm_defconfig
# make the kernel
#make am335x-boneblack.dtb
# make the kernel
#make zImage -j8
echo "Configure the u-boot"
echo "1.make distclean "
echo "2.make tisdk_am335x-evm_defconfig"
echo "3.make am335x-boneblack.dtb"
echo "4.make menuconfig"
echo "5.make uImage -j8"
echo "6.make modules -j8"
echo "7.make all"
echo "8.quit"
echo "9.make savedefconfig"
read input
#test input=8docaseinput in
echo "input: $input"
#test input=8
until [ $input = 8 ]
do
case $input in
1)
make distclean;rm -rf ./am335x_boneblack;;
2)
make am335x_boneblack_defconfig;;
3)
make am335x-boneblack.dtb;;
4)
make menuconfig;;
5)
make uImage -j8;;
6)
make modules -j8;;
7)
make distclean;make am335x_boneblack_defconfig;make am335x-boneblack.dtb;make zImage -j8;make modules -j8;;
8)
echo "quit";;
9)make savedefconfig;echo "you save defconfig by 'cp defconfig arch/arm/configs/xxx_defconfig'";;
esac
echo "1.make distclean "
echo "2.make tisdk_am335x-evm_defconfig"
echo "3.make am335x-boneblack.dtb"
echo "4.make menuconfig"
echo "5.make uImage -j8"
echo "6.make modules -j8"
echo "7.make all"
echo "8.quit"
echo "9.make savedefconfig"
read input
done