]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - ExFAT/buidexfat_aarch64.sh
Adding root user check to ExtendPersistentImg (as in CreatePersistentImg) (#2633)
[Ventoy.git] / ExFAT / buidexfat_aarch64.sh
1 #!/bin/bash
2
3 CUR="$PWD"
4
5 if ! [ -e LIBFUSE ]; then
6 ./buidlibfuse.sh
7 fi
8
9 rm -f EXFAT/shared/*
10
11
12 rm -rf exfat-1.3.0
13 unzip exfat-1.3.0.zip
14 sed "/printf.*VERSION/a\ if (access(\"/etc/initrd-release\", F_OK) >= 0) argv[0][0] = '@';" -i exfat-1.3.0/fuse/main.c
15
16 cd exfat-1.3.0
17 autoreconf --install
18 ./configure --prefix="$CUR" CFLAGS='-O2 -D_FILE_OFFSET_BITS=64' FUSE_CFLAGS="-I$CUR/LIBFUSE/include/" FUSE_LIBS="$CUR/LIBFUSE/lib/libfuse.a -lpthread -ldl"
19 make
20
21 strip --strip-all fuse/mount.exfat-fuse
22 strip --strip-all mkfs/mkexfatfs
23
24 cp fuse/mount.exfat-fuse ../EXFAT/shared/mount.exfat-fuse
25 cp mkfs/mkexfatfs ../EXFAT/shared/mkexfatfs
26
27 cd ..
28 rm -rf exfat-1.3.0
29
30
31
32