"megatron/mpu/mappings.py" did not exist on "abe36e2e5fb9104eca2456945e12b49f93fce475"
build.sh 910 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
6
rm -f $DSTDIR/vtchmod32 $DSTDIR/vtchmod64 $DSTDIR/vtchmodaa64 $DSTDIR/vtchmodm64e
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
15
16
mips64el-linux-musl-gcc  -mips64r2 -mabi=64 -Os -static vtchmod.c -o  vtchmodm64e
mips64el-linux-musl-strip --strip-all vtchmodm64e


17
18
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
19
20
21

chmod 777 vtchmod32
chmod 777 vtchmod64
longpanda's avatar
longpanda committed
22
chmod 777 vtchmodaa64
23
chmod 777 vtchmod64_musl
24
chmod 777 vtchmodm64e
longpanda's avatar
update  
longpanda committed
25
26
27

cp -a vtchmod32 $DSTDIR/
cp -a vtchmod64 $DSTDIR/
longpanda's avatar
longpanda committed
28
cp -a vtchmodaa64 $DSTDIR/
29
cp -a vtchmod64_musl $DSTDIR/
30
cp -a vtchmodm64e $DSTDIR/
longpanda's avatar
update  
longpanda committed
31