]>
glassweightruler.freedombox.rocks Git - Ventoy.git/blob - INSTALL/all_in_one.sh
6 datestr
=$(date +"%Y/%m/%d %H:%M:%S")
10 LOG
=$VTOY_PATH/DOC
/build.log
11 [ -f $LOG ] && rm -f $LOG
14 cilog
"prepare_env ..."
17 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
/
19 cilog
"build grub2 ..."
21 sh buildgrub.sh
>> $LOG 2>&1 || exit 1
23 cilog
"build ipxe ..."
25 sh buildipxe.sh
>> $LOG 2>&1 || exit 1
27 cilog
"build edk2 ..."
29 sh buildedk.sh
>> $LOG 2>&1 || exit 1
34 # We almost rarely modifiy these code, so no need to build them everytime
35 # If you want to rebuild them, just uncomment them.
38 #cd $VTOY_PATH/VtoyTool
39 #sh build.sh || exit 1
41 #cd $VTOY_PATH/vtoycli/fat_io_lib
44 #cd $VTOY_PATH/vtoycli
45 #sh build.sh || exit 1
47 #cd $VTOY_PATH/FUSEISO
53 # sh buidlibfuse.sh || exit 1
54 # sh buidexfat.sh || exit 1
55 # /bin/cp -a EXFAT/shared/mkexfatfs $VTOY_PATH/INSTALL/tool/mkexfatfs_64
56 # /bin/cp -a EXFAT/shared/mount.exfat-fuse $VTOY_PATH/INSTALL/tool/mount.exfat-fuse_64
59 # cd $VTOY_PATH/SQUASHFS/SRC
65 # cd $VTOY_PATH/SQUASHFS/squashfs-tools-4.4/squashfs-tools
68 # cd $VTOY_PATH/VBLADE/vblade-master
73 if [ "$1" = "CI" ]; then
75 sed "s/VENTOY_VERSION=.*/VENTOY_VERSION=\"$Ver\"/" -i .
/grub
/grub.cfg
78 cilog
"packing ventoy-$Ver ..."
79 sh ventoy_pack.sh
$1 >> $LOG 2>&1 || exit 1
81 echo -e '\n============== SUCCESS ==================\n'