Stephane-D / SGDK

SGDK - A free and open development kit for the Sega Mega Drive
https://www.patreon.com/SGDK
MIT License
1.7k stars 179 forks source link

Use crosstool-ng to build latest m68k version of gcc for repo workflow #321

Closed iratahack closed 3 months ago

iratahack commented 3 months ago

These changes build the latest available (gcc 13.2.0) m68k dev tools replacing the 6.x.x version in the docker container environment. Also uses cmake to build the host based executables and SGDK libraries.

@joeyparrish , please take a look at the changes and let me know if you see anything obvious. @Stephane-D , I think I have the build of xgm2tool.jar working let me know if you have any comments.

Is a C-library required? Newlib?

Stephane-D commented 3 months ago

I removed git sub modules, the make the repo more complex to deal and we don't need to update both musicg / sjasm. I keep musicg in sources format directly into XGM2Tool folder. Sjasm is also now in sources format in tools folder. Note that the sgdk-docker git task is failing currently.

Stephane-D commented 3 months ago

These changes build the latest available (gcc 13.2.0) m68k dev tools replacing the 6.x.x version in the docker container environment. Also uses cmake to build the host based executables and SGDK libraries.

@joeyparrish , please take a look at the changes and let me know if you see anything obvious. @Stephane-D , I think I have the build of xgm2tool.jar working let me know if you have any comments.

Is a C-library required? Newlib?

Forgot to reply here but only libgcc is needed and only a very sub part of it is really used by SGDK.

iratahack commented 3 months ago

I removed git sub modules, the make the repo more complex to deal and we don't need to update both musicg / sjasm.

I keep musicg in sources format directly into XGM2Tool folder. Sjasm is also now in sources format in tools folder.

Note that the sgdk-docker git task is failing currently.

I'll take a look.

Stephane-D commented 3 months ago

If it helps : image

maybe a typo in the repo name ?