From owner-freebsd-arch@FreeBSD.ORG Tue May 7 21:00:35 2013 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id AD025C39 for ; Tue, 7 May 2013 21:00:35 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-oa0-f45.google.com (mail-oa0-f45.google.com [209.85.219.45]) by mx1.freebsd.org (Postfix) with ESMTP id 774151C1 for ; Tue, 7 May 2013 21:00:35 +0000 (UTC) Received: by mail-oa0-f45.google.com with SMTP id j6so190763oag.18 for ; Tue, 07 May 2013 14:00:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received: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=HbSdVVDEi0maLv0LJ3SVwF6VrfDkJ4a96aFR7vYrcH0=; b=kIm3mVlaTWuOTaIyxQGRpVDp6M2FibhCX+61ZbB+JBmIZaWr6uC96hGeeBtLtkUMc6 ZExcMlwQIB0qmBj5L7jERTxwZMPYFSf3vfPpasQmyxhcZVzmqrrMJF+EDJXQ+mgX0w5O 6jj2FmMyebEgvGO9ETHoN65HEfa6Netp4CN3QPjlL625mGwNdHKcqfX1iFkPEWweNZFc ZB9foHq4fWw9eLIWAPN1ySaraorbEnAwERO3lP/ENakrmtZ00RjhCnc7LKnTWbFH7bvg /yZXegFyGmE78l6EWEkIev0gTJzbF3/oar0AZPSV/LzOE0PXYFhfnrJmNIvemVaEQARH nVHw== X-Received: by 10.60.133.242 with SMTP id pf18mr1051688oeb.80.1367960429409; Tue, 07 May 2013 14:00:29 -0700 (PDT) Received: from fusionlt2834a.int.fusionio.com ([209.117.142.2]) by mx.google.com with ESMTPSA id ns4sm6685388obc.2.2013.05.07.14.00.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 May 2013 14:00:28 -0700 (PDT) Sender: Warner Losh Subject: Re: [RFC] adding a variable to .mk and Makefile.inc1 to point to top of the FreeBSD source tree Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=windows-1252 From: Warner Losh In-Reply-To: <2E2C2F74-A25B-4B9F-84C4-0A434B8C7EE6@gmail.com> Date: Tue, 7 May 2013 15:00:23 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20130507203906.GB40460@lor.one-eyed-alien.net> <2E2C2F74-A25B-4B9F-84C4-0A434B8C7EE6@gmail.com> To: Garrett Cooper X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQnHWoPJrE00uDvrsuQ/LsCchCqkEFa9KBsXAXpirIX9oWPYmDHInxZ/tiLjjiXo9CPDV89c Cc: "Simon J. Gerraty" , freebsd-toolchain@freebsd.org, Brooks Davis , "freebsd-arch@FreeBSD.org Arch" X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 May 2013 21:00:35 -0000 On May 7, 2013, at 2:46 PM, Garrett Cooper wrote: > On May 7, 2013, at 1:39 PM, Brooks Davis wrote: >=20 >> On Tue, May 07, 2013 at 01:05:07PM -0700, Garrett Cooper wrote: >>> Hi, >>> A common pattern that I've seen at Isilon and something else that = I've >>> wanted to have for a while is the ability to designate where the top = of a >>> source tree was. This is important and helpful when dealing with = source >>> files that build upon each other or depend on sources located in = other >>> sections of the tree; contrib stuff needs to set .PATH appropriately = to >>> point to sources at the top of the tree, sys stuff is riddled with = S=3D in >>> order to point to where /sys, etc lives, we build upon FreeBSD = within an >>> expected directory structure as well. >>> I haven't come up with a name, but was wondering if this was a = good >>> idea, and if so does anyone have any outstanding patches for this = that can >>> be pushed into FreeBSD? >>=20 >> I'd like to see this. There's a variable for this in NetBSD and I've >> wanted to do this because it makes code easier to relocate within the >> tree. >=20 > This is another good reason. It would make porting code to/from = NetBSD a LOT easier=85 especially because I plan on pulling a lot of = test/test infrastructure code from NetBSD and I really don't want to = commit too many local changes to the Makefiles. Less divergence -> = better cross-pollination -> less work for all -> win for the BSDs. > Thanks for the reminder.. I'll base it off what NetBSD did :). SRCDIR Once upon a time, this *HAD* to be set, and wasn't inferred from the = current top of the tree. Please, for the love of god, make sure that we = don't lose the infer from top of tree ability, or I will hurt you. = Often. Through all the minions that owe me minor favors. Warner