Date: Thu, 20 Dec 2001 02:07:31 +0100 (CET) From: BOUWSMA Beery <freebsd-user@netscum.dyndns.dk> To: stable@freebsd.org Subject: KERNCONFDIR as appears in -current Message-ID: <200112200107.fBK17VZ00333@crotchety.newsbastards.org>
next in thread | raw e-mail | index | archive | help
[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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112200107.fBK17VZ00333>
