2020-04-04 12:07:50 -04: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 18:56:52 -05:00
|
|
|
aarch64-buildroot-linux-uclibc-gcc linux.c aoe.c ata.c bpf.c -Os -static -o vblade_aa64
|
2020-04-04 12:07:50 -04:00
|
|
|
|
2020-12-11 18:56:52 -05:00
|
|
|
if [ -e vblade_64 ] && [ -e vblade_32 ] && [ -e vblade_aa64 ]; then
|
2020-04-04 12:07:50 -04:00
|
|
|
echo -e '\n################## SUCCESS ######################\n'
|
|
|
|
else
|
|
|
|
echo -e '\n################## FAILED ######################\n'
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|