mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-23 09:04:27 +01:00
35 lines
1013 B
Docker
35 lines
1013 B
Docker
ARG ORG=dockcross
|
|
FROM ${ORG}/base:latest
|
|
|
|
LABEL maintainer="Chen Tao t.clydechen@gmail.com"
|
|
|
|
# This is for armv7e-m+fp bare metal
|
|
|
|
# Crosstool-ng version 1.25.0
|
|
ENV CT_VERSION 8fa98eeeff9bc53478d97ef722f366fea151ae64
|
|
|
|
#include "common.crosstool"
|
|
|
|
ENV CROSS_TRIPLE arm-none-eabi
|
|
|
|
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
|
|
|
|
ENV PKG_CONFIG_PATH /usr/lib/arm-none-eabi/pkgconfig
|
|
|
|
# Linux kernel cross compilation variables
|
|
ENV PATH ${PATH}:${CROSS_ROOT}/bin
|
|
ENV CROSS_COMPILE ${CROSS_TRIPLE}-
|
|
ENV ARCH arm
|
|
|
|
#include "common.label-and-env" |