Win32ネイティブなldr-utilを作ってみる.

OSX上でのクロスコンパイル.

$ ../ldr-utils/configure --host=i386-pc-mingw32

とりあえず,上記のとおりで動くらしい.MSYSなら,オプション無しで行けるはず.
ただし,いくつか制約はあるっぽい.

configure: WARNING:

Your host system does not provide termios.h as required by POSIX.
Support for loading LDRs over the UART is disabled.

configure: WARNING:

Your host system does not provide POSIX threads support.

configure: WARNING:

Your host system does not provide mmap() as required by POSIX.
This function will be emulated by a big fat read().  I hope you
have bunches of free memory.

まあ,仕方ないなぁ,とおもいつつ,読み進める.
そして,最後のwarning.

configure: WARNING:

Please purchase a Linux machine.  Seriously.  Wal-Mart sells them
for $200.  You can afford one.

… I know ;-(