From owner-freebsd-current Tue Jun 25 11:15:37 2002 Delivered-To: freebsd-current@freebsd.org Received: from mail.dada.it (mail2.dada.it [195.110.96.69]) by hub.freebsd.org (Postfix) with SMTP id 3615437B419 for ; Tue, 25 Jun 2002 11:14:38 -0700 (PDT) Received: (qmail 29702 invoked from network); 25 Jun 2002 18:14:29 -0000 Received: from unknown (HELO torrini.org) (195.110.114.101) by mail.dada.it with SMTP; 25 Jun 2002 18:14:29 -0000 Received: from trudy.torrini.home (localhost.torrini.home [127.0.0.1]) by torrini.org (8.12.3/8.12.3) with ESMTP id g5PIEXdc000411 for ; Tue, 25 Jun 2002 20:14:33 +0200 (CEST) (envelope-from riccardo@trudy.torrini.home) Received: (from riccardo@localhost) by trudy.torrini.home (8.12.3/8.12.3/Submit) id g5PIEU86000410 for freebsd-current@FreeBSD.ORG; Tue, 25 Jun 2002 20:14:30 +0200 (CEST) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20020624203634G.matusita@jp.FreeBSD.org> Date: Tue, 25 Jun 2002 20:14:30 +0200 (CEST) From: Riccardo Torrini To: freebsd-current@FreeBSD.ORG Subject: Re: custom kernel Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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