Add dfu-util dep

This commit is contained in:
Ben V. Brown
2021-09-24 13:16:03 +10:00
parent aad0f3691c
commit b916e4ae25
2 changed files with 5 additions and 4 deletions

View File

@@ -4,9 +4,9 @@ LABEL maintainer="Ben V. Brown <ralim@ralimtek.com>"
WORKDIR /build WORKDIR /build
# Add extra mirrors for options # Add extra mirrors for options
RUN echo "deb mirror://mirrors.ubuntu.com/mirrors.txt focal main restricted universe multiverse" > /etc/apt/sources.list && \ RUN echo "deb mirror://mirrors.ubuntu.com/mirrors.txt focal main restricted universe multiverse" > /etc/apt/sources.list && \
echo "deb mirror://mirrors.ubuntu.com/mirrors.txt focal-updates main restricted universe multiverse" >> /etc/apt/sources.list && \ echo "deb mirror://mirrors.ubuntu.com/mirrors.txt focal-updates main restricted universe multiverse" >> /etc/apt/sources.list && \
echo "deb mirror://mirrors.ubuntu.com/mirrors.txt focal-security main restricted universe multiverse" >> /etc/apt/sources.list && \ echo "deb mirror://mirrors.ubuntu.com/mirrors.txt focal-security main restricted universe multiverse" >> /etc/apt/sources.list && \
DEBIAN_FRONTEND=noninteractive apt-get update DEBIAN_FRONTEND=noninteractive apt-get update
# Install dependencies to build the firmware # Install dependencies to build the firmware
RUN apt-get install -y \ RUN apt-get install -y \
make \ make \
@@ -15,6 +15,7 @@ RUN apt-get install -y \
python3 \ python3 \
python3-pip \ python3-pip \
clang-format \ clang-format \
dfu-util \
wget --no-install-recommends && \ wget --no-install-recommends && \
apt-get clean apt-get clean
RUN python3 -m pip install bdflib RUN python3 -m pip install bdflib

View File

@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
set -e set -e
# Setup shell file to setup the environment on an ubuntu machine # Setup shell file to setup the environment on an ubuntu machine
sudo apt-get update && sudo apt-get install -y make bzip2 git python3 python3-pip wget sudo apt-get update && sudo apt-get install -y make bzip2 git python3 python3-pip wget dfu-util
python3 -m pip install bdflib black flake8 python3 -m pip install bdflib black flake8
sudo mkdir -p /build sudo mkdir -p /build
cd /build cd /build