From owner-freebsd-hackers Fri Apr 28 13:17:22 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from southpass.baynetworks.com (ns2.BayNetworks.COM [134.177.3.16]) by hub.freebsd.org (Postfix) with ESMTP id B9C2B37B529 for ; Fri, 28 Apr 2000 13:17:19 -0700 (PDT) (envelope-from bwithrow@BayNetworks.COM) Received: from mailhost.BayNetworks.COM (h8754.s84f5.BayNetworks.COM [132.245.135.84]) by southpass.baynetworks.com (8.9.1/8.9.1) with ESMTP id NAA01169 for ; Fri, 28 Apr 2000 13:10:06 -0700 (PDT) Received: from pobox.engeast.BayNetworks.COM (pobox.engeast.baynetworks.com [192.32.61.6]) by mailhost.BayNetworks.COM (8.9.1/8.8.8) with ESMTP id QAA24056 for ; Fri, 28 Apr 2000 16:22:04 -0400 (EDT) Received: from baynetworks.com (kyzyl [192.32.150.103]) by pobox.engeast.BayNetworks.COM (SMI-8.6/BNET-97/04/24-S) with ESMTP id QAA14661; Fri, 28 Apr 2000 16:17:17 -0400 for Message-Id: <200004282017.QAA14661@pobox.engeast.BayNetworks.COM> X-Mailer: exmh version 2.1.1 10/15/1999 To: freebsd-hackers@freebsd.org Subject: Cross building freebsd? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 28 Apr 2000 16:14:22 -0400 From: Robert Withrow Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've searched through the mailing list archives and otherwise searched around, but haven't found any real solid information, so... I'm looking for any and all information about for cross-building Freebsd for embedded Powerpc platforms. (The powerpc porting project is just getting started and this info isn't available there.) [Background: I've ported Chorus and Linux to this platform. So I pretty well understand the generic process. I just need freebsd-specific info.] Specifically, I need to know: 1. Exactly what FreeBSD-specific things need to be done to a GCC-2.95.2 compilation system to get cross builds to work? a. What headers should be used? (Not newlib, right?) b. What as and ld should be used. c. What kind of abi options are necessary? Like stack frames, -f, etc... d. etc.... I've scanned through the GCC and Binutils stuff and I have a rough idea, but I'd appreciate advice from someone who's actually been there and done that! (Maybe one of the original Alpha porters?) 2. What are the mechanical steps needed to insert a new port? a. I plan to scan for "[Aa]lpha" in the entire source tree and do what they did, but perhaps there is an easier way? Like, where are architecture-specific things hiding? 3. How do you actually cross-build FreeBSD? Is there a FAQ? a. Again, I plan on scanning for alpha, but a cookbook would be easier. Thanks! -- Robert Withrow -- (+1 978 288 8256) BWithrow@BayNetworks.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message