Implement monolithic static libretro build#2905
Open
imsys wants to merge 6 commits intonesbox:mainfrom
Open
Conversation
Collect sources, includes, and defines for a monolithic library build.
Contributor
Author
|
Contributor
Author
Baremetal basically failed on this Makefile: # Use firmware revision built/committed on: Feb 29 2024
FIRMWARE ?= dc94391863445ab867782d25ca6ae1e88579df5d
BASEURL = https://github.com/raspberrypi/firmware/blob/$(FIRMWARE)/boot
FILES = LICENCE.broadcom COPYING.linux \
bootcode.bin start.elf fixup.dat start4.elf fixup4.dat \
start_cd.elf fixup_cd.dat start4cd.elf fixup4cd.dat \
bcm2710-rpi-zero-2-w.dtb bcm2711-rpi-4-b.dtb bcm2711-rpi-400.dtb bcm2711-rpi-cm4.dtb \
bcm2712-rpi-5-b.dtb
FILES32 = armstub7-rpi4.bin kernel.img kernel7.img kernel7l.img
FILES64 = armstub8-rpi4.bin kernel8.img kernel8-rpi4.img kernel_2712.img
firmware: clean
@for file in $(FILES) ; \
do \
echo Downloading $$file ... ; \
wget -q -O $$file $(BASEURL)/$$file?raw=true ; \
done |
RobLoach
approved these changes
Mar 16, 2026
Contributor
RobLoach
left a comment
There was a problem hiding this comment.
Is there anything else needed for this?
RobLoach
suggested changes
Mar 16, 2026
Contributor
RobLoach
left a comment
There was a problem hiding this comment.
Oh, I guess just get bare metal to pass.
Contributor
Author
That was an unrelated thing. I already fixed in another PR. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Basically, libretro official binaries are stuck in a very old build.
We are trying to update it to the newest version at: libretro#28 @RobLoach
I was able to compile and build for all the systems, but then in the last one (emscripten), I noticed a thing: There are many systems with
-DLIBRETRO_STATIC=ONbuild pipelines expecting a single.astatic file as the output ofcmake --build.Like in: GameCube, 3DS, Wii, WiiU and Emscripten.
Currently, after building for those systems, I get many files. like:
and:
I noticed the problem because the
emscriptenpipeline has a build step using the .bc file, and I was getting:So I used the Antigravity editor with Gemini, and got it to do these changes to libretro.cmake
With these changes, it compiles for all those systems. I can attach the dockerfile for each system if requested. (I'm not attaching to not make this much longer.)
Anyway, I don't know if this is the appropriated way to fix this. But this is what I got.