From owner-freebsd-questions@FreeBSD.ORG Mon Sep 11 09:45:37 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 92FC816A407 for ; Mon, 11 Sep 2006 09:45:37 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 99F0543D45 for ; Mon, 11 Sep 2006 09:45:36 +0000 (GMT) (envelope-from LoN_Kamikaze@gmx.de) Received: (qmail invoked by alias); 11 Sep 2006 09:45:34 -0000 Received: from p54A7FC43.dip.t-dialin.net (EHLO [192.168.0.12]) [84.167.252.67] by mail.gmx.net (mp043) with SMTP; 11 Sep 2006 11:45:34 +0200 X-Authenticated: #5465401 Message-ID: <4505303A.8020405@gmx.de> Date: Mon, 11 Sep 2006 11:45:30 +0200 From: "[LoN]Kamikaze" Organization: Lords of Nightmare User-Agent: Thunderbird 1.5.0.5 (X11/20060729) MIME-Version: 1.0 To: freebsd-questions@freebsd.org X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Subject: how to get one OBJDIR per kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Sep 2006 09:45:37 -0000 I have several systems which all use the same /usr/obj over NFS. In the make.conf of those systems WRKDIRPREFIX is set to /usr/obj/${HOST}, which keeps machines from messing with each other while they build ports. Those machines have their own kernel configurations, which reside in /root/kernels/ and are linked from /usr/src/sys/ARCH/conf . I also have the following in my make.conf . # Load specific configuration for the kernel. .if exists(/root/kernels/${KERNCONF}.mk) .include "/root/kernels/${KERNCONF}.mk" .endif This way I can have settings for a different world per kernel as well. I.e. with NO_PROFILE set for kernels without debugging. The trouble is that different kernels still clash in the same OBJDIR. I would like to have something like MAKEOBJDIRPREFIX=/usr/obj/${KERNCONF} , the trouble being that it cannot be set in make.conf . Is there a way around this restriction?