]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - INSTALL/all_in_one.sh
Update Linux GUI type condition
[Ventoy.git] / INSTALL / all_in_one.sh
1 #!/bin/sh
2
3 VTOY_PATH=$PWD/..
4
5 cilog() {
6 datestr=$(date +"%Y/%m/%d %H:%M:%S")
7 echo "$datestr $*"
8 }
9
10 LOG=$VTOY_PATH/DOC/build.log
11 [ -f $LOG ] && rm -f $LOG
12
13 cd $VTOY_PATH/DOC
14 cilog "prepare_env ..."
15 sh prepare_env.sh
16
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/
18
19 cilog "build grub2 ..."
20 cd $VTOY_PATH/GRUB2
21 sh buildgrub.sh >> $LOG 2>&1 || exit 1
22
23 cilog "build ipxe ..."
24 cd $VTOY_PATH/IPXE
25 sh buildipxe.sh >> $LOG 2>&1 || exit 1
26
27 cilog "build edk2 ..."
28 cd $VTOY_PATH/EDK2
29 sh buildedk.sh >> $LOG 2>&1 || exit 1
30
31
32
33 #
34 # We almost rarely modifiy these code, so no need to build them everytime
35 # If you want to rebuild them, just uncomment them.
36 #
37
38 #cd $VTOY_PATH/VtoyTool
39 #sh build.sh || exit 1
40
41 #cd $VTOY_PATH/vtoycli/fat_io_lib
42 #sh buildlib.sh
43
44 #cd $VTOY_PATH/vtoycli
45 #sh build.sh || exit 1
46
47 #cd $VTOY_PATH/FUSEISO
48 #sh build_libfuse.sh
49 #sh build.sh
50
51
52 # cd $VTOY_PATH/ExFAT
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
57
58
59 # cd $VTOY_PATH/SQUASHFS/SRC
60 # sh build_lz4.sh
61 # sh build_lzma.sh
62 # sh build_lzo.sh
63 # sh build_zstd.sh
64
65 # cd $VTOY_PATH/SQUASHFS/squashfs-tools-4.4/squashfs-tools
66 # sh build.sh
67
68 # cd $VTOY_PATH/VBLADE/vblade-master
69 # sh build.sh
70
71 cd $VTOY_PATH/INSTALL
72
73 if [ "$1" = "CI" ]; then
74 Ver=$(date +%m%d%H%M)
75 sed "s/VENTOY_VERSION=.*/VENTOY_VERSION=\"$Ver\"/" -i ./grub/grub.cfg
76 fi
77
78 cilog "packing ventoy-$Ver ..."
79 sh ventoy_pack.sh $1 >> $LOG 2>&1 || exit 1
80
81 echo -e '\n============== SUCCESS ==================\n'