]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - INSTALL/all_in_one.sh
Add BLOB list file and some missing build desc.
[Ventoy.git] / INSTALL / all_in_one.sh
index d87f713c583c8d1207259a3dd9d7c3bdc6610876..827c80bac146155ac44b7ea27f97657e3f2db27f 100644 (file)
@@ -1,32 +1,32 @@
 #!/bin/sh
 
 VTOY_PATH=$PWD/..
-LOGCON=$2
 
-logci() {
-    if [ -n "$LOGCON" ]; then
-        echo $* > $LOGCON
-    fi
+cilog() {
+    datestr=$(date +"%Y/%m/%d %H:%M:%S")
+    echo "$datestr $*"
 }
 
+LOG=$VTOY_PATH/DOC/build.log
+[ -f $LOG ] && rm -f $LOG
+
 cd $VTOY_PATH/DOC
-logci "prepare_env ..."
+cilog "prepare_env ..."
 sh prepare_env.sh
 
-export PATH=$PATH:/opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin:/opt/aarch64--uclibc--stable-2020.08-1/bin
-
+export PATH=$PATH:/opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin:/opt/aarch64--uclibc--stable-2020.08-1/bin:/opt/mips-loongson-gcc7.3-linux-gnu/2019.06-29/bin/:/opt/mips64el-linux-musl-gcc730/bin/
 
-logci "build grub2 ..."
+cilog "build grub2 ..."
 cd $VTOY_PATH/GRUB2
-sh buildgrub.sh || exit 1
+sh buildgrub.sh >> $LOG 2>&1 || exit 1
 
-logci "build ipxe ..."
+cilog "build ipxe ..."
 cd $VTOY_PATH/IPXE
-sh buildipxe.sh || exit 1
+sh buildipxe.sh >> $LOG 2>&1 || exit 1
 
-logci "build edk2 ..."
+cilog "build edk2 ..."
 cd $VTOY_PATH/EDK2
-sh buildedk.sh || exit 1
+sh buildedk.sh >> $LOG 2>&1 || exit 1
 
 
 
@@ -38,13 +38,10 @@ sh buildedk.sh || exit 1
 #cd $VTOY_PATH/VtoyTool
 #sh build.sh || exit 1
 
-#cd $VTOY_PATH/vtoyfat/fat_io_lib
+#cd $VTOY_PATH/vtoycli/fat_io_lib
 #sh buildlib.sh
 
-#cd $VTOY_PATH/vtoyfat
-#sh build.sh || exit 1
-
-#cd $VTOY_PATH/vtoygpt
+#cd $VTOY_PATH/vtoycli
 #sh build.sh || exit 1
 
 #cd $VTOY_PATH/FUSEISO
@@ -78,8 +75,7 @@ if [ "$1" = "CI" ]; then
     sed "s/VENTOY_VERSION=.*/VENTOY_VERSION=\"$Ver\"/"  -i ./grub/grub.cfg
 fi
 
-logci "packing ventoy-$Ver ..."
-sh ventoy_pack.sh $1 || exit 1
+cilog "packing ventoy-$Ver ..."
+sh ventoy_pack.sh $1 >> $LOG 2>&1 || exit 1
 
-logci "==== finish ===="
 echo -e '\n============== SUCCESS ==================\n'