#! /bin/bash
echo "Configure the kernel"
until
echo "1.make the am335x_lierda_defconfig"
echo "2.make the menuconfig( Boot options -> Kernel command line type (root=/dev/mmcblk0p2 rootwait console=ttyo0,115200) )"
echo "3.make the dtb"
echo "4.make the zImage"
echo "5.make the uImage"
echo "6.make the distclean"
echo "7.make the modules"
echo "8.quit"
read input
test $input = 8
do
case $input in
1)make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am335x_lierda_defconfig;;
2)make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig;;
3)make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am335x-lierda.dtb;;
4)make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage;;
5)make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LOADADDR=0x80008000 uImage;;
6)make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean;;
7)make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4 modules;;
8)echo"quit";;
esac
done
Linux kernel编译
最新推荐文章于 2024-05-03 17:25:10 发布