X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/85f6f3213f81e0b32b0698fc51998540a91cc159..f26a927b3e2acf16820d118d5fc13b5dacbd122a:/INSTALL/all_in_one.sh?ds=sidebyside diff --git a/INSTALL/all_in_one.sh b/INSTALL/all_in_one.sh index a90d967..d87f713 100644 --- a/INSTALL/all_in_one.sh +++ b/INSTALL/all_in_one.sh @@ -1,16 +1,30 @@ #!/bin/sh VTOY_PATH=$PWD/.. +LOGCON=$2 + +logci() { + if [ -n "$LOGCON" ]; then + echo $* > $LOGCON + fi +} cd $VTOY_PATH/DOC -sh installdietlibc.sh +logci "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 + +logci "build grub2 ..." cd $VTOY_PATH/GRUB2 sh buildgrub.sh || exit 1 +logci "build ipxe ..." cd $VTOY_PATH/IPXE sh buildipxe.sh || exit 1 +logci "build edk2 ..." cd $VTOY_PATH/EDK2 sh buildedk.sh || exit 1 @@ -58,6 +72,14 @@ sh buildedk.sh || exit 1 # 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 + +logci "packing ventoy-$Ver ..." +sh ventoy_pack.sh $1 || exit 1 + +logci "==== finish ====" echo -e '\n============== SUCCESS ==================\n'