[OpenBIOS] [commit] r879 - in trunk/openbios-devel/config: examples scripts

Blue Swirl blauwirbel at gmail.com
Sun Oct 3 22:03:09 CEST 2010


On Sun, Oct 3, 2010 at 7:55 PM, Andreas Färber <andreas.faerber at web.de> wrote:
> Am 03.10.2010 um 21:49 schrieb Blue Swirl:
>
>> On Sun, Oct 3, 2010 at 7:44 PM, Andreas Färber <andreas.faerber at web.de>
>> wrote:
>>>
>>> Am 03.10.2010 um 20:05 schrieb Blue Swirl:
>>>
>>>> On Sun, Oct 3, 2010 at 5:29 PM, Andreas Färber <andreas.faerber at web.de>
>>>> wrote:
>>>>>
>>>>> Am 03.10.2010 um 19:20 schrieb Andreas Färber:
>>>>>
>>>>>> Am 03.10.2010 um 16:23 schrieb repository service:
>>>>>>
>>>>>>> Author: blueswirl
>>>>>>> Date: Sun Oct  3 16:23:18 2010
>>>>>>> New Revision: 879
>>>>>>> URL: http://tracker.coreboot.org/trac/openbios/changeset/879
>>>>>>>
>>>>>>> Log:
>>>>>>> Improve compile system
>>>>>>>
>>>>>>> Autodetect cross compilation, so cross- prefix is no longer needed.
>>>>>>>
>>>>>>> Unify cross and native configurations.
>>>>>>>
>>>>>>> Add unix- prefix to enable openbios-unix build for selected target,
>>>>>>> similarly builtin- for builtin targets etc.
>>>>>>
>>>>>> This had the side-effect that configuring for more than one
>>>>>> architecture
>>>>>> no longer works here.
>>>>>
>>>>> ... and it broke ppc cross-compilation from Darwin/ppc. It tries to use
>>>>> host
>>>>> gcc now.
>>>>
>>>> I don't have any problems with multiple architectures, most of them
>>>> cross compiled. The resulting binaries also work.
>>>>
>>>> Please try removing any old object directories and rerun switch-arch.
>>>
>>> Did that already. Which architecture did you try on? Like I said, my
>>> issue
>>> is OSX/ppc -> qemu-ppc using gcc instead of powerpc-elf-gcc.
>>
>> ppc sparc32 sparc64 amd64 (native)
>>
>> Is the problem that you need to use powerpc-elf-gcc, even when host
>> architecture is PPC?
>
> Yes, Apple's gcc would create Mach-O binaries, and the assembler fails on
> start.S for EXCEPTION_PREAMBULE.

HOSTARCH=OSX ./config/scripts/switch-arch ... should work.

A complete solution would perhaps involve switch-arch checking whether
the candidate compiler can produce ELF binaries.



More information about the OpenBIOS mailing list