From owner-freebsd-chat Thu Feb 21 23:25:37 2002 Delivered-To: freebsd-chat@freebsd.org Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by hub.freebsd.org (Postfix) with ESMTP id A14FA37B400 for ; Thu, 21 Feb 2002 23:25:31 -0800 (PST) Received: from blossom.cjclark.org ([12.234.91.48]) by rwcrmhc53.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020222072530.KCZH2951.rwcrmhc53.attbi.com@blossom.cjclark.org>; Fri, 22 Feb 2002 07:25:30 +0000 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.6) id g1M7PT283078; Thu, 21 Feb 2002 23:25:29 -0800 (PST) (envelope-from cjc) Date: Thu, 21 Feb 2002 23:25:29 -0800 From: "Crist J. Clark" To: Dag-Erling Smorgrav Cc: Jeff Leveille , chat@FreeBSD.ORG Subject: Re: FreeBSD -> NetBSD cross compile Message-ID: <20020221232529.H48401@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <20020221192306.YCGP4996.tomts12-srv.bellnexxia.net@there> <20020221173727.F48401@blossom.cjclark.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from des@ofug.org on Fri, Feb 22, 2002 at 02:50:25AM +0100 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, Feb 22, 2002 at 02:50:25AM +0100, Dag-Erling Smorgrav wrote: > "Crist J. Clark" writes: > B> I've never made a serious attempt, but the first thing you'll notice > > if you try to build directly from NetBSD source is that FreeBSD and > > NetBSD make(1) files are not necessarily compatible. > > That's solveable in two simple steps: > > 1) merge NetBSD's make(1) improvements into our make(1) :) The recent fix I put in make(1) did help some (not that I could find that fix in their make(1)). The real problem is that there are conflicts in each set of improvments. For example, one that you will quickly run into, FreeBSD make(1) modifiers: U Converts variable to upper-case letters. NetBSD make(1) modifiers: U newval If the variable is undefined newval is the value. This is another ODE make feature. It is handy for setting per-target CFLAGS for instance: ${_${.TARGET:T}_CFLAGS:U${DEF_CFLAGS}} Go through the modifiers for both, and you will see a lot of inconsistencies. (Just as a side note, OpenBSD make(1) does the same thing as FreeBSD for 'U.') > 2) use the -m option to make and specify the directory where the > NetBSD .mk files reside (e.g. $HOME/netbsd/src/share/mk). Yep. That's an obvious requirement. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message