From owner-freebsd-arm@FreeBSD.ORG Sat May 18 14:43:58 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 8AFF4426 for ; Sat, 18 May 2013 14:43:58 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from mail-ie0-x233.google.com (mail-ie0-x233.google.com [IPv6:2607:f8b0:4001:c03::233]) by mx1.freebsd.org (Postfix) with ESMTP id 5DD4C371 for ; Sat, 18 May 2013 14:43:58 +0000 (UTC) Received: by mail-ie0-f179.google.com with SMTP id c13so11409373ieb.10 for ; Sat, 18 May 2013 07:43:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=Xlo4w0S0Delf+ySntPFfqnrJvslvCXIQkfhmaCKywkU=; b=HA4s0M19YEGKn8Wdigrqe6spBRxZ7CVHgAX85n3rqbq/ND6Cb4YFWnpDOqUCX4B6Vt 6+fsaVryuSNuEfHNdh4Sg6s0nTUGGty3jAzIOBqqrlw76xGOaShueFFAg8NxHPkrMOLz TcNID1W2bEVqbLv0M1wuMQk77hnPcxvHefbhT9FuiPbuLohgM7Inn/d7LqyXmmavBslf O28x2yL1gVZNlU/CRQYhoFLOz12LCXVh4Gi2ezMZaWlDJf8Cz66viaitV5FxeulM4Xsa 8oll+b9P77ozZkYGUrK0OrKnEagQBKDdRXEqYkMJoFRXHCjYiPMZ4TLzoofkymG7K6w9 soTg== X-Received: by 10.50.13.100 with SMTP id g4mr1244713igc.73.1368888238071; Sat, 18 May 2013 07:43:58 -0700 (PDT) Received: from [172.24.137.243] ([137.122.64.8]) by mx.google.com with ESMTPSA id qs4sm2455943igb.10.2013.05.18.07.43.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 18 May 2013 07:43:57 -0700 (PDT) Subject: Re: Port: U-Boot for BeagleBone Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Tim Kientzle In-Reply-To: Date: Sat, 18 May 2013 10:43:54 -0400 Content-Transfer-Encoding: 7bit Message-Id: References: <3B16A2E5-C92B-4248-BE98-DD5C1194CB05@freebsd.org> <20130518100512.57c47fe6@bender> To: Jason Birch X-Mailer: Apple Mail (2.1283) X-Gm-Message-State: ALoCoQnu1fYjAnF9vpSiQZ5As4J6n90bAua/Vx7dzkXGj6Z1sODcGV8Do5qHFXD9NpA0vZsEQgZg Cc: freebsd-arm 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:43:58 -0000 For now, having it rely on devel/cross-* ports should work. Yes, the clang cross-compilers should allow us to get rid of that dependency someday. There are two obstacles: * The clang cross-compilers aren't fully exposed yet (E.g., there is no arm-freebsd-cc symlink installed by default). * binutils -- promising stuff is in the works, but it's at least a few months out. On May 18, 2013, at 10:38 AM, Jason Birch wrote: > 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" >> > _______________________________________________ > 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"