Fix ARMv8 rpi, ARMv6, MIPS, MIPS64 and s390x images

This commit is contained in:
2021-05-08 12:40:55 +02:00
parent 25c411eb28
commit f9693294ff
9 changed files with 20 additions and 34 deletions

View File

@ -12,8 +12,8 @@ RUN apt-get update \
&& apt-get clean --yes
# The CROSS_TRIPLE is a configured alias of the "arm-unknown-linux-gnueabi" target.
ENV CROSS_TRIPLE arm-unknown-linux-gnueabi
# The CROSS_TRIPLE is a configured alias of the "armv6-unknown-linux-gnueabi" target.
ENV CROSS_TRIPLE armv6-unknown-linux-gnueabi
ENV CROSS_ROOT ${XCC_PREFIX}/${CROSS_TRIPLE}
ENV AS=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-as \
AR=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-ar \

View File

@ -1,7 +1,7 @@
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_VERSION 1)
set(CMAKE_SYSTEM_PROCESSOR arm)
set(cross_triple "armv-unknown-linux-gnueabi")
set(cross_triple "armv6-unknown-linux-gnueabi")
set(cross_root /usr/xcc/${cross_triple})
set(CMAKE_C_COMPILER $ENV{CC})