Commit 3d57ea51 authored by Nick Petrovsky's avatar Nick Petrovsky
Browse files

Add dependency for U-Boot. Make debian tools noninteractive. Change dash->bash.

parent fed2e401
......@@ -8,7 +8,7 @@ ARG UBUNTU_MIRROR=mirror.tuna.tsinghua.edu.cn
#install dependences:
RUN sed -i.bak s/archive.ubuntu.com/${UBUNTU_MIRROR}/g /etc/apt/sources.list && \
dpkg --add-architecture i386 && apt-get update && apt-get install -y \
dpkg --add-architecture i386 && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -q \
build-essential \
sudo \
tofrodos \
......@@ -18,6 +18,7 @@ RUN sed -i.bak s/archive.ubuntu.com/${UBUNTU_MIRROR}/g /etc/apt/sources.list &&
expect \
libncurses5-dev \
tftpd \
update-inetd \
libssl-dev \
flex \
bison \
......@@ -47,7 +48,12 @@ RUN sed -i.bak s/archive.ubuntu.com/${UBUNTU_MIRROR}/g /etc/apt/sources.list &&
libtool-bin \
locales \
kmod \
git
git \
rsync \
bc \
u-boot-tools \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ARG PETA_VERSION
ARG PETA_RUN_FILE
......@@ -69,6 +75,10 @@ RUN chmod a+x /${PETA_RUN_FILE} && \
sudo -u vivado /accept-eula.sh /${PETA_RUN_FILE} /opt/Xilinx/petalinux && \
rm -f /${PETA_RUN_FILE} /accept-eula.sh
# make /bin/sh symlink to bash instead of dash:
RUN echo "dash dash/sh boolean false" | debconf-set-selections
RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
USER vivado
ENV HOME /home/vivado
ENV LANG en_US.UTF-8
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment