aboutsummaryrefslogtreecommitdiffhomepage
path: root/CorOS-dev-environment/CorOS-build-env/Dockerfile
blob: 9ddd439802416fd29c3d58e13627b43acd42a77a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Use official Ubuntu as our base# Use official Ubuntu as our base
FROM opencortex/coros-emu:latest

# Add required packages in the noninteractive mode
RUN apt-get -y update && apt-get -y -q install curl net-tools build-essential minicom tftpd-hpa git-all subversion openssh-server ncurses-dev php gawk g++ m4 libncurses5-dev texinfo flex bison php-cli vim php-xml python-setuptools python-dev make unzip rsync cpio bc lib32z1 lib32stdc++6

# Set the workspace in /sc5xx_dev
ARG TOOLCHAIN_PATH=/sc5xx_dev
RUN mkdir -p ${TOOLCHAIN_PATH}

# Set the path and name of Patch in /sc5xx_dev/linuxaddin-dockerfile/lib
ARG PATCH_PATH=${TOOLCHAIN_PATH}/lib
ARG PATCH=${PATCH_PATH}/0002-port-to-perl-5.22-and-later.patch

# Set the Version and Path of cces-linux-add-in.
ARG LINUX_ADDIN_VERSION="1.3.1"

# Working directory set to /sc5xx_dev
WORKDIR ${TOOLCHAIN_PATH}

# Copy the install_toolchain.sh to /sc5xx_dev
COPY install_toolchain.sh .
RUN dos2unix install_toolchain.sh && chmod +x install_toolchain.sh && ./install_toolchain.sh ${TOOLCHAIN_PATH}

# Set toolchain PATH for remote container
ENV PATH=${PATH}:/opt/analog/cces-linux-add-in/${LINUX_ADDIN_VERSION}/ARM/arm-linux-gnueabi/bin/
ENV QEMU_LD_PREFIX="/opt/analog/cces-linux-add-in/1.3.1/ARM/arm-linux-gnueabi/sysroot"

WORKDIR /

ENTRYPOINT ["/bin/bash"]