On 2/22/10, Alexander Graf agraf@suse.de wrote:
Blue Swirl wrote:
On 2/22/10, Alexander Graf agraf@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.