Welcome! Log In Create A New Profile

Advanced

Build Wii software with autotools

Posted by LCID_Fire 
Build Wii software with autotools
May 24, 2009 03:01PM
Since I did not find any topics related to compiling Wii Apps via autotools I wonder whether nobody hates make as much as mii (phun intended ;)).

I'm currently starting to port a cross platform game to the Wii.
First off I think we'd need to port the wii.rules and basic.rules to configure.ac.
Therefor I took the variables of basic.sules and incorporated them into my configure.ac:
AC_INIT([MyAppName],[0.6],[some@mail.net])
AC_CANONICAL_TARGET
AC_CANONICAL_HOST
AC_CANONICAL_SYSTEM
#---------------------------------------------------------------------------------
# the prefix on the compiler executables
#---------------------------------------------------------------------------------
GEKKOPREFIX=powerpc-gekko-

AS=$GEKKOPREFIXas
CC=$GEKKOPREFIXgcc
CXX=$GEKKOPREFIXg++
AR=$GEKKOPREFIXar
OBJCOPY=$GEKKOPREFIXobjcopy

MACHDEP="-DGEKKO -mrvl -mcpu=750 -meabi -mhard-float"
AC_SUBST(MACHDEP)
I'm not sure though whether I still need to explicitly state
./configure --build=powerpc
when attemting to build the project (don't the gekkobinaries force the ppc compilation anyway?).
BTW: Why aren't the patches for the wii compilation incorporated into gcc itself?
Am I on the right track? Comments, hints, etc. welcome.

After that I'd have a look at the rules themselfs - but one step at a time.
Re: Build Wii software with autotools
May 24, 2009 03:11PM
I've cross compiled some libs (libbinio and adplug) using the configure script. All I do is edit config.sub and add in:


-gekko)
            basic_machine=powerpc-eabi
            os=-elf
            ;;

and when I run configure I use ./configure --host=powerpc-gekko

never had any problems, yet.


EDIT: nm, after reading over the post again I don't think that's what you were asking for :D



Edited 1 time(s). Last edit at 05/24/2009 03:14PM by MrPeanut.
Re: Build Wii software with autotools
May 24, 2009 07:16PM
Quote
MrPeanut
EDIT: nm, after reading over the post again I don't think that's what you were asking for :D
Weellll - not entirely - but nevertheless some hints in good directions, thanks.
Sorry, only registered users may post in this forum.

Click here to login