From owner-freebsd-arm@FreeBSD.ORG Sat May 18 14:41:52 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 E83C23D9 for ; Sat, 18 May 2013 14:41:52 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ie0-x22b.google.com (mail-ie0-x22b.google.com [IPv6:2607:f8b0:4001:c03::22b]) by mx1.freebsd.org (Postfix) with ESMTP id BA0DA367 for ; Sat, 18 May 2013 14:41:52 +0000 (UTC) Received: by mail-ie0-f171.google.com with SMTP id e11so11347415iej.30 for ; Sat, 18 May 2013 07:41:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender: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=pZFsy9Amyeq+HiOaEJ40qnO5VYKck18pc7femSbWCig=; b=To9HTQH3tUr5RwbiiyZIqBYWxT226cN4zxNSGDGxHU3ejMfv5B95pIYmg+huvvBsbd dFnUy205x6wH4/xqpAoK6V9pVMAzDGQGMX9wsRkPsQtrFRWVfaBhoNjbuT3SshBnMWnu 9YFDatJ8/+al6d4m9ribLX0G56aUTOyZ/Vr0xT9PIJJE0xtPlUt8hpbp3Kl4kwg7nwFl OeTlQYtl6SLeojTQuxD31+tPTQHMvVMW/NXbxRy+Cnsy6+fS5HkWvdFjuRdlGRPpQfnW Uu/pUyOHd6akvMyVB8R4DIucZHzpChDCWT+OWfWlgJ91GiPPnHGHR818cEEUChCo6RSi vRBg== X-Received: by 10.50.13.100 with SMTP id g4mr1240703igc.73.1368888112445; Sat, 18 May 2013 07:41:52 -0700 (PDT) Received: from [172.24.136.228] ([137.122.64.56]) by mx.google.com with ESMTPSA id 9sm2464030igy.7.2013.05.18.07.41.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 18 May 2013 07:41:51 -0700 (PDT) Sender: Warner Losh Subject: Re: Port: U-Boot for BeagleBone Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: Date: Sat, 18 May 2013 10:41:48 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <8D318315-A18E-4B16-B37A-1073CB36CA66@bsdimp.com> References: <3B16A2E5-C92B-4248-BE98-DD5C1194CB05@freebsd.org> <20130518100512.57c47fe6@bender> To: Jason Birch X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQkr4B40QssGHiKoez/MAUZ0yz5HDtHACqWlk+Fvx9p82vzZKI8X2VX28c84EyTClHjDqiLf 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:41:53 -0000 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. u-boot can't be built with clang. This will likely not change in the = foreseeable future. > 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. >=20 > 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. There are many ports in the tree that just use a newer version of gcc to = compile, regardless of what options you have set. Warner > On Sun, May 19, 2013 at 12:28 AM, Warner Losh wrote: >=20 >>=20 >> On May 18, 2013, at 10:17 AM, Tim Kientzle wrote: >>=20 >>>=20 >>> On May 18, 2013, at 5:05 AM, Andrew Turner wrote: >>>=20 >>>> On Fri, 17 May 2013 16:22:56 -0400 >>>> Tim Kientzle wrote: >>>>=20 >>>>> I'm trying to move the actual building of boot loaders out of = Crochet >>>>> and into FreeBSD ports. >>>>>=20 >>>>> Here's the first attempt at such a port (many thanks to Diane = Bruce >>>>> for patiently tutoring me through this): >>>>>=20 >>>>> http://people.freebsd.org/~kientzle/u-boot-beaglebone.tgz >>>>>=20 >>>>> I'd appreciate any feedback: >>>>> * Can you build this? >>>>> * Suggestions for improving it? >>>>=20 >>>> Could you try installing devel/cross-binutils and devel/cross-gcc = using >>>> TGTARCH=3Darm and TGTABI=3Dnone-eabi and using these to build = u-boot? It >>>> would mean the user doesn't need to have xdev set up. >>>=20 >>> I'll definitely give that a try. >>>=20 >>> 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. >>>=20 >>> 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. >>=20 >> 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... >>=20 >> Warner >>=20 >> _______________________________________________ >> 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" >>=20 > _______________________________________________ > 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"