From b916e4ae2515b10ba6bb8ea053895199e80104db Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Fri, 24 Sep 2021 13:16:03 +1000 Subject: [PATCH] Add dfu-util dep --- Dockerfile | 7 ++++--- setup.sh | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4575064b..e52516f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,9 +4,9 @@ LABEL maintainer="Ben V. Brown " WORKDIR /build # Add extra mirrors for options 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-security main restricted universe multiverse" >> /etc/apt/sources.list && \ - DEBIAN_FRONTEND=noninteractive apt-get update + 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 && \ + DEBIAN_FRONTEND=noninteractive apt-get update # Install dependencies to build the firmware RUN apt-get install -y \ make \ @@ -15,6 +15,7 @@ RUN apt-get install -y \ python3 \ python3-pip \ clang-format \ + dfu-util \ wget --no-install-recommends && \ apt-get clean RUN python3 -m pip install bdflib diff --git a/setup.sh b/setup.sh index b11b89cc..6db08bed 100644 --- a/setup.sh +++ b/setup.sh @@ -1,7 +1,7 @@ #!/bin/bash set -e # 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 sudo mkdir -p /build cd /build