1
0
mirror of https://github.com/b4tman/armhf-alpine-qemu.git synced 2024-12-05 01:26:54 +00:00

initial commit with custom qemu

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
This commit is contained in:
Petros Angelatos 2015-12-24 14:54:20 -08:00
commit 524e1acd29
6 changed files with 21 additions and 0 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
Dockerfile

4
Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM resin/armv7hf-debian:jessie
ENV QEMU_EXECVE 1
COPY . /usr/bin

3
cross-build-end Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/qemu-arm-static /bin/sh.real
mv /bin/sh.real /bin/sh

4
cross-build-start Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/qemu-arm-static /bin/sh
mv /bin/sh /bin/sh.real
cp /usr/bin/sh-shim /bin/sh

BIN
qemu-arm-static Executable file

Binary file not shown.

9
sh-shim Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/qemu-arm-static /bin/sh.real
set -o errexit
cp /bin/sh.real /bin/sh
/bin/sh "$@"
cp /usr/bin/sh-shim /bin/sh