svn commit: r287358 - head

Alexander Kabaev kabaev at gmail.com
Wed Sep 2 13:08:36 UTC 2015


On Wed, 2 Sep 2015 15:50:24 +0300
Gleb Smirnoff <glebius at FreeBSD.org> wrote:

>   Alexander,
> 
> On Tue, Sep 01, 2015 at 10:44:38PM -0400, Alexander Kabaev wrote:
> A> On Tue, 1 Sep 2015 11:59:12 +0000 (UTC)
> A> > Log:
> A> >   Not only build with buildworld, but also install with
> A> > installworld all alternative kernels.
> A> >   
> A> >   Sponsored by:	Netflix
> A> >   Sponsored by:	Nginx, Inc.
> A> > 
> A> > Modified:
> A> >   head/Makefile.inc1
> A> > 
> A> > Modified: head/Makefile.inc1
> A> > ==============================================================================
> A> > --- head/Makefile.inc1	Tue Sep  1 11:46:13 2015
> A> > (r287357) +++ head/Makefile.inc1	Tue Sep  1 11:59:12
> A> > 2015	(r287358) @@ -1127,6 +1127,14 @@ reinstallkernel
> A> > reinstallkernel.debug: _ cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \
> A> >  	    ${CROSSENV} PATH=${TMPPATH} \
> A> >  	    ${MAKE} ${IMAKE_INSTALL} KERNEL=${INSTKERNNAME}
> A> > ${.TARGET:S/kernel//} +.for _kernel in ${BUILDKERNELS:[2..-1]}
> A> > +	@echo
> A> > "--------------------------------------------------------------"
> A> > +	@echo ">>> Installing kernel ${_kernel}"
> A> > +	@echo
> A> > "--------------------------------------------------------------"
> A> > +	cd ${KRNLOBJDIR}/${_kernel}; \
> A> > +	    ${CROSSENV} PATH=${TMPPATH} \
> A> > +	    ${MAKE} ${IMAKE_INSTALL}
> A> > KERNEL=${INSTKERNNAME}.${_kernel} ${.TARGET:S/kernel//} +.endfor
> A> >  
> A> >  distributekernel distributekernel.debug:
> A> >  .if empty(INSTALLKERNEL)
> A> 
> A> This is probably not doing what you think it is doing. Now, when
> A> installing my kernel, built from config file <blah>, I get it
> A> installed into /boot/kernel, which is good and normal, and I get
> A> an extra and highly undesired copy in boot/kernel.<blah>. That one
> A> I didn't ask for and would rather see it gone. 
> 
> Does that happen to you, or do you just suppose that this is going to
> happen looking at the code?
> 
> -- 
> Totus tuus, Glebius.

It does happen to me, I wouldn't bother you otherwise.

'make installworld KERNCONF=KANBSD' now results in kernel installed
twice, once as /boot/kernel and once as /boot/kernel.KANBSD. Re-running
it once more, I even get to have /boot/kernel.KANBSD.old.

As a side point, 'make buildworld' does not suffer from same issue.

-- 
Alexander Kabaev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20150902/d27227c5/attachment.bin>


More information about the svn-src-head mailing list