Skip to content
Closed
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
34 changes: 34 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
FROM ubuntu:18.04
Copy link
Contributor

Choose a reason for hiding this comment

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

Change Dockerfile to another specific name, because other people may add macOS or Windows dockerfile later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Update it later.

MAINTAINER Haitao Liu<liuguo09@gmail.com>

RUN dpkg --add-architecture i386
RUN apt-get update
RUN apt-get install -y git-core automake bison build-essential flex gperf wget libx11-dev libxext-dev u-boot-tools
RUN apt-get install -y lib32z1-dev lib32ncurses5-dev libc6-dev-i386 libx11-dev:i386 libxext-dev:i386
RUN apt-get install -y curl gettext
RUN apt-get install -y libcurl4-openssl-dev
RUN apt-get install -y xxd
RUN apt-get install -y unzip
RUN apt-get clean
RUN mkdir /prebuilt

WORKDIR /prebuilt

ADD gcc-arm-none-eabi.tar.gz ./
Copy link
Contributor

Choose a reason for hiding this comment

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

change to download from offical release website

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll update it later.

ADD pinguino-compilers.tar.gz ./
ADD riscv64-unknown-elf-gcc.tar.gz ./
ADD genromfs-0.5.2.tar.gz ./
ADD kconfig-frontends-4.11.0.tar.gz ./
ADD git-2.18.0.tar.gz ./

RUN cd /prebuilt/genromfs-0.5.2 && make install PREFIX=/prebuilt/genromfs

RUN cd /prebuilt/kconfig-frontends-4.11.0 && ./configure --prefix=/prebuilt/kconfig-frontends --enable-mconf --disable-gconf --disable-qconf --enable-static && make install

RUN cd /prebuilt/git-2.18.0 && ./configure --prefix=/prebuilt/git && make install

RUN rm -rf /prebuilt/genromfs-0.5.2 /prebuilt/kconfig-frontends-4.11.0 /prebuilt/git-2.18.0

ENV PATH /prebuilt/git/bin:/prebuilt/genromfs/usr/bin:/prebuilt/kconfig-frontends/bin:/prebuilt/gcc-arm-none-eabi/bin:/prebuilt/pinguino-compilers/linux64/p32/bin:/prebuilt/riscv64-unknown-elf-gcc/bin:$PATH

CMD [ "/bin/bash" ]