2020-04-04 16:07:50 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
rm -f vblade_*
|
|
|
|
|
|
|
|
gcc linux.c aoe.c ata.c bpf.c -Os -o vblade_64
|
|
|
|
gcc linux.c aoe.c ata.c bpf.c -Os -m32 -o vblade_32
|
2020-12-11 23:56:52 +00:00
|
|
|
aarch64-buildroot-linux-uclibc-gcc linux.c aoe.c ata.c bpf.c -Os -static -o vblade_aa64
|
2020-04-04 16:07:50 +00:00
|
|
|
|
2020-12-11 23:56:52 +00:00
|
|
|
if [ -e vblade_64 ] && [ -e vblade_32 ] && [ -e vblade_aa64 ]; then
|
2020-04-04 16:07:50 +00:00
|
|
|
echo -e '\n################## SUCCESS ######################\n'
|
|
|
|
else
|
|
|
|
echo -e '\n################## FAILED ######################\n'
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|