Skip to content

Added build scripts for gcc-arm-none-eabi cross compiler#5

Open
andersnm wants to merge 4 commits intoDavidebyzero:masterfrom
andersnm:feature/gcc-toolchain
Open

Added build scripts for gcc-arm-none-eabi cross compiler#5
andersnm wants to merge 4 commits intoDavidebyzero:masterfrom
andersnm:feature/gcc-toolchain

Conversation

@andersnm
Copy link
Copy Markdown
Contributor

@andersnm andersnm commented Sep 7, 2024

Closes #2. This PR adds a make.sh that builds a working gbagi.bin with the gcc-arm-none-eabi cross compiler on Linux (Debian Bookworm). It still builds with the original DevKitAdv's make.bat on Windows as a reference. Tested mingw-romgui + gcc-arm-gbagi + sq1 on mGBA

  • Maintain separate linkscript/crt0 pr toolchain under the crtls directory; includes a README
  • gcc-arm uses latest linkscript from DevKitPro, with minor changes
  • gcc-arm uses original crt0, with minor changes
  • gcc-arm produces an image > 128KiB so have also incorporated your "automatic-size" branch in order to test it

Decided to keep the original crt0; it would be nice to migrate to DevKitPro's crt0 as well, but involves porting the interrupt handling which is better done separately.

The PR also adds a repo README with build instructions for Windows and Linux. Github Actions coming later

…y modified cart linkscript from DevKitPro and original crt0.s. Changes are documented in crtls/README.md. Added main README.md with build instructions for Windows and Linux/Debian.
… it to the 128 KiB mark

This allows the ROM to be flexibly larger than 128 KiB."

Based on commit 8a93fa1 by Davidebyzero
@Davidebyzero Davidebyzero force-pushed the master branch 4 times, most recently from 9fde4fb to f4cce5b Compare September 22, 2024 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build on Linux, Github Actions, linker errors

1 participant