build.sh 707 Bytes
Newer Older
longpanda's avatar
update  
longpanda committed
1
2
3
4
#!/bin/sh

DSTDIR=../../IMG/cpio/ventoy/busybox

5
rm -f vtchmod32 vtchmod64 vtchmod64_musl vtchmodaa64
longpanda's avatar
longpanda committed
6
rm -f $DSTDIR/vtchmod32 $DSTDIR/vtchmod64 $DSTDIR/vtchmodaa64
longpanda's avatar
update  
longpanda committed
7
8
9

/opt/diet32/bin/diet  gcc  -Os -m32  vtchmod.c -o  vtchmod32
/opt/diet64/bin/diet  gcc  -Os       vtchmod.c -o  vtchmod64
longpanda's avatar
longpanda committed
10
11
12
aarch64-linux-gcc -Os -static vtchmod.c -o  vtchmodaa64
aarch64-linux-strip --strip-all vtchmodaa64

13
14
gcc -specs "/usr/local/musl/lib/musl-gcc.specs" -Os -static vtchmod.c -o  vtchmod64_musl
strip --strip-all vtchmod64_musl
longpanda's avatar
update  
longpanda committed
15
16
17

chmod 777 vtchmod32
chmod 777 vtchmod64
longpanda's avatar
longpanda committed
18
chmod 777 vtchmodaa64
19
chmod 777 vtchmod64_musl
longpanda's avatar
update  
longpanda committed
20
21
22

cp -a vtchmod32 $DSTDIR/
cp -a vtchmod64 $DSTDIR/
longpanda's avatar
longpanda committed
23
cp -a vtchmodaa64 $DSTDIR/
24
cp -a vtchmod64_musl $DSTDIR/
longpanda's avatar
update  
longpanda committed
25