X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/1e75385146c070845e1c23806cab76948564ad15..a37c6af8d083a98e64bb6c30efccf60eb3f71a6d:/INSTALL/all_in_one.sh diff --git a/INSTALL/all_in_one.sh b/INSTALL/all_in_one.sh index f191645..a01eefd 100644 --- a/INSTALL/all_in_one.sh +++ b/INSTALL/all_in_one.sh @@ -2,36 +2,51 @@ VTOY_PATH=$PWD/.. +LOG=$VTOY_PATH/DOC/build.log +[ -f $LOG ] && rm -f $LOG + cd $VTOY_PATH/DOC -sh installdietlibc.sh +echo "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 + +echo "build grub2 ..." cd $VTOY_PATH/GRUB2 -sh buildgrub.sh || exit 1 +sh buildgrub.sh >> $LOG 2>&1 || exit 1 +echo "build ipxe ..." cd $VTOY_PATH/IPXE -sh buildipxe.sh || exit 1 +sh buildipxe.sh >> $LOG 2>&1 || exit 1 +echo "build edk2 ..." cd $VTOY_PATH/EDK2 -sh buildedk.sh || exit 1 +sh buildedk.sh >> $LOG 2>&1 || exit 1 -cd $VTOY_PATH/VtoyTool -sh build.sh || exit 1 -cd $VTOY_PATH/vtoyfat/fat_io_lib -sh buildlib.sh -cd $VTOY_PATH/vtoyfat -sh build.sh || exit 1 +# +# We almost rarely modifiy these code, so no need to build them everytime +# If you want to rebuild them, just uncomment them. +# -cd $VTOY_PATH/vtoygpt -sh build.sh || exit 1 +#cd $VTOY_PATH/VtoyTool +#sh build.sh || exit 1 -cd $VTOY_PATH/FUSEISO -sh build_libfuse.sh -sh build.sh +#cd $VTOY_PATH/vtoyfat/fat_io_lib +#sh buildlib.sh +#cd $VTOY_PATH/vtoyfat +#sh build.sh || exit 1 + +#cd $VTOY_PATH/vtoygpt +#sh build.sh || exit 1 + +#cd $VTOY_PATH/FUSEISO +#sh build_libfuse.sh +#sh build.sh -# We almost rarely modifiy these code, so no need to build them everytime # cd $VTOY_PATH/ExFAT # sh buidlibfuse.sh || exit 1 @@ -53,6 +68,13 @@ sh build.sh # sh build.sh cd $VTOY_PATH/INSTALL -sh ventoy_pack.sh || exit 1 + +if [ "$1" = "CI" ]; then + Ver=$(date +%m%d%H%M) + sed "s/VENTOY_VERSION=.*/VENTOY_VERSION=\"$Ver\"/" -i ./grub/grub.cfg +fi + +echo "packing ventoy-$Ver ..." +sh ventoy_pack.sh $1 >> $LOG 2>&1 || exit 1 echo -e '\n============== SUCCESS ==================\n'