mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-07-14 13:21:51 +02:00
Trying to integrate my linux-arm64 solution to dockcross
This commit is contained in:
@ -1,10 +1,9 @@
|
||||
FROM dockcross/base:latest
|
||||
MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
|
||||
#include "common.crosstool"
|
||||
|
||||
# Add the cross compiler sources
|
||||
RUN echo "deb http://emdebian.org/tools/debian/ jessie main" >> /etc/apt/sources.list && \
|
||||
dpkg --add-architecture arm64 && \
|
||||
curl http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | apt-key add -
|
||||
# Add sources.list
|
||||
COPY sources.list /etc/apt/sources.list
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
crossbuild-essential-arm64 \
|
||||
@ -25,14 +24,14 @@ RUN apt-get update && \
|
||||
make install && \
|
||||
cd .. && rm -rf qemu-2.6.0
|
||||
|
||||
ENV CROSS_TRIPLE aarch64-linux-gnu
|
||||
ENV CROSS_ROOT /usr/${CROSS_TRIPLE}
|
||||
ENV AS=/usr/bin/${CROSS_TRIPLE}-as \
|
||||
AR=/usr/bin/${CROSS_TRIPLE}-ar \
|
||||
CC=/usr/bin/${CROSS_TRIPLE}-gcc \
|
||||
CPP=/usr/bin/${CROSS_TRIPLE}-cpp-4.9 \
|
||||
CXX=/usr/bin/${CROSS_TRIPLE}-g++ \
|
||||
LD=/usr/bin/${CROSS_TRIPLE}-ld
|
||||
ENV CROSS_TRIPLE aarch64-unknown-linux-gnueabi
|
||||
ENV CROSS_ROOT /opt/x-tools/${CROSS_TRIPLE}
|
||||
ENV AS=/opt/x-tools/${CROSS_TRIPLE}-as \
|
||||
AR=/opt/x-tools/${CROSS_TRIPLE}-ar \
|
||||
CC=/opt/x-tools/${CROSS_TRIPLE}-gcc \
|
||||
CPP=/opt/x-tools/${CROSS_TRIPLE}-cpp \
|
||||
CXX=/opt/x-tools/${CROSS_TRIPLE}-g++ \
|
||||
LD=/opt/x-tools/${CROSS_TRIPLE}-ld
|
||||
|
||||
ENV DEFAULT_DOCKCROSS_IMAGE dockcross/linux-arm64
|
||||
WORKDIR /work
|
||||
|
Reference in New Issue
Block a user