On Aug 4, 2005, at 6:35 AM, Alastair Rankine wrote:
(Darwinports newbie, obviously)
So it seems that when you build xnu, it builds a ppc/i386 universal binary. What is the darwinbuild magic to disable this and allow me to build a kernel that will run on my Powerbook G4?
Umm, I'm pretty sure your Powerbook G4 *is* ppc ;) It should boot fine assuming it was built properly.
I tried modifying the .build/8C46.plist file to add the following to the xnu definition:
environment = { RC_ARCHS = "ppc"; };
But no dice. What am I missing?
I'm not sure where but you'll need to remove "RC_i386=YES" and change RC_ARCHS to "RC_ARCHS=ppc" in the .plist . I would recommend letting it build fat, and thinning later as I've had much better luck building Darwin projects with a fat, errr, 'universal' toolchain.
Alternatively, how can I turn the universal binary back into a bootable PPC binary? (possibly not a darwinbuild question)
Why do you think universal binaries won't run on ppc? Generally a universal(fat) binary is built to run on ppc{64} AND x86. Anyway, see manpages for lipo(1) and ditto(1) if you really want to thin the unneeded archs from your binaries. --Kito
_______________________________________________ darwinbuild mailing list darwinbuild@opendarwin.org http://www.opendarwin.org/mailman/listinfo/darwinbuild