[OpenBIOS] [PATCH 7/7] PPC: Disable host binary build

Blue Swirl blauwirbel at gmail.com
Tue Feb 23 22:42:29 CET 2010


On 2/22/10, Alexander Graf <agraf at suse.de> wrote:
> Blue Swirl wrote:
>  > On 2/22/10, Alexander Graf <agraf at suse.de> wrote:
>  >
>  >> On PPC the host binary build always fails for me. Since I guess I'm
>  >>
>  >
>  > What's the problem?
>  >
>
>
> Building OpenBIOS for ppc
>  Building...error:
>  /usr/bin/ld: Warning: openbios-unix uses hard float, libfs.a(btree.o)
>  uses soft float
>  /usr/bin/ld: Warning: openbios-unix uses hard float, liblibc.a(ctype.o)
>  uses soft float
>  /usr/bin/ld: Warning: openbios-unix uses hard float, liblibc.a(diskio.o)
>  uses soft float
>  /usr/bin/ld: Warning: openbios-unix uses hard float, liblibc.a(extra.o)
>  uses soft float
>  /usr/bin/ld: Warning: openbios-unix uses hard float, liblibc.a(misc.o)
>  uses soft float
>  /usr/bin/ld: Warning: openbios-unix uses hard float, liblibc.a(string.o)
>  uses soft float
>  /usr/bin/ld: Warning: openbios-unix uses hard float,
>  liblibc.a(vsprintf.o) uses soft float
>  libmodules.a(elf-loader.o): In function `elf_loader_init_program':
>  /home/agraf/git/openbios-devel/obj-ppc/../modules/elf-loader.c:77:
>  undefined reference to `flush_icache_range'
>  libmodules.a(xcoff-loader.o): In function `xcoff_loader_init_program':
>  /home/agraf/git/openbios-devel/obj-ppc/../modules/xcoff-loader.c:110:
>  undefined reference to `flush_icache_range'
>  collect2: ld returned 1 exit status
>  make[1]: *** [openbios-unix] Error 1
>  make[1]: *** Waiting for unfinished jobs....
>  make[1]: Leaving directory `/home/agraf/git/openbios-devel/obj-ppc'
>  make: *** [build] Error 1
>

I think the first patch should help with this, could you test it?

>
>  >
>  >>  the only one actually building OpenBIOS ppc on ppc and I don't really
>  >>  care that much about debugging Forth code in my Linux environment,
>  >>  I guess we can just disable building it by default.
>  >>
>  >
>  > Maybe we could introduce unix-ppc/sparc etc. target for switch-arch to
>  > enable unix build.
>  >
>
>
>
> Maybe, yeah. I don't see any value in building it when all I want is a
>  firmware image ;-).

The second patch changes the switch-arch command a bit so that unix
target must be enabled with unix-amd64 etc. Removal of cross-xxx files
comes as a bonus.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-Unix-target-build-on-PPC-host.patch
Type: text/x-diff
Size: 767 bytes
Desc: not available
URL: <http://lists.openbios.org/pipermail/openbios/attachments/20100223/20ca05b1/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Improve-compilation.patch
Type: text/x-diff
Size: 30563 bytes
Desc: not available
URL: <http://lists.openbios.org/pipermail/openbios/attachments/20100223/20ca05b1/attachment-0003.bin>


More information about the OpenBIOS mailing list