Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jun 2002 20:14:30 +0200 (CEST)
From:      Riccardo Torrini <riccardo@torrini.org>
To:        freebsd-current@FreeBSD.ORG
Subject:   Re: custom kernel
Message-ID:  <XFMail.20020625201430.riccardo@torrini.org>
In-Reply-To: <20020624203634G.matusita@jp.FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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