On 24-Jun-2002 (11:36:34/GMT) Makoto Matsushita wrote:
>> The only (I think) user configurable file under /usr/src tree is
>> the custom kernel file, pointed by KERNCONF in /etc/make.conf.
> "cd /usr/src; make {build,install}kernel" with
> KERNCONF=YOUR_KERNEL_CFG
> KERNCONFDIR=/path/to/dir/of/YOUR_KERNEL_CFG/file/mentioned/above
> seems working (but I don't test it).
Thanks to all hints (also to who link it out of /usr/src tree).
This one is what I prefer but it doesn't work on -STABLE, can we
back port this 3 lines of diffs also to 4.x ?
# diff -u2 /usr/src/Makefile.inc1.orig /usr/src/Makefile.inc1
--- /usr/src/Makefile.inc1.orig Mon Apr 29 20:42:50 2002
+++ /usr/src/Makefile.inc1 Tue Jun 25 20:05:28 2002
@@ -402,9 +402,10 @@
KRNLCONFDIR= ${KRNLSRCDIR}/${TARGET}/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)
@@ -440,5 +441,6 @@
cd ${KRNLCONFDIR}; \
PATH=${TMPPATH} \
- config ${CONFIGARGS} -d ${KRNLOBJDIR}/${_kernel} ${_kernel}
+ config ${CONFIGARGS} -d ${KRNLOBJDIR}/${_kernel} \
+ ${KERNCONFDIR}/${_kernel}
.endif
.if !defined(NOCLEAN) && !defined(NO_KERNELCLEAN)
Riccardo.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message