From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 23 10:02:59 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 75D4D16A4DD for ; Sun, 23 Jul 2006 10:02:59 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id B165D43D46 for ; Sun, 23 Jul 2006 10:02:58 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.pc (patr530-a238.otenet.gr [212.205.215.238]) (authenticated bits=128) by igloo.linux.gr (8.13.7/8.13.7/Debian-1) with ESMTP id k6NA2aNw023824 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 23 Jul 2006 13:02:40 +0300 Received: from gothmog.pc (gothmog [127.0.0.1]) by gothmog.pc (8.13.7/8.13.7) with ESMTP id k6NA2OWv024862; Sun, 23 Jul 2006 13:02:25 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.pc (8.13.7/8.13.7/Submit) id k6NA2Nhe024861; Sun, 23 Jul 2006 13:02:23 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 23 Jul 2006 13:02:23 +0300 From: Giorgos Keramidas To: "R. Tyler Ballance" Message-ID: <20060723100223.GB24435@gothmog.pc> References: <7ADD22A7-42DE-49D8-B411-DBA4CB2FA0CD@bleepsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7ADD22A7-42DE-49D8-B411-DBA4CB2FA0CD@bleepsoft.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-4.197, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.20, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-hackers@freebsd.org 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:02:59 -0000 On 2006-07-22 20:07, "R. Tyler Ballance" wrote: > I'm working on a project that relies on me building kernels outside > of the standard /usr/src (typically ~/perforce/projects/ ) on my > relatively standard 6.1-STABLE workstation. I'm wondering if I'd be > best suited by setting up a jail for kernel builds, I'm following > this doc: http://people.freebsd.org/~cognet/freebsd_arm.txt loosely > because I've created a new "arch folder" in src/sys for the kernel > code that I want to build (right now it's unmodified i386 code) > > 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.