Browse Source

Fix bug of zry-build.sh.

ZRY 1 year ago
parent
commit
fdc52d851a
2 changed files with 12 additions and 1 deletions
  1. 2 0
      .gitignore
  2. 10 1
      zry-build.sh

+ 2 - 0
.gitignore

@@ -10,3 +10,5 @@ toybox
 toybox_unstripped
 
 !.config
+
+*.log

+ 10 - 1
zry-build.sh

@@ -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
 		;;