Add dfu converter (#336)
* Install hex2dfu in Dockerfile * Add convert and upload dfu files for bootloader and firmware
This commit is contained in:
@@ -66,6 +66,13 @@ RUN apt update && \
|
||||
dfu-util \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
# install hex2dfu
|
||||
|
||||
RUN wget https://github.com/rusdacent/hex2dfu/archive/master.zip --output-document=hex2dfu.zip && \
|
||||
unzip hex2dfu.zip && \
|
||||
cd hex2dfu-master && gcc hex2dfu.c ED25519/*.c -o hex2dfu && \
|
||||
ln -s ${PWD}/hex2dfu /usr/bin/hex2dfu
|
||||
|
||||
COPY entrypoint.sh syntax_check.sh /
|
||||
|
||||
RUN chmod +x /syntax_check.sh
|
||||
|
Reference in New Issue
Block a user