Date: Sat, 18 May 2013 10:41:48 -0400 From: Warner Losh <imp@bsdimp.com> To: Jason Birch <jbirch@jbirch.net> Cc: freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: Port: U-Boot for BeagleBone Message-ID: <8D318315-A18E-4B16-B37A-1073CB36CA66@bsdimp.com> In-Reply-To: <CAA=KUhspUwuNPW13bgZVy9CKwn6Ny_Njt0AXBH27XZPEuKgaWg@mail.gmail.com> References: <3B16A2E5-C92B-4248-BE98-DD5C1194CB05@freebsd.org> <20130518100512.57c47fe6@bender> <B5DE3D0D-86BF-43F8-9FA2-A803B1FAABF8@freebsd.org> <D3F7C462-0BD5-4F20-AE32-448BB7B5855D@bsdimp.com> <CAA=KUhspUwuNPW13bgZVy9CKwn6Ny_Njt0AXBH27XZPEuKgaWg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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-<whatever> - 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 <imp@bsdimp.com> 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 <kientzle@freebsd.org> 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8D318315-A18E-4B16-B37A-1073CB36CA66>