Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

Update Dockerfile #161

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,23 @@ FROM base/arch

RUN echo 'LANG="en_US.UTF-8"' > /etc/locale.conf
RUN pacman --quiet -Syy
RUN pacman --quiet -S --noconfirm base-devel
RUN pacman --quiet -S --noconfirm scons
RUN pacman --quiet -S --noconfirm libunistring
RUN cd home && curl ftp://gcc.gnu.org/pub/gcc/releases/gcc-4.9.1/gcc-4.9.1.tar.gz | tar xz
RUN cd home && curl ftp://gcc.gnu.org/pub/binutils/releases/binutils-2.24.tar.gz | tar xz
RUN cd home && curl http://flatassembler.net/fasm-1.71.17.tgz | tar xz
RUN cd home && mkdir cross
RUN pacman --quiet -S --noconfirm base-devel scons libunistring
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

problem with scons in travis logfile ?


WORKDIR /home

RUN curl ftp://gcc.gnu.org/pub/gcc/releases/gcc-4.9.1/gcc-4.9.1.tar.gz | tar xz
RUN curl ftp://gcc.gnu.org/pub/binutils/releases/binutils-2.24.tar.gz | tar xz
RUN curl http://flatassembler.net/fasm-1.71.17.tgz | tar xz
RUN mkdir cross
ENV PREFIX /home/cross
ENV TARGET x86_64-elf
ENV PATH /home/cross/bin:/home/fasm:$PATH

RUN cd home && mkdir build-binutils && cd build-binutils && \
RUN mkdir build-binutils && cd build-binutils && \
../binutils-2.24/configure --target=$TARGET --prefix="$PREFIX" --disable-nls --disable-werror && \
make && make install

RUN cd home && mkdir build-gcc && cd build-gcc && \
RUN mkdir build-gcc && cd build-gcc && \
../gcc-4.9.1/configure --target=$TARGET --prefix="$PREFIX" --disable-nls --enable-languages=c,c++ --without-headers && \
make all-gcc && make all-target-libgcc && make install-gcc && make install-target-libgcc