mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2024-12-04 23:45:26 +00:00
Add file
This commit is contained in:
parent
5f95cec5f4
commit
91074e5b4e
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
|||||||
|
build
|
9
docker-compose-nogit.yml
Normal file
9
docker-compose-nogit.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
version: '3.9'
|
||||||
|
|
||||||
|
services:
|
||||||
|
portapack-mayhem-dev:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: dockerfile-nogit-alpine
|
||||||
|
volumes:
|
||||||
|
- ".:/havoc"
|
9
docker-compose.yml
Normal file
9
docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
version: '3.9'
|
||||||
|
|
||||||
|
services:
|
||||||
|
portapack-mayhem-dev:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: dockerfile-alpine
|
||||||
|
volumes:
|
||||||
|
- "./bin:/havocbin"
|
29
dockerfile-alpine
Normal file
29
dockerfile-alpine
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# Download base image.
|
||||||
|
FROM alpine:edge
|
||||||
|
|
||||||
|
# Download ARM toolkit.
|
||||||
|
RUN apk add --no-cache gcc-arm-none-eabi gcc
|
||||||
|
|
||||||
|
# Create volume /havocbin for compiled firmware binaries
|
||||||
|
VOLUME /havocbin
|
||||||
|
|
||||||
|
# Copy build context (repository root) to /havocsrc
|
||||||
|
COPY ./ /havocsrc
|
||||||
|
|
||||||
|
# Fetch dependencies from APK
|
||||||
|
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
|
||||||
|
RUN apk update -U
|
||||||
|
RUN apk add --no-cache git tar wget cmake curl bzip2 make
|
||||||
|
RUN apk add --no-cache dfu-util ccache icu-data-full
|
||||||
|
RUN apk add --no-cache python3 py3-pip py3-yaml
|
||||||
|
RUN apk add --no-cache py3-pyyaml-env-tag
|
||||||
|
RUN apk add --no-cache g++ gcc clang clang-static clang-dev llvm-dev llvm-static
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
|
ENV LC_ALL C.UTF-8
|
||||||
|
|
||||||
|
CMD cd /havocsrc && \
|
||||||
|
mkdir build && cd build && \
|
||||||
|
cmake .. && make firmware && \
|
||||||
|
cp /portapack-havoc/firmware/portapack-h1-havoc.bin /havocbin
|
||||||
|
|
27
dockerfile-nogit-alpine
Normal file
27
dockerfile-nogit-alpine
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
FROM alpine:edge
|
||||||
|
|
||||||
|
# Download ARM toolkit.
|
||||||
|
RUN apk add --no-cache gcc-arm-none-eabi gcc
|
||||||
|
|
||||||
|
# Create volume /havoc/bin for compiled firmware binaries
|
||||||
|
VOLUME /havoc
|
||||||
|
WORKDIR /havoc/firmware
|
||||||
|
|
||||||
|
# Fetch dependencies from APK
|
||||||
|
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
|
||||||
|
RUN apk update -U
|
||||||
|
RUN apk add --no-cache git tar wget cmake curl bzip2 make
|
||||||
|
RUN apk add --no-cache dfu-util ccache icu-data-full
|
||||||
|
RUN apk add --no-cache python3 py3-pip py3-yaml
|
||||||
|
RUN apk add --no-cache py3-pyyaml-env-tag
|
||||||
|
RUN apk add --no-cache g++ gcc clang clang-static clang-dev llvm-dev llvm-static
|
||||||
|
|
||||||
|
ENV LANG C.UTF-8
|
||||||
|
ENV LC_ALL C.UTF-8
|
||||||
|
|
||||||
|
# Configure CCACHE
|
||||||
|
RUN mkdir ~/bin && cd ~/bin && \
|
||||||
|
for tool in gcc g++ cpp c++;do ln -s $(which ccache) arm-none-eabi-$tool;done
|
||||||
|
|
||||||
|
CMD cd .. && cd build && \
|
||||||
|
cmake .. && make firmware
|
BIN
sdcard/WAV/noise.wav
Normal file
BIN
sdcard/WAV/noise.wav
Normal file
Binary file not shown.
BIN
sdcard/WAV/tone square.wav
Normal file
BIN
sdcard/WAV/tone square.wav
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user