2020-08-08 07:39:31 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
DSTDIR=../../IMG/cpio/ventoy/busybox
|
|
|
|
|
2020-12-22 08:21:44 -05:00
|
|
|
rm -f vtchmod32 vtchmod64 vtchmod64_musl vtchmodaa64
|
2021-03-05 10:03:34 -05:00
|
|
|
rm -f $DSTDIR/vtchmod32 $DSTDIR/vtchmod64 $DSTDIR/vtchmodaa64 $DSTDIR/vtchmodm64e
|
2020-08-08 07:39:31 -04:00
|
|
|
|
|
|
|
/opt/diet32/bin/diet gcc -Os -m32 vtchmod.c -o vtchmod32
|
|
|
|
/opt/diet64/bin/diet gcc -Os vtchmod.c -o vtchmod64
|
2020-12-11 18:56:52 -05:00
|
|
|
aarch64-linux-gcc -Os -static vtchmod.c -o vtchmodaa64
|
|
|
|
aarch64-linux-strip --strip-all vtchmodaa64
|
|
|
|
|
2021-03-05 10:03:34 -05:00
|
|
|
mips64el-linux-musl-gcc -mips64r2 -mabi=64 -Os -static vtchmod.c -o vtchmodm64e
|
|
|
|
mips64el-linux-musl-strip --strip-all vtchmodm64e
|
|
|
|
|
|
|
|
|
2020-12-22 08:21:44 -05:00
|
|
|
gcc -specs "/usr/local/musl/lib/musl-gcc.specs" -Os -static vtchmod.c -o vtchmod64_musl
|
|
|
|
strip --strip-all vtchmod64_musl
|
2020-08-08 07:39:31 -04:00
|
|
|
|
|
|
|
chmod 777 vtchmod32
|
|
|
|
chmod 777 vtchmod64
|
2020-12-11 18:56:52 -05:00
|
|
|
chmod 777 vtchmodaa64
|
2020-12-22 08:21:44 -05:00
|
|
|
chmod 777 vtchmod64_musl
|
2021-03-05 10:03:34 -05:00
|
|
|
chmod 777 vtchmodm64e
|
2020-08-08 07:39:31 -04:00
|
|
|
|
|
|
|
cp -a vtchmod32 $DSTDIR/
|
|
|
|
cp -a vtchmod64 $DSTDIR/
|
2020-12-11 18:56:52 -05:00
|
|
|
cp -a vtchmodaa64 $DSTDIR/
|
2020-12-22 08:21:44 -05:00
|
|
|
cp -a vtchmod64_musl $DSTDIR/
|
2021-03-05 10:03:34 -05:00
|
|
|
cp -a vtchmodm64e $DSTDIR/
|
2020-08-08 07:39:31 -04:00
|
|
|
|