From owner-freebsd-bugs Tue Dec 3 3:10: 5 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 403F537B401 for ; Tue, 3 Dec 2002 03:10:03 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7087143E9C for ; Tue, 3 Dec 2002 03:10:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gB3BA2x3026670 for ; Tue, 3 Dec 2002 03:10:02 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gB3BA2rG026669; Tue, 3 Dec 2002 03:10:02 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0F9737B401 for ; Tue, 3 Dec 2002 03:07:42 -0800 (PST) Received: from moon.cc.rsu.ru (moon.cc.rsu.ru [195.208.252.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF71E43EA9 for ; Tue, 3 Dec 2002 03:07:41 -0800 (PST) (envelope-from and@moon.cc.rsu.ru) Received: from moon.cc.rsu.ru (localhost [127.0.0.1]) by moon.cc.rsu.ru (8.12.6/8.12.6) with ESMTP id gB3B7mJk004066; Tue, 3 Dec 2002 14:07:48 +0300 (MSK) (envelope-from and@moon.cc.rsu.ru) Received: (from and@localhost) by moon.cc.rsu.ru (8.12.6/8.12.6/Submit) id gB3B7mcH004065; Tue, 3 Dec 2002 14:07:48 +0300 (MSK) Message-Id: <200212031107.gB3B7mcH004065@moon.cc.rsu.ru> Date: Tue, 3 Dec 2002 14:07:48 +0300 (MSK) From: and@rsu.ru Reply-To: and@rsu.ru To: FreeBSD-gnats-submit@FreeBSD.org Cc: os@rsu.ru X-Send-Pr-Version: 3.113 Subject: misc/45961: [Patch] Need to override KRNLCONFDIR variable in command line of make (/usr/src/Makefile.inc1) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 45961 >Category: misc >Synopsis: [Patch] Need to override KRNLCONFDIR variable in command line of make (/usr/src/Makefile.inc1) >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Dec 03 03:10:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Andrey Beresovsky >Release: FreeBSD 4.7-RELEASE i386 >Organization: >Environment: System: FreeBSD 4.7-RELEASE #0: Mon Oct 28 16:02:39 MSK 2002 i386 >Description: I develop a program which allows to build worlds and kernels for several hosts with different options (make.conf files, kernel configs and so on). I need to be able to override some variables in /usr/src/Makefile.inc1. For the moment they are defined with '=', and I suggest defining them with '?='. The variables I need to override are KRNLSRCDIR, KRNLCONFDIR, KRNLOBJDIR. >How-To-Repeat: >Fix: --- Makefile.inc1.orig Tue Dec 3 14:05:08 2002 +++ Makefile.inc1 Tue Dec 3 14:06:01 2002 @@ -422,9 +422,9 @@ .endif INSTKERNNAME?= kernel -KRNLSRCDIR= ${.CURDIR}/sys -KRNLCONFDIR= ${KRNLSRCDIR}/${TARGET}/conf -KRNLOBJDIR= ${OBJTREE}${KRNLSRCDIR} +KRNLSRCDIR?= ${.CURDIR}/sys +KRNLCONFDIR?= ${KRNLSRCDIR}/${TARGET}/conf +KRNLOBJDIR?= ${OBJTREE}${KRNLSRCDIR} BUILDKERNELS= INSTALLKERNEL= >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message