From owner-freebsd-ppc Wed Jul 10 20:29:19 2002 Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2AA037B400 for ; Wed, 10 Jul 2002 20:29:17 -0700 (PDT) Received: from gt3.OntheNet.com.au (nt.com.au [203.13.70.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3307943E54 for ; Wed, 10 Jul 2002 20:29:15 -0700 (PDT) (envelope-from peterg@ptree32.com.au) Received: from ptree32.com.au (CPE-203-45-245-64.qld.bigpond.net.au [203.45.245.64]) by gt3.OntheNet.com.au (8.11.4/8.11.4) with ESMTP id g6B3TR605786; Thu, 11 Jul 2002 13:29:28 +1000 (EST) Message-ID: <3D2D0009.1710D79F@ptree32.com.au> Date: Thu, 11 Jul 2002 13:48:25 +1000 From: Peter Grehan Organization: Ptree32 Pty Ltd X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.2.14-12 i686) X-Accept-Language: en MIME-Version: 1.0 To: Andy Cc: freebsd-ppc@FreeBSD.ORG Subject: Re: current -CURRENT and compiling powerpc port References: <1026349980.3d2cdb9c1599a@www.wantpackets.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Anything to be done? I briefly searched the list archives but did not find > new compilation instructions. The Oct 18 toolchain port should still be OK, except that it defines __NetBSD__ , which breaks the USB code. I'm using gcc-3.1/binutils-2.12.1 for the kernel, built from stock gcc source. For gcc, the following config was used: ./configure --target=powerpc-freebsd5 --program-prefix=powerpc-fbsd- --with-gnu-as --with-gnu-ld --disable-threads --disable-shared Note that you have to specify powerpc-freebsd5, and not just powerpc-freebsd. Also, as I mentioned in a previous email, the compiler defines _BIG_ENDIAN, which has to be undone in powerpc/include/endian.h. For binutils, it was a bit easier: ./configure --target=powerpc-freebsd5 --program-prefix=powerpc-fbsd- later, Peter. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message