This commit is contained in:
2021-05-14 08:19:31 +02:00
parent 52a958d7a4
commit ef6ea08a78
10 changed files with 89 additions and 73 deletions

View File

@@ -12,8 +12,8 @@ RUN apt-get update \
&& apt-get clean --yes
# The CROSS_TRIPLE is a configured alias of the "armv6-unknown-linux-gnueabihf" target.
ENV CROSS_TRIPLE armv6-unknown-linux-gnueabihf
# The CROSS_TRIPLE is a configured alias of the "armv6-rpi-linux-gnueabihf" target.
ENV CROSS_TRIPLE armv6-rpi-linux-gnueabihf
ENV CROSS_ROOT ${XCC_PREFIX}/${CROSS_TRIPLE}
ENV AS=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-as \
AR=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-ar \
@@ -36,6 +36,4 @@ ENV PATH ${PATH}:${CROSS_ROOT}/bin
ENV CROSS_COMPILE ${CROSS_TRIPLE}-
ENV ARCH arm
RUN cd /usr/xcc/ && find . -name '*linux*'
#include "common.label-and-env"

View File

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