Skip to content

Commit 00046ef

Browse files
authored
update to latest circle-stdlib
1 parent 3ec8082 commit 00046ef

File tree

5 files changed

+20
-22
lines changed

5 files changed

+20
-22
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,10 @@ jobs:
193193
# === Raspberry PI 1-4 Bare Metal ===
194194
rpi-baremetal:
195195
runs-on: ubuntu-latest
196-
container: nesbox/baremetalpi-tic80:latest
196+
container: miguelhrvs/baremetalapi-tic80:latest
197197

198198
steps:
199-
- uses: actions/checkout@v3
199+
- uses: actions/checkout@v4
200200
with:
201201
submodules: recursive
202202
fetch-depth: 0
@@ -211,7 +211,7 @@ jobs:
211211
cd vendor
212212
git clone --recursive https://github.com/smuehlst/circle-stdlib
213213
cd circle-stdlib
214-
git checkout fdb3c4a948421d47fddab8042a92f980cba43915
214+
git checkout db053a32c165c1b22423a47ed6cb5bddc72b51f2
215215
git submodule update --recursive
216216
./configure -r 3
217217
make -j$(nproc)
@@ -239,24 +239,25 @@ jobs:
239239
cp build/baremetalpi/boot/config.txt vendor/circle-stdlib/libs/circle/boot/config.txt
240240
241241
- name: Deploy
242-
uses: actions/upload-artifact@v3
242+
uses: actions/upload-artifact@v4
243243
with:
244244
name: "tic80-rpi-baremetal"
245245
path: |
246+
vendor/circle-stdlib/libs/circle/boot/bcm2710-rpi-zero-2-w.dtb
246247
vendor/circle-stdlib/libs/circle/boot/config.txt
247248
vendor/circle-stdlib/libs/circle/boot/kernel.img
248249
vendor/circle-stdlib/libs/circle/boot/bootcode.bin
249250
vendor/circle-stdlib/libs/circle/boot/start.elf
250251
vendor/circle-stdlib/libs/circle/boot/fixup.dat
251252
vendor/circle-stdlib/libs/circle/boot/LICENCE.broadcom
252253
253-
# === Raspberry PI 4 Bare Metal ===
254+
# === Raspberry PI 4-5 Bare Metal ===
254255
rpi4-baremetal:
255256
runs-on: ubuntu-latest
256-
container: nesbox/baremetalpi-tic80:latest
257+
container: miguelhrvs/baremetalapi-tic80:latest
257258

258259
steps:
259-
- uses: actions/checkout@v3
260+
- uses: actions/checkout@v4
260261
with:
261262
submodules: recursive
262263
fetch-depth: 0
@@ -271,7 +272,7 @@ jobs:
271272
cd vendor
272273
git clone --recursive https://github.com/smuehlst/circle-stdlib
273274
cd circle-stdlib
274-
git checkout fdb3c4a948421d47fddab8042a92f980cba43915
275+
git checkout db053a32c165c1b22423a47ed6cb5bddc72b51f2
275276
git submodule update --recursive
276277
./configure -r 4
277278
make -j$(nproc)
@@ -299,12 +300,14 @@ jobs:
299300
cp build/baremetalpi/boot/config.txt vendor/circle-stdlib/libs/circle/boot/config.txt
300301
301302
- name: Deploy
302-
uses: actions/upload-artifact@v3
303+
uses: actions/upload-artifact@v4
303304
with:
304305
name: "tic80-rpi4-baremetal"
305306
path: |
306307
vendor/circle-stdlib/libs/circle/boot/bcm2711-rpi-4-b.dtb
307308
vendor/circle-stdlib/libs/circle/boot/bcm2711-rpi-cm4.dtb
309+
vendor/circle-stdlib/libs/circle/boot/bcm2711-rpi-400.dtb
310+
vendor/circle-stdlib/libs/circle/boot/bcm2711-rpi-5-b.dtb
308311
vendor/circle-stdlib/libs/circle/boot/bootcode.bin
309312
vendor/circle-stdlib/libs/circle/boot/config.txt
310313
vendor/circle-stdlib/libs/circle/boot/COPYING.linux

build/baremetalpi/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
FROM ubuntu:18.04
1+
FROM ubuntu:24.04
22
RUN apt-get update
33
RUN apt-get install software-properties-common -y
44
RUN add-apt-repository ppa:git-core/ppa -y
55
RUN apt-get install wget git build-essential -y
6-
RUN wget -q https://cmake.org/files/v3.13/cmake-3.13.0-Linux-x86_64.sh
7-
RUN sh cmake-3.13.0-Linux-x86_64.sh --skip-license --prefix=/usr
8-
RUN cd /opt && wget -q https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/9-2020q2/gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2
9-
RUN cd /opt && tar xjf gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2
10-
ENV PATH=/opt/gcc-arm-none-eabi-9-2020-q2-update/bin/:$PATH
6+
RUN wget -q https://cmake.org/files/v3.30/cmake-3.30.3-linux-x86_64.sh
7+
RUN sh cmake-3.30.3-linux-x86_64.sh --skip-license --prefix=/usr
8+
RUN cd /opt && wget -q https://developer.arm.com/-/media/Files/downloads/gnu/13.3.rel1/binrel/arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi.tar.xz
9+
RUN cd /opt && tar -xf arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi.tar.xz
10+
ENV PATH=/opt/arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi/bin/:$PATH
1111
RUN mkdir /src
1212
WORKDIR /src

build/baremetalpi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ LIBS := \
5555
$(CIRCLEHOME)/addon/linux/liblinuxemu.a \
5656
$(CIRCLEHOME)/addon/SDCard/libsdcard.a \
5757
$(CIRCLEHOME)/addon/fatfs/libfatfs.a \
58+
$(CIRCLEHOME)/lib/sound/libsound.a \
5859
$(CIRCLEHOME)/lib/usb/libusb.a \
5960
$(CIRCLEHOME)/lib/input/libinput.a \
6061
$(CIRCLEHOME)/lib/fs/fat/libfatfs.a \

src/system/baremetalpi/syscore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <vc4/vchiq/vchiqdevice.h>
2323
#include <vc4/sound/vchiqsoundbasedevice.h>
2424
#else
25-
#include <circle/pwmsoundbasedevice.h>
25+
#include <circle/sound/pwmsoundbasedevice.h>
2626
#endif
2727

2828
#include <circle/input/mouse.h>

src/system/baremetalpi/utils.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ dbg("called chmod\n");
1818
return -1;
1919
}
2020

21-
int ftruncate(int fd, off_t length)
22-
{
23-
dbg("called ftruncate\n");
24-
return -1;
25-
}
26-
2721
int symlink(const char *target, const char *linkpath)
2822
{
2923
dbg("called symlink\n");

0 commit comments

Comments
 (0)