|
@@ -11,7 +11,11 @@ echo "Action: "$1
|
|
|
echo "=========================="
|
|
|
|
|
|
build(){
|
|
|
- time make $T_PARALLELS zImage dtbs ARCH=$T_ARCH CROSS_COMPILE=$T_CROSS_COMPILE 2>&1 | tee make.log
|
|
|
+ time make $T_PARALLELS ARCH=$T_ARCH CROSS_COMPILE=$T_CROSS_COMPILE 2>&1 | tee make.log
|
|
|
+}
|
|
|
+
|
|
|
+build_root(){
|
|
|
+ time make $T_PARALLELS ARCH=$T_ARCH CROSS_COMPILE=$T_CROSS_COMPILE 2>&1 | tee make.log
|
|
|
}
|
|
|
|
|
|
menuconfig(){
|
|
@@ -26,6 +30,7 @@ help(){
|
|
|
echo "Usage: ./zry-build.sh <command>"
|
|
|
echo "Commands:"
|
|
|
echo " b | build = build target"
|
|
|
+ echo " r | br | buildroot = build linux rootfs"
|
|
|
echo " m | mc | menuconfig = menuconfig"
|
|
|
echo " clean = clean"
|
|
|
echo " any thing other will print this help"
|
|
@@ -35,6 +40,10 @@ case $1 in
|
|
|
b|build)
|
|
|
build
|
|
|
;;
|
|
|
+
|
|
|
+ r|br|buildroot)
|
|
|
+ build_root
|
|
|
+ ;;
|
|
|
m|mc|menuconfig)
|
|
|
menuconfig
|
|
|
;;
|