restructure makefile for individual builds, restructure linux-arm dockerfiles

This commit is contained in:
Rob Burns
2015-02-01 10:18:38 +07:00
parent e45785c7f7
commit 7a5bc6c22d
3 changed files with 35 additions and 19 deletions

20
linux-armv7/Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM rburns/cross-compiler:base
MAINTAINER Steeve Morin "steeve.morin@gmail.com"
# Add the cross compiler sources
RUN echo "deb http://emdebian.org/tools/debian/ jessie main" >> /etc/apt/sources.list && \
dpkg --add-architecture armhf && \
curl http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | apt-key add -
RUN apt-get update && apt-get install -y crossbuild-essential-armhf
ENV CROSS_TRIPLE arm-linux-gnueabihf
ENV CROSS_ROOT /usr/${CROSS_TRIPLE}
ENV PATH ${PATH}:${CROSS_ROOT}/bin
ENV LD_LIBRARY_PATH ${CROSS_ROOT}/lib:${LD_LIBRARY_PATH}
RUN cd /usr/bin && \
ln -s ${CROSS_TRIPLE}-gcc-4.9 ${CROSS_TRIPLE}-cc && \
ln -s ${CROSS_TRIPLE}-gcc-4.9 ${CROSS_TRIPLE}-gcc && \
ln -s ${CROSS_TRIPLE}-g++-4.9 ${CROSS_TRIPLE}-g++ && \
ln -s ${CROSS_TRIPLE}-g++-4.9 ${CROSS_TRIPLE}-c++