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