]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - BUSYBOX/chmod/build.sh
fix typo in diskio.h (#2497)
[Ventoy.git] / BUSYBOX / chmod / build.sh
1 #!/bin/sh
2
3 DSTDIR1=../../IMG/cpio_x86/ventoy/busybox
4 DSTDIR2=../../IMG/cpio_arm64/ventoy/busybox
5 DSTDIR3=../../IMG/cpio_mips64/ventoy/busybox
6
7 rm -f vtchmod32 vtchmod64 vtchmod64_musl vtchmodaa64
8 rm -f $DSTDIR1/vtchmod32 $DSTDIR1/vtchmod64 $DSTDIR2/vtchmodaa64 $DSTDIR3/vtchmodm64e
9
10 /opt/diet32/bin/diet gcc -Os -m32 vtchmod.c -o vtchmod32
11 /opt/diet64/bin/diet gcc -Os vtchmod.c -o vtchmod64
12 aarch64-linux-gcc -Os -static vtchmod.c -o vtchmodaa64
13 aarch64-linux-strip --strip-all vtchmodaa64
14
15 mips64el-linux-musl-gcc -mips64r2 -mabi=64 -Os -static vtchmod.c -o vtchmodm64e
16 mips64el-linux-musl-strip --strip-all vtchmodm64e
17
18
19 gcc -specs "/usr/local/musl/lib/musl-gcc.specs" -Os -static vtchmod.c -o vtchmod64_musl
20 strip --strip-all vtchmod64_musl
21
22 chmod 777 vtchmod32
23 chmod 777 vtchmod64
24 chmod 777 vtchmodaa64
25 chmod 777 vtchmod64_musl
26 chmod 777 vtchmodm64e
27
28 cp -a vtchmod32 $DSTDIR1/
29 cp -a vtchmod64 $DSTDIR1/
30 cp -a vtchmod64_musl $DSTDIR1/
31 cp -a vtchmodaa64 $DSTDIR2/
32 cp -a vtchmodm64e $DSTDIR3/
33