From owner-freebsd-arm@FreeBSD.ORG Fri Jun 5 23:26:31 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6AA3106566B for ; Fri, 5 Jun 2009 23:26:31 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail6.sea5.speakeasy.net (mail6.sea5.speakeasy.net [69.17.117.8]) by mx1.freebsd.org (Postfix) with ESMTP id C3F048FC0C for ; Fri, 5 Jun 2009 23:26:31 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 26611 invoked from network); 5 Jun 2009 23:26:31 -0000 Received: from april.chuckr.org (HELO april.telenix.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 5 Jun 2009 23:26:30 -0000 Message-ID: <4A29A9AA.2090609@telenix.org> Date: Fri, 05 Jun 2009 19:26:34 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.19 (X11/20090121) MIME-Version: 1.0 To: Guillaume Ballet References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: ARMv7 - EABI - Cross Compiler X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2009 23:26:32 -0000 Guillaume Ballet wrote: >> Doesn't xdev build the 4.2.1 version of gcc, like what's in the tree now? >> That's unacceptable to me, gcc didn't bring in support for the Cortex-A8 >> processor until 4.3.0. I was able to build a cross-gcc easily using a target of >> "arm-linux-gnueabi", but I'm not sure if that sort of gcc will do for building >> FreeBSD. I'll worry about getting that gcc into the build, but will it work for >> me on a binary basis? >> > > I used arm-none-eabi to compile my loader for the BeagleBoard so as to > get rid of the linux-specific stuff by default. But maybe you should > define something like arm-freebsd-eabi in gcc's build configuration? Always a thing of extremes for me. I know Makefiles pretty darned well, both the BSD and teh GNU sort, but as well as I know them, that's how BADLY I misunderstand anything dealing with those configure scripts. I can't even begin to pick apart the code for those things. Irritates me, because if I find a problem in a makefile, I pop out an answer with the greatest of ease, but if it's well coded so that configure reruns itself immediately if there's any change in the makefile, then it has to run configure, and I'm basically utterly screwed. I like our BSD build system, not a configure script in sight! However, now that I understand that I can use arm-none-eabi, I am pretty sure I can do things, and the configure scripts in gcc aren't so well engineered to force me to deal with them like that. If I can deal with a configure script as a shell script, I can do that, it's dealing with it as m4 macros that leaves me cold.