[hatari-devel] Crosscompiling Hatari for GP2X Wiz

Eero Tamminen oak at helsinkinet.fi
Sun Mar 27 17:50:18 CEST 2011


Hi,

On sunnuntai 27 maaliskuu 2011, Matthias Arndt wrote:
> I'm interested in crosscompiling Hatari for a different target platform,
> notably GP2X Wiz.
> 
> How can I control which actuall gcc compiler is used?
> I basically need to tweak a few compile settings:
> - use a different GNU Toolchain (for the main compile)
> - disable a lot of PC specific libs (AVI, audio recording, etc.)
> - inject my own defines into the build to de/activate functionalities

Just edit the CMake configuration variables with ccmake (ncurses UI).

Or edit it (CMakeCache.txt I think) directly with text editor.


> _ still use host gcc for the (old) UAE core

For the code generator?  src/uae-cpu/CMakeLists.txt always uses "cc"
for that.

Thomas, I think this is a regression from the old Makefiles, with those
there was a config value for host gcc, wasn't there?


> I esp. have to supply a new SDL joystick handler that will inject
> keyboard events so I can use the basic event handling infrastructure for
> lack of proper keyboard.

No need for that, just configure the keys in the Hatari configuration file.


> Any useful ideas on this topic? I think it is possible with a slightly
> tweaked codebased.
> 
> Ofcourse any patches will be made available later if I get a working
> result.

A suitable "etc/gp2x.cfg" config file should be enough.  The etc/ subdir
already has example configs for Windows WinCE phones and Nokia's
Linux N8x0 tablets.


	- Eero



More information about the hatari-devel mailing list