Created
December 3, 2021 23:21
-
-
Save strangesast/970324077f0942627fc4b93462748e75 to your computer and use it in GitHub Desktop.
qemu fwlib x86 on arm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from debian | |
run apt-get update && \ | |
DEBIAN_FRONTEND=noninteractive apt-get install -y \ | |
git \ | |
g++-i686-linux-gnu \ | |
gcc-i686-linux-gnu \ | |
qemu-user | |
run git clone https://github.com/strangesast/fwlib.git /usr/src/fwlib | |
workdir /usr/src/fwlib | |
run ln -s ./libfwlib32-linux-x86.so.1.0.0 ./libfwlib32.so && \ | |
ln -s ./libfwlib32-linux-x86.so.1.0.0 ./libfwlib32.so.1 && \ | |
ln -s ./libfwlib32-linux-x86.so.1.0.0 ./libfwlib32.so.1.0.0 && \ | |
/usr/bin/i686-linux-gnu-g++ -L./ -Wl,-rpath . examples/c-minimal/main.c -lfwlib32 -lm -lpthread -o fanuc_minimal | |
env QEMU_LD_PREFIX=/usr/i686-linux-gnu/ | |
cmd ["qemu-i386", "fanuc_minimal"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker run --rm $(docker build -f Dockerfile -q .) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment