forked from spm81/MCFW_UV-K5_Open_Source_Firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ebafb3a
commit ba33362
Showing
4 changed files
with
53 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
# hadolint ignore=DL3007 | ||
FROM archlinux:latest | ||
|
||
FROM --platform=amd64 archlinux:latest | ||
RUN pacman -Syyu base-devel --noconfirm | ||
RUN pacman -Syyu arm-none-eabi-gcc --noconfirm | ||
RUN pacman -Syyu arm-none-eabi-newlib --noconfirm | ||
RUN pacman -Syyu git --noconfirm | ||
RUN pacman -Syyu python-pip --noconfirm | ||
RUN pacman -Syyu python-crcmod --noconfirm | ||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN set -eux; \ | ||
pacman -Syy --noconfirm \ | ||
arm-none-eabi-gcc \ | ||
arm-none-eabi-newlib \ | ||
base-devel \ | ||
git \ | ||
python-crcmod | ||
|
||
RUN git submodule update --init --recursive | ||
RUN git submodule update --init --recursive | ||
#RUN make && cp firmware* compiled-firmware/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/sh | ||
docker build -t uvk5 . | ||
docker run -v "$(pwd)/compiled-firmware:/app/compiled-firmware" uvk5 /bin/bash -c "cd /app && make && cp firmware* compiled-firmware/" | ||
docker run --rm -v ${PWD}/compiled-firmware:/app/compiled-firmware uvk5 /bin/bash -c "cd /app && make && cp firmware* compiled-firmware/" |