Skip to content

Commit 43fa08c

Browse files
committed
Add tiny build images
This adds Alpine based images that provide just enough software to build for boards of a single architecture + `tinybuild-all`, which provides the tools needed to build for all architectures except `native32` and ESP.
1 parent 3509e7d commit 43fa08c

File tree

7 files changed

+130
-0
lines changed

7 files changed

+130
-0
lines changed

tinybuild-all/Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM alpine:latest
2+
3+
LABEL maintainer="Marian Buschsieweke <[email protected]>"
4+
5+
ENV LC_ALL C.UTF-8
6+
ENV LANG C.UTF-8
7+
8+
# libucontext-dev requires some fixes for now
9+
RUN \
10+
apk --no-cache add \
11+
libucontext-dev \
12+
&& \
13+
mv /usr/include/arch/common/libucontext/bits.h /usr/include/libucontext && \
14+
rm -rf /usr/include/arch && \
15+
apk --no-cache add \
16+
gcc \
17+
musl-dev \
18+
linux-headers \
19+
newlib-arm-none-eabi \
20+
picolibc-arm-none-eabi \
21+
newlib-riscv-none-elf \
22+
picolibc-riscv-none-elf \
23+
newlib-msp430-elf \
24+
avr-libc \
25+
python3 \
26+
make \
27+
unzip \
28+
git

tinybuild-arm/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM alpine:latest
2+
3+
LABEL maintainer="Marian Buschsieweke <[email protected]>"
4+
5+
ENV LC_ALL C.UTF-8
6+
ENV LANG C.UTF-8
7+
8+
RUN \
9+
apk --no-cache add \
10+
newlib-arm-none-eabi \
11+
picolibc-arm-none-eabi \
12+
python3 \
13+
make \
14+
unzip \
15+
git

tinybuild-avr/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM alpine:latest
2+
3+
LABEL maintainer="Marian Buschsieweke <[email protected]>"
4+
5+
ENV LC_ALL C.UTF-8
6+
ENV LANG C.UTF-8
7+
8+
RUN \
9+
apk --no-cache add \
10+
avr-libc \
11+
python3 \
12+
make \
13+
unzip \
14+
git

tinybuild-msp430/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM alpine:latest
2+
3+
LABEL maintainer="Marian Buschsieweke <[email protected]>"
4+
5+
ENV LC_ALL C.UTF-8
6+
ENV LANG C.UTF-8
7+
8+
RUN \
9+
apk --no-cache add \
10+
newlib-msp430-elf \
11+
python3 \
12+
make \
13+
unzip \
14+
git

tinybuild-native32/Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM i386/alpine:latest
2+
3+
LABEL maintainer="Marian Buschsieweke <[email protected]>"
4+
5+
ENV LC_ALL C.UTF-8
6+
ENV LANG C.UTF-8
7+
8+
# libucontext-dev requires some fixes for now
9+
RUN \
10+
apk --no-cache add \
11+
libucontext-dev \
12+
&& \
13+
mv /usr/include/arch/common/libucontext/bits.h /usr/include/libucontext && \
14+
rm -rf /usr/include/arch && \
15+
apk --no-cache add \
16+
gcc \
17+
musl-dev \
18+
linux-headers \
19+
python3 \
20+
make \
21+
unzip \
22+
git

tinybuild-native64/Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM alpine:latest
2+
3+
LABEL maintainer="Marian Buschsieweke <[email protected]>"
4+
5+
ENV LC_ALL C.UTF-8
6+
ENV LANG C.UTF-8
7+
8+
# libucontext-dev requires some fixes for now
9+
RUN \
10+
apk --no-cache add \
11+
libucontext-dev \
12+
&& \
13+
mv /usr/include/arch/common/libucontext/bits.h /usr/include/libucontext && \
14+
rm -rf /usr/include/arch && \
15+
apk --no-cache add \
16+
gcc \
17+
musl-dev \
18+
linux-headers \
19+
python3 \
20+
make \
21+
unzip \
22+
git

tinybuild-risc-v/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM alpine:latest
2+
3+
LABEL maintainer="Marian Buschsieweke <[email protected]>"
4+
5+
ENV LC_ALL C.UTF-8
6+
ENV LANG C.UTF-8
7+
8+
RUN \
9+
apk --no-cache add \
10+
newlib-riscv-none-elf \
11+
picolibc-riscv-none-elf \
12+
python3 \
13+
make \
14+
unzip \
15+
git

0 commit comments

Comments
 (0)