Skip to content

z64hdr update, upgrade mips toolchain, use fado for z64hdr actors#2

Draft
Dragorn421 wants to merge 3 commits intoNokaubure:mainfrom
Dragorn421:new_z64hdr_mips_tools_and_fado
Draft

z64hdr update, upgrade mips toolchain, use fado for z64hdr actors#2
Dragorn421 wants to merge 3 commits intoNokaubure:mainfrom
Dragorn421:new_z64hdr_mips_tools_and_fado

Conversation

@Dragorn421
Copy link

This upgrades the gcc and binutils binaries to 11.3.0, accomodates for the next z64hdr update, and for compiling z64hdr-based actors uses fado instead of nOVL (for z64ovl, nOVL is still used)

You need:

The gcc folder with the old binaries can/should be deleted
The mips32-elf-toolchain folder doesn't include z64ovl as I'm not sure what repo to get it from and don't have any z64ovl actor on hand anyway

I haven't tested z64ovl actors, but I think simply changing references to gcc/ paths is enough. I don't think I updated everything though, compiling should work but updating by downloading idk where that is (is it even useful anymore)

How the code changes work:

  • I split CompileButton_Click into CompileButton_Click_z64ovl and CompileButton_Click_z64hdr depending on the "Use z64hdr" checkbox
  • CompileButton_Click_z64ovl is mostly unchanged except gcc -> mips32-elf-toolchain
  • z64hdr compilation works by executing the compile_z64hdr.bat script, which is not written by CAT, instead that file stays and it is passed arguments through environment variables (probably sloppy but seemed better than on the command line)
  • for z64hdr compile, bss and initvars are read from objdump output

@Dragorn421 Dragorn421 marked this pull request as draft May 26, 2022 18:36
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.

1 participant