Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Nov 2002 10:57:44 -0500 (EST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Ruslan Ermilov <ru@FreeBSD.ORG>
Cc:        current@FreeBSD.ORG
Subject:   Re: Cross-Development with NetBSD
Message-ID:  <XFMail.20021122105744.jhb@FreeBSD.org>
In-Reply-To: <20021122114100.GC11000@sunbay.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 22-Nov-2002 Ruslan Ermilov wrote:
> On Thu, Nov 21, 2002 at 02:31:19PM -0500, John Baldwin wrote:
>> 
>> On 21-Nov-2002 Terry Lambert wrote:
>> > Ruslan Ermilov wrote:
>> >> On Thu, Nov 21, 2002 at 12:10:14AM -0700, M. Warner Losh wrote:
>> >> > In message: <20021121151714.U961-100000@squirm.dsto.defence.gov.au>
>> >> >             "Wilkinson,Alex" <Alex.Wilkinson@dsto.defence.gov.au> writes:
>> >> > : Is FreeBSD likely to follow the in footsteps of NetBSD and create
>> >> > : a framework to do crossbuilds ?
>> >> > :
>> >> > : http://ezine.daemonnews.org/200211/xdevnetbsd.html
>> >> >
>> >> > FreeBSD already has cross builds for a while, since before NetBSD's
>> >> > cross build infrastructure.  However, NetBSD's infrastructure is a
>> >> > little more extensive because it is possible to do incremental builds
>> >> > and build full releases that work in a cross build evironment.
>> >>
>> >> What do you mean by "incremental builds and full releases that work ..."?
>> > 
>> > You know, like changing one line in /usr/src/lib/libstand on
>> > a source tree on a x86 box, typing "make release", and having
>> > only the things that need to be rebuilt being rebuilt, resulting
>> > in a working FreeBSD-Alpha or FreeBSD-SPARC64 release CDROM image.
>> 
>> Make release is a very poor example b/c make release goes to great
>> efforts to create a clean-room environment for a release.  make
>> rerelease is quite helpful though and does do what you want to
>> restart a previous release. :)  Also, make buildworld -DNOCLEAN
>> isn't too shabby, though if I could do make TARGET_ARCH=alpha
>> everything I would prefer that.
>> 
> What would you prefer, I didn't quite understand?

If I could:

% cd /usr/src/usr.bin/foo_binary
% make TARGET_ARCH=alpha

and end up with an alpha foo binary.  Granted, I might have to
do some extra steps to setup the build environment, and that
would be fine.  Would be nice if I could do:

% cd /usr/src
% make TARGET_ARCH=alpha buildenv

or some such.  However, I think that might involve a good bit of
work to get right and the gains might not be worth the expense.

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20021122105744.jhb>