DragonFly submit List (threaded) for 2008-09
DragonFly BSD
DragonFly submit List (threaded) for 2008-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: installkernel POSTFIX directive


From: YONETANI Tomokazu <qhwt+dfly@xxxxxxxxxx>
Date: Sat, 20 Sep 2008 15:12:42 +0900

On Sat, Sep 20, 2008 at 04:12:07AM +0200, Stefan Johannesdal wrote:
> These patches add a POSTFIX directive to installkernel. Like this:
>
> make installkernel KERNCONF=MYSMPCONF POSTFIX=.smp

I tend to like the variable name to begin with K... or KERN..., if
they are related to kernel, to avoid name clash with some other
applications (note that environment variables can also affect make
variables).  You may(or may not) feel this way when you a description
in bsd.own.mk.

> The kernel would end up as "/boot/kernel.smp" and the modules as  
> "/boot/modules.smp".
>
> I also had a go at the hard coded adding of "/boot" that I felt was a  
> bit illogical since it got added even if one defined DESTDIR. Things  
> would end up in DESTDIR/boot while I felt that if you define DESTDIR  
> then you want kernel/modules to end up in DESTDIR.

DESTDIR is `An existing directory to be the root of the hierarchy'
according to build(7), and the location of kernel/modules in the hierarchy
has been moved from / to /boot.  For instance, when you build an ISO image
from the source, DESTDIR is set to ISOROOT, but kernel and modules should be
installed under ISOROOT/boot, not right under ISOROOT.  So if you do want
to be able to install the kernel/modules to some other directory not
containing .../boot, I think you can introduce a variable, say KERNDIR,
which defaults to /boot.

  make installkernel KERNCONF=MYSMPCONF POSTFIX=.smp KERNDIR=/

or, with traditional method:
  cd /sys/config
  config -d /path/to/builddir /path/to/MYSMPCONF
  make depend && make
  make POSTFIX=.smp KERNDIR=/ install

Cheers.



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]