]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - BUSYBOX/chmod/build.sh
5b5edebdd86eb4487f0a4552b0f9555cffeac05b
[Ventoy.git] / BUSYBOX / chmod / build.sh
1 #!/bin/sh
2
3 DSTDIR=../../IMG/cpio/ventoy/busybox
4
5 rm -f vtchmod32 vtchmod64 vtchmodaa64
6 rm -f $DSTDIR/vtchmod32 $DSTDIR/vtchmod64 $DSTDIR/vtchmodaa64
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
14 chmod 777 vtchmod32
15 chmod 777 vtchmod64
16 chmod 777 vtchmodaa64
17
18 cp -a vtchmod32 $DSTDIR/
19 cp -a vtchmod64 $DSTDIR/
20 cp -a vtchmodaa64 $DSTDIR/
21