From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 23 10:52:49 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D785916A50A for ; Sun, 23 Jul 2006 10:52:49 +0000 (UTC) (envelope-from tyler@bleepsoft.com) Received: from zeus.lunarpages.com (zeus.lunarpages.com [216.193.211.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 280A943D4C for ; Sun, 23 Jul 2006 10:52:42 +0000 (GMT) (envelope-from tyler@bleepsoft.com) Received: from [24.240.211.104] (helo=[192.168.250.100]) by zeus.lunarpages.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.52) id 1G4bai-00019h-Sl for freebsd-hackers@freebsd.org; Sun, 23 Jul 2006 03:53:45 -0700 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <20060723100223.GB24435@gothmog.pc> References: <7ADD22A7-42DE-49D8-B411-DBA4CB2FA0CD@bleepsoft.com> <20060723100223.GB24435@gothmog.pc> X-Gpgmail-State: !signed Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <3320CEAC-8A5C-407D-9867-C2A22820A599@bleepsoft.com> Content-Transfer-Encoding: 7bit From: "R. Tyler Ballance" Date: Sun, 23 Jul 2006 05:52:39 -0500 To: FreeBSD Hackers X-Mailer: Apple Mail (2.752.2) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - zeus.lunarpages.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - bleepsoft.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: Building a sandboxed kernel X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jul 2006 10:52:49 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >> >> Between varying versions of userland tools (like config(8)) and path >> troubles, I'm wondering what tips anybody has to doing non-standard >> builds of the kernel (non-standard being not in /usr/src and not the >> host arch) >> >> Currently the make command I'm using, which doesn't work, is (/usr/ >> obj is chmod'd 777): >> >> make TARGET_ARCH=iguana DESTDIR=/home/tyler/iguana buildkernel >> >> Any suggestions? > > You don't have to use /usr/obj for all your builds: > > % mkdir -p /home/tyler/obj/iguana > % env MAKEOBJDIRPREFIX=/home/tyler/obj/iguana \ > make TARGET_ARCH=iguana \ > DESTDIR=/home/tyler/iguana \ > buildkernel > > The trick here is to use MAKEOBJDIRPREFIX to change the default object > directory prefix from `/usr/obj' to whatever suits your own setup. This doesn't solve the problem of different versions of userland tools required. For example, my machne is RELENG_6, but I'm developing against the -CURRENT branch of code synced up in perforce. Does one necessarily need a -CURRENT userland to develop with the - CURRENT code base? All arguments of being able to test the code that is built are moot since the testing of my code will all occur within a virtualized (Qemu) machine environment. I'm sure the difference in versions between RELENG_6 and CURRENT aren't too great, but what about developing with CURRENT code on RELENG_5? I guess the basic question is, how can I maintain my normal workstation environment while using a toolset appropriate for building CURRENT? (Does it even matter really?) Cheers, - -R. Tyler Ballance -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFEw1TuqO6nEJfroRsRArxCAJ44DICg+wi65O6ymBh6BNYY8bE1tACdEPTn Tpb8/URR87blmlVDrxQV95M= =SZau -----END PGP SIGNATURE-----