2022-12-16 16:07:56 +01:00
|
|
|
ARG ORG=dockcross
|
|
|
|
FROM ${ORG}/base:latest
|
2022-03-31 09:58:31 +02:00
|
|
|
|
|
|
|
LABEL maintainer="Chen Tao t.clydechen@gmail.com"
|
|
|
|
|
|
|
|
# This is for armv7e-m+fp bare metal
|
|
|
|
|
2022-06-18 18:57:50 +02:00
|
|
|
# Crosstool-ng version 1.25.0
|
|
|
|
ENV CT_VERSION 8fa98eeeff9bc53478d97ef722f366fea151ae64
|
2022-03-31 09:58:31 +02:00
|
|
|
|
|
|
|
#include "common.crosstool"
|
|
|
|
|
2022-06-18 18:57:50 +02:00
|
|
|
ENV CROSS_TRIPLE arm-none-eabi
|
2022-03-31 09:58:31 +02:00
|
|
|
|
|
|
|
ENV CROSS_ROOT ${XCC_PREFIX}/${CROSS_TRIPLE}
|
|
|
|
ENV AS=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-as \
|
|
|
|
AR=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-ar \
|
|
|
|
CC=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-gcc \
|
|
|
|
CPP=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-cpp \
|
|
|
|
CXX=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-g++ \
|
|
|
|
LD=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-ld \
|
|
|
|
SZ=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-size \
|
|
|
|
OBJCOPY=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-objcopy
|
|
|
|
|
|
|
|
COPY Toolchain.cmake ${CROSS_ROOT}/
|
|
|
|
ENV CMAKE_TOOLCHAIN_FILE ${CROSS_ROOT}/Toolchain.cmake
|
|
|
|
|
2022-06-18 18:57:50 +02:00
|
|
|
ENV PKG_CONFIG_PATH /usr/lib/arm-none-eabi/pkgconfig
|
2022-03-31 09:58:31 +02:00
|
|
|
|
|
|
|
# Linux kernel cross compilation variables
|
|
|
|
ENV PATH ${PATH}:${CROSS_ROOT}/bin
|
|
|
|
ENV CROSS_COMPILE ${CROSS_TRIPLE}-
|
|
|
|
ENV ARCH arm
|
|
|
|
|
|
|
|
#include "common.label-and-env"
|