From owner-freebsd-arm@FreeBSD.ORG Sat May 18 14:38:39 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id BBDD234A for ; Sat, 18 May 2013 14:38:39 +0000 (UTC) (envelope-from jbirch@jbirch.net) Received: from mail-ie0-x230.google.com (mail-ie0-x230.google.com [IPv6:2607:f8b0:4001:c03::230]) by mx1.freebsd.org (Postfix) with ESMTP id 9008A355 for ; Sat, 18 May 2013 14:38:39 +0000 (UTC) Received: by mail-ie0-f176.google.com with SMTP id at1so10874852iec.7 for ; Sat, 18 May 2013 07:38:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:x-originating-ip:in-reply-to:references :date:message-id:subject:from:to:content-type:x-gm-message-state; bh=EoMFzh4rFYbaRy8m4mhr5nWE9FDXVS0RYPC3pkAhAgk=; b=LCZn4DU5I1EFX3vIEx+IqDd6LuF79tkY/5bi2SjASDvY1esKwSYrnqA/YMHHOnfenG upwoDki54/HRCA3I2FRdv80hqk7y5g8pLTRjioDSeqwWB/E3Olb9WfQQ9JRtIcHlfD2E q4f8zpC7+U1mE5ZknPunL/rk0eX+XrrAK8+FtE5es58uLHdEyky5w+t2gTDUKbjlNKW9 eYPyyQT8/Uum34C48mE63jlB7pHiHfJghv1vpBy8kCvu6gwYUjv4IYAgYEekQceSUaRk Y8PrDlocTU1cebZCUOEyhaaNtb0408Be1ZDTvArk6tyj6rGxYyuuf8NmEDcX40Yh19kP VzDQ== MIME-Version: 1.0 X-Received: by 10.50.92.69 with SMTP id ck5mr1124616igb.107.1368887919135; Sat, 18 May 2013 07:38:39 -0700 (PDT) Received: by 10.42.211.133 with HTTP; Sat, 18 May 2013 07:38:39 -0700 (PDT) X-Originating-IP: [120.148.193.158] In-Reply-To: References: <3B16A2E5-C92B-4248-BE98-DD5C1194CB05@freebsd.org> <20130518100512.57c47fe6@bender> Date: Sun, 19 May 2013 00:38:39 +1000 Message-ID: Subject: Re: Port: U-Boot for BeagleBone From: Jason Birch To: freebsd-arm X-Gm-Message-State: ALoCoQn/TTMgeeV0oXQV5QmnwAQpvmRQhVcqVyMCwZ6HVKzDsuDrQWLeB2II6nJ4mkz3qcNxxHlq Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 May 2013 14:38:39 -0000 I'm not sure how it'd work internally in the ports tree (I'm a ports consumer, not a contributor), but I'd find it weird if a U-Boot port required me to get any devel/cross-* ports if U-Boot was able to be built by Clang native to FreeBSD 9.X+ and I had Clang set as my CC, CPP, CXX. I don't know the solution to this, given that it's probably not acceptable to have a port configuration item that says "[X] Use Clang" - that sort of compiler configuration is 'external' to the ports tree, if you get my meaning. What I mean by that is it's generally a world configuration in /etc/make.conf or set as an environmental variable before invoking make, rather than explicit port configuration. It might be enough to just have a note in the ports tree that it will require devel/cross- - I'm unaware of any other examples you could use for precedent, but I'm sure they would exist. On Sun, May 19, 2013 at 12:28 AM, Warner Losh wrote: > > On May 18, 2013, at 10:17 AM, Tim Kientzle wrote: > > > > > On May 18, 2013, at 5:05 AM, Andrew Turner wrote: > > > >> On Fri, 17 May 2013 16:22:56 -0400 > >> Tim Kientzle wrote: > >> > >>> I'm trying to move the actual building of boot loaders out of Crochet > >>> and into FreeBSD ports. > >>> > >>> Here's the first attempt at such a port (many thanks to Diane Bruce > >>> for patiently tutoring me through this): > >>> > >>> http://people.freebsd.org/~kientzle/u-boot-beaglebone.tgz > >>> > >>> I'd appreciate any feedback: > >>> * Can you build this? > >>> * Suggestions for improving it? > >> > >> Could you try installing devel/cross-binutils and devel/cross-gcc using > >> TGTARCH=arm and TGTABI=none-eabi and using these to build u-boot? It > >> would mean the user doesn't need to have xdev set up. > > > > I'll definitely give that a try. > > > > More importantly than the user, I'm concerned about the > > package-building cluster. One of the goals here is to > > get the packages built automatically so that not everybody > > has to build the boot loaders themselves. > > > > I've not used the devel/cross-ZZZ tools before, so > > it will take me a little while to experiment. Ideally, > > the U-Boot port would just require the cross tools. > > A long time ago I was able to build u-boot using the cross-* ports... They > even have wrapper ports so you can get the write dependencies. Make sure > these are build-time dependencies not run-time dependencies and all that > will be installed will be the u-boot images... > > Warner > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >