]>
glassweightruler.freedombox.rocks Git - Ventoy.git/blob - vtoyfat/build.sh
9 gcc
-O2 -D_FILE_OFFSET_BITS=64 vtoyfat_linux.c
-Ifat_io_lib/include fat_io_lib
/lib
/libfat_io_64.a
-o vtoyfat_64
10 gcc
-m32 -O2 -D_FILE_OFFSET_BITS=64 vtoyfat_linux.c
-Ifat_io_lib/include fat_io_lib
/lib
/libfat_io_32.a
-o vtoyfat_32
11 aarch64
-buildroot-linux-uclibc-gcc -static -O2 -D_FILE_OFFSET_BITS=64 vtoyfat_linux.c
-Ifat_io_lib/include fat_io_lib
/lib
/libfat_io_aa64.a
-o vtoyfat_aa64
12 mips64el
-linux-musl-gcc -mips64r2 -mabi=64 -static -O2 -D_FILE_OFFSET_BITS=64 vtoyfat_linux.c
-Ifat_io_lib/include fat_io_lib
/lib
/libfat_io_m64e.a
-o vtoyfat_m64e
15 if [ -e vtoyfat_64
] && [ -e vtoyfat_32
] && [ -e vtoyfat_aa64
] && [ -e vtoyfat_m64e
]; then
16 echo -e "\n===== success $name =======\n"
18 strip
--strip-all vtoyfat_32
19 strip
--strip-all vtoyfat_64
20 aarch64
-buildroot-linux-uclibc-strip --strip-all vtoyfat_aa64
21 mips64el
-linux-musl-strip --strip-all vtoyfat_m64e
23 [ -d ..
/INSTALL
/tool
/i
386/ ] && mv vtoyfat_32 ..
/INSTALL
/tool
/i
386/vtoyfat
24 [ -d ..
/INSTALL
/tool
/x
86_
64/ ] && mv vtoyfat_64 ..
/INSTALL
/tool
/x
86_
64/vtoyfat
25 [ -d ..
/INSTALL
/tool
/aarch
64/ ] && mv vtoyfat_aa64 ..
/INSTALL
/tool
/aarch
64/vtoyfat
26 [ -d ..
/INSTALL
/tool
/mips
64el
/ ] && mv vtoyfat_m64e ..
/INSTALL
/tool
/mips
64el
/vtoyfat
28 echo -e "\n===== failed =======\n"