From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 27 17:35:18 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 070F216A51A for ; Thu, 27 Jul 2006 17:35:17 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC66043D4C for ; Thu, 27 Jul 2006 17:35:00 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k6RHYrn4078521; Thu, 27 Jul 2006 13:34:55 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Thu, 27 Jul 2006 11:24:10 -0400 User-Agent: KMail/1.9.1 References: <7ADD22A7-42DE-49D8-B411-DBA4CB2FA0CD@bleepsoft.com> In-Reply-To: <7ADD22A7-42DE-49D8-B411-DBA4CB2FA0CD@bleepsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607271124.10771.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Thu, 27 Jul 2006 13:34:58 -0400 (EDT) X-Virus-Scanned: ClamAV 0.87.1/1623/Wed Jul 26 18:35:11 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: "R. Tyler Ballance" 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: Thu, 27 Jul 2006 17:35:18 -0000 On Saturday 22 July 2006 21: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? For the case where /usr/src is the same branch you can do this (I do this to test-compile cross-builds where the kernel tree isn't in /usr/src/sys): % cd /usr/src % make TARGET_ARCH=amd64 kernel-toolchain % make TARGET_ARCH=amd64 buildkernel KERNSRCDIR=/home/jhb/work/p4/smpng \ NO_KERNELCLEAN=yes -- John Baldwin