X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/05a1b863a66bf72b26e5d87570c4e0e61b9736cd..042ca4b5e36ffbe5897083e7bce2cf76dc145efd:/vtoyfat/fat_io_lib/buildlib.sh diff --git a/vtoyfat/fat_io_lib/buildlib.sh b/vtoyfat/fat_io_lib/buildlib.sh index 11ca235..eaab119 100644 --- a/vtoyfat/fat_io_lib/buildlib.sh +++ b/vtoyfat/fat_io_lib/buildlib.sh @@ -1,8 +1,16 @@ #!/bin/sh +if ! [ -f fat_io_lib.zip ]; then + echo "No fat_io_lib.zip found ..." + exit 1 +fi + +unzip fat_io_lib.zip + rm -rf include rm -rf lib + cd release gcc -O2 -D_FILE_OFFSET_BITS=64 fat*.c -c ar -rc libfat_io_64.a *.o @@ -14,8 +22,18 @@ ar -rc libfat_io_32.a *.o rm -f *.o +aarch64-linux-gnu-gcc -O2 -D_FILE_OFFSET_BITS=64 fat*.c -c +ar -rc libfat_io_aa64.a *.o +rm -f *.o + + +mips64el-linux-musl-gcc -mips64r2 -mabi=64 -O2 -D_FILE_OFFSET_BITS=64 fat*.c -c +ar -rc libfat_io_m64e.a *.o +rm -f *.o + cd - + mkdir lib mkdir include