Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Dec 2002 14:07:48 +0300 (MSK)
From:      and@rsu.ru
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        os@rsu.ru
Subject:   misc/45961: [Patch] Need to override KRNLCONFDIR variable in command line of make (/usr/src/Makefile.inc1)
Message-ID:  <200212031107.gB3B7mcH004065@moon.cc.rsu.ru>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212031107.gB3B7mcH004065>