Add riscv64

This commit is contained in:
Tianon Gravi 2021-07-06 23:34:11 -07:00
parent 10d34b3984
commit 06d4f12fae
3 changed files with 10 additions and 0 deletions

View File

@ -18,6 +18,7 @@ RUN set -eux; \
libc6-dev-i386-cross \
libc6-dev-mips64el-cross \
libc6-dev-ppc64el-cross \
libc6-dev-riscv64-cross \
libc6-dev-s390x-cross \
\
gcc-aarch64-linux-gnu \
@ -26,6 +27,7 @@ RUN set -eux; \
gcc-i686-linux-gnu \
gcc-mips64el-linux-gnuabi64 \
gcc-powerpc64le-linux-gnu \
gcc-riscv64-linux-gnu \
gcc-s390x-linux-gnu \
\
file \
@ -87,6 +89,11 @@ RUN set -ex; \
CROSS_COMPILE='powerpc64le-linux-gnu-' \
CFLAGS+='-mlong-double-64'
RUN set -ex; \
make clean all \
TARGET_ARCH='riscv64' \
CROSS_COMPILE='riscv64-linux-gnu-'
RUN set -ex; \
make clean all \
TARGET_ARCH='s390x' \

View File

@ -0,0 +1,3 @@
FROM scratch
COPY hello /
CMD ["/hello"]

BIN
riscv64/hello-world/hello Executable file

Binary file not shown.