Skip to content

Commit 4204299

Browse files
alistair23alevy
authored andcommitted
newlib: Support building version 4.4.0.20231231
Signed-off-by: Alistair Francis <[email protected]>
1 parent 25a49c4 commit 4204299

File tree

5 files changed

+63
-0
lines changed

5 files changed

+63
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM debian:trixie
2+
3+
LABEL maintainer="Tock Project Developers <[email protected]>"
4+
LABEL version="0.1"
5+
LABEL description="Dockerfile to build libtock-c libc++."
6+
7+
# Disable Prompt During Packages Installation
8+
ARG DEBIAN_FRONTEND=noninteractive
9+
# Update Ubuntu Software repository
10+
RUN apt update
11+
12+
# Install our toolchains
13+
RUN apt install -y gcc-arm-none-eabi gcc-riscv64-unknown-elf
14+
15+
# Install needed tools
16+
RUN apt install -y git build-essential wget rsync zip texinfo
17+
18+
# Install needed library
19+
RUN apt install -y libmpc-dev file
20+
21+
# Clone the libtock-c source so we can use the build scripts
22+
RUN git clone https://github.com/alistair23/libtock-c
23+
RUN cd libtock-c && git fetch && git checkout 35f27e15df6a7672fae8cc4eb72350dcc42ef1bd
24+
25+
# Actually build the toolchain
26+
RUN cd libtock-c/libc++ && make GCC_VERSION=14.1.0 NEWLIB_VERSION=4.4.0.20231231 -j16
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
docker build -t libtock-c-libcpp-14.1.0 .
4+
id=$(docker create libtock-c-libcpp-14.1.0)
5+
docker cp $id:/libtock-c/libc++/libtock-libc++-14.1.0.zip libtock-libc++-14.1.0.zip
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
###
2+
### Dockerfile to build libtock-newlib-4.4.0.20231231
3+
###
4+
5+
FROM debian:trixie
6+
7+
LABEL maintainer="Tock Project Developers <[email protected]>"
8+
LABEL version="0.1"
9+
LABEL description="Dockerfile to build libtock-c newlib 4.4.0.20231231."
10+
11+
# Disable Prompt During Packages Installation
12+
ARG DEBIAN_FRONTEND=noninteractive
13+
# Update Ubuntu Software repository
14+
RUN apt update
15+
16+
# Install our toolchains
17+
RUN apt install -y gcc-arm-none-eabi gcc-riscv64-unknown-elf
18+
19+
# Install needed tools
20+
RUN apt install -y git build-essential wget rsync texinfo zip
21+
22+
# Clone the libtock-c source so we can use the build scripts
23+
RUN git clone https://github.com/alistair23/libtock-c
24+
RUN cd libtock-c && git fetch && git checkout 35f27e15df6a7672fae8cc4eb72350dcc42ef1bd
25+
26+
# Actually build the toolchain
27+
RUN cd libtock-c/newlib && make NEWLIB_VERSION=4.4.0.20231231
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
docker build -t libtock-c-newlib-4.4.0.20231231 .
4+
id=$(docker create libtock-c-newlib-4.4.0.20231231)
5+
docker cp $id:/libtock-c/newlib/libtock-newlib-4.4.0.20231231.zip libtock-newlib-4.4.0.20231231.zip

newlib/newlib-4.4.0.20231231.patch

Whitespace-only changes.

0 commit comments

Comments
 (0)