From owner-freebsd-stable Wed Dec 19 17:57:17 2001 Delivered-To: freebsd-stable@freebsd.org Received: from crotchety.newsbastards.org (pop-mu-8-1-dialup-205.freesurf.ch [194.230.140.205]) by hub.freebsd.org (Postfix) with ESMTP id 588A937B417 for ; Wed, 19 Dec 2001 17:56:31 -0800 (PST) Received: (from news@localhost) by crotchety.newsbastards.org (8.11.6/8.11.6) id fBK17VZ00333; Thu, 20 Dec 2001 02:07:31 +0100 (CET) (envelope-from bounce@dcf77-zeit.netscum.dyndns.dk) Date: Thu, 20 Dec 2001 02:07:31 +0100 (CET) Message-Id: <200112200107.fBK17VZ00333@crotchety.newsbastards.org> X-Authentication-Warning: crotchety.newsbastards.org: news set sender to bounce@dcf77-zeit.netscum.dyndns.dk using -f From: BOUWSMA Beery To: stable@freebsd.org Subject: KERNCONFDIR as appears in -current Organization: Men not wearing any pants that dont shave X-Hacked: via telnet to your port 25, what else? X-Internet-Access-Provided-By: TDC Suisse AG, Rumlang X-NetScum: Yes X-One-And-Only-Real-True-Fluffy: No Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [replies sent directly to me may bounce, since I'm not online as often as I should be, but I will check the list archives... sorry] Moin moin Is there a good reason why the makefile in 4.4-STABLE should not have the following patch applied, other than that it's from 5.0-current and could crash my system (it's worked great for me though)? By doing this, it's now possible to mount one's /usr/src read- only, leaving it in a virginal state and making all local config changes elsewhere, rather than in /usr/src/sys/i386/conf, like `make buildkernel KERNCONF=VAX KERNCONFDIR=/usr/local/etc/k0dehaX' as one can now do safely in current Patch is against a few-day-old /usr/src/Makefile.inc1 thanks barry bouwsma --- /usr/local/system/src/Makefile.inc1 Mon Dec 17 23:59:58 2001 +++ /usr/local/source-hacks/Makefile.inc1 Tue Dec 18 07:38:10 2001 @@ -400,11 +400,12 @@ KRNLSRCDIR= ${.CURDIR}/sys KRNLCONFDIR= ${KRNLSRCDIR}/${MACHINE}/conf KRNLOBJDIR= ${OBJTREE}${KRNLSRCDIR} +KERNCONFDIR?= ${KRNLCONFDIR} BUILDKERNELS= INSTALLKERNEL= .for _kernel in ${KERNCONF} -.if exists(${KRNLCONFDIR}/${_kernel}) +.if exists(${KERNCONFDIR}/${_kernel}) BUILDKERNELS+= ${_kernel} .if empty(INSTALLKERNEL) INSTALLKERNEL= ${_kernel} @@ -438,7 +439,8 @@ .if !defined(NO_KERNELCONFIG) cd ${KRNLCONFDIR}; \ PATH=${TMPPATH} \ - config ${CONFIGARGS} -d ${KRNLOBJDIR}/${_kernel} ${_kernel} + config ${CONFIGARGS} -d ${KRNLOBJDIR}/${_kernel} \ + ${KERNCONFDIR}/${_kernel} .endif .if !defined(NOCLEAN) && !defined(NO_KERNELCLEAN) .if defined(MODULES_WITH_WORLD) || defined(NO_MODULES) || !exists(${KRNLSRCDIR}/modules) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message