mirror of
https://github.com/ventoy/Ventoy.git
synced 2024-11-06 03:20:39 +00:00
86 lines
1.6 KiB
Bash
86 lines
1.6 KiB
Bash
#!/bin/sh
|
|
|
|
VTOY_PATH=$PWD/..
|
|
LOGCON=$2
|
|
|
|
logci() {
|
|
if [ -n "$LOGCON" ]; then
|
|
echo $* > $LOGCON
|
|
fi
|
|
}
|
|
|
|
cd $VTOY_PATH/DOC
|
|
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
|
|
|
|
|
|
|
|
#
|
|
# 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/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
|
|
|
|
#cd $VTOY_PATH/vtoygpt
|
|
#sh build.sh || exit 1
|
|
|
|
#cd $VTOY_PATH/FUSEISO
|
|
#sh build_libfuse.sh
|
|
#sh build.sh
|
|
|
|
|
|
# cd $VTOY_PATH/ExFAT
|
|
# sh buidlibfuse.sh || exit 1
|
|
# sh buidexfat.sh || exit 1
|
|
# /bin/cp -a EXFAT/shared/mkexfatfs $VTOY_PATH/INSTALL/tool/mkexfatfs_64
|
|
# /bin/cp -a EXFAT/shared/mount.exfat-fuse $VTOY_PATH/INSTALL/tool/mount.exfat-fuse_64
|
|
|
|
|
|
# cd $VTOY_PATH/SQUASHFS/SRC
|
|
# sh build_lz4.sh
|
|
# sh build_lzma.sh
|
|
# sh build_lzo.sh
|
|
# sh build_zstd.sh
|
|
|
|
# cd $VTOY_PATH/SQUASHFS/squashfs-tools-4.4/squashfs-tools
|
|
# sh build.sh
|
|
|
|
# cd $VTOY_PATH/VBLADE/vblade-master
|
|
# sh build.sh
|
|
|
|
cd $VTOY_PATH/INSTALL
|
|
|
|
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'
|