all_in_one.sh 1.39 KB
Newer Older
1
2
3
4
5
#!/bin/sh

VTOY_PATH=$PWD/..

cd $VTOY_PATH/DOC
longpanda's avatar
longpanda committed
6
7
8
9
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

10
11
12
13
14
15
16
17
18
19
20
21

cd $VTOY_PATH/GRUB2
sh buildgrub.sh || exit 1

cd $VTOY_PATH/IPXE
sh buildipxe.sh || exit 1

cd $VTOY_PATH/EDK2
sh buildedk.sh || exit 1



longpanda's avatar
longpanda committed
22
23
24
25
#
# We almost rarely modifiy these code, so no need to build them everytime
# If you want to rebuild them, just uncomment them.
#
26

longpanda's avatar
longpanda committed
27
28
#cd $VTOY_PATH/VtoyTool
#sh build.sh || exit 1
29

longpanda's avatar
longpanda committed
30
31
#cd $VTOY_PATH/vtoyfat/fat_io_lib
#sh buildlib.sh
32

longpanda's avatar
longpanda committed
33
34
35
36
37
38
39
40
41
#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
42

longpanda's avatar
longpanda committed
43
44
45
46
47
48

# 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
49
50


longpanda's avatar
longpanda committed
51
52
53
54
55
# cd $VTOY_PATH/SQUASHFS/SRC
# sh build_lz4.sh
# sh build_lzma.sh
# sh build_lzo.sh
# sh build_zstd.sh
56

longpanda's avatar
longpanda committed
57
58
# cd $VTOY_PATH/SQUASHFS/squashfs-tools-4.4/squashfs-tools
# sh build.sh
59

longpanda's avatar
longpanda committed
60
61
# cd $VTOY_PATH/VBLADE/vblade-master
# sh build.sh
62
63

cd $VTOY_PATH/INSTALL
longpanda's avatar
longpanda committed
64
65
66
67
68
69

if [ "$1" = "CI" ]; then
    Ver=$(date +%m%d%H%M)
    sed "s/VENTOY_VERSION=.*/VENTOY_VERSION=$Ver/"  -i ./grub/grub.cfg
fi

70
71
72
sh ventoy_pack.sh || exit 1

echo -e '\n============== SUCCESS ==================\n'