[flashrom] [PATCH] Cross-compilation fixes
Carl-Daniel Hailfinger
c-d.hailfinger.devel.2006 at gmx.net
Thu Dec 8 21:18:07 CET 2011
Am 08.12.2011 20:38 schrieb Rudolf Marek:
> On 5.12.2011 03:00, Carl-Daniel Hailfinger wrote:
>> Switch from host OS detection to target OS detection.
>> Complain about unknown target OS/architecture.
>> Disable annoying format string warnings on DJGPP.
>>
>> Native and cross-compilation now usually just require setting CC.
>> Examples:
>> make CC=i586-pc-msdosdjgpp-gcc
>> make CC="clang -m64"
>> make CC=i686-w64-mingw32-gcc
>>
>> I tested the following compilation types:
>> i386 Linux native (gcc, clang)
>> i386 Linux -> x86_64 Linux (clang)
>> i386 Linux -> MinGW32
>> i386 Linux -> DJGPP
>>
>> I'd appreciate tests for:
>> x86_64 Linux native
>> MinGW native
>> Cygwin native
>> powerpc Linux native
>>
> make CC=powerpc-unknown-linux-gnuspe-gcc
> flashrom: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1
> (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.22,
> with unknown capability 0x41000000 = 0x13676e75, with unknown
> capability 0x10000 = 0xb0402, not stripped
>
> This was with e500. There is a lot of powerPCs like 60x and 4xx.
>
> make CC=armel-unknown-linux-gnueabi-gcc
> Checking for a C compiler... found.
> Target arch is unknown. Aborting.
> make: *** [compiler] Error 1
Thanks a lot for your tests!
> Most likely no arm support?
Indeed, ARM support is missing. I think it is mainy held back by libpci
breakage for which we only have a really hackish workaround.
Regards,
Carl-Daniel
--
http://www.hailfinger.org/
More information about the flashrom
mailing list