Sunday, December 28, 2008

Using configure scripts to cross compile for Wii

Here's something I found while trying to compile ODE SVN for the Wii. It seems that most configure scripts aren't written to support powerpc-gekko targets, but I found a post on the devkitPro forums with an easy fix. You just have to add four lines to config.sub:
@@ -230,6 +230,10 @@
basic_machine=m68k-atari
os=-mint
;;
+ -gekko)
+ basic_machine=powerpc-eabi
+ os=-elf
+ ;;
esac

# Decode aliases for certain CPU-COMPANY combinations.

Now you can invoke the configure script with --host=powerpc-gekko and do some cross-compiling, as long as you have devkitPro set up with the binaries on your path.

No comments:

Post a Comment