Skip to content
Open
Show file tree
Hide file tree
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
11 changes: 7 additions & 4 deletions sdbuild/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,18 @@ SHELL ["/bin/bash", "-c"]

WORKDIR /tmp

# Enable source repo for ubuntu-keyring (needed for rootfs multistrap)
RUN echo "deb-src http://archive.ubuntu.com/ubuntu/ jammy main" > /etc/apt/sources.list.d/multistrap.list

# Enable i386 architecture and install core dependencies
RUN dpkg --add-architecture i386 \
&& apt-get update && apt-get upgrade -y \
&& apt-get install -y software-properties-common gnupg2 wget curl \
# Add toolchain PPA
&& add-apt-repository -y ppa:ubuntu-toolchain-r/ppa \
&& apt-get update \
# Configures timezone interactively (2: Americas, 37: Central)
&& echo -e '2\n37\n' | apt-get install -y tzdata \
# Install build and host packages
&& apt-get install -y \
bc libtool-bin gperf bison flex texi2html texinfo help2man gawk libtool \
Expand All @@ -29,9 +34,7 @@ RUN dpkg --add-architecture i386 \
libsdl1.2-dev libpixman-1-dev libc6-dev chrpath socat zlib1g-dev unzip \
rsync python3-pip gcc-multilib xterm net-tools ninja-build python3-testresources \
libncurses5-dev libncursesw5-dev vim nano tmux zip dnsutils sudo binfmt-support \
dbus-x11 libswt-glx-gtk-4-jni libgtk2.0-0 xvfb \
# Configures timezone interactively (2: Americas, 37: Central)
&& echo -e '2\n37\n' | apt-get install -y lsb-core \
dbus-x11 libswt-glx-gtk-4-jni libgtk2.0-0 xvfb lsb-core \
# Locale for Vivado
&& locale-gen en_US.utf8 && update-locale \
# Clean up APT
Expand Down Expand Up @@ -94,4 +97,4 @@ USER ${USERNAME}
WORKDIR /workspace
ENV USERNAME=${USERNAME}

CMD /bin/bash
CMD /bin/bash
2 changes: 2 additions & 0 deletions sdbuild/scripts/create_rootfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ if [ -n "$PYNQ_UBUNTU_REPO" ]; then
multistrap_conf=$tmpfile
multistrap_opt=--no-auth
trap "rm -f $tmpfile" EXIT
else
sudo apt-get update
fi

# Perform the basic bootstrapping of the image
Expand Down