On Fri, Jul 29, 2011 at 10:43:52AM +0200, David Vasek wrote:
> On Fri, 29 Jul 2011, Amarendra Godbole wrote:
> 
> >Hi,
> >
> >http://www.openbsd.org/faq/faq5.html#BldKernel has a section
> >"Variation on above process: Read-only source tree", which talks about
> >building a kernel outside src/. Interestingly, when I do a GENERIC.MP
> >build, by following these steps, the name displayed via config is that
> >of the directory in which this kernel has been built. Eg.
> >
> ># cd /home/foo/bar/testbuild
> ># cp /usr/src/sys/arch/i386/conf/GENERIC.MP .
> ># config -s /usr/src/sys -b . GENERIC.MP
> ># make clean && make depend && make
> ># make install
> >
> >"config -e" displays the kernel string as:
> >OpenBSD 5.0-beta (testbuild) #2: Fri Jul 29 12:50:00 IST 2011
> >   root@zimbu:/home/foo/bar/testbuild
> >
> >This may confuse, especially when a "dmesg" is required, as it loses
> >the type of kernel built - GENERIC or GENERIC.MP.
> 
> It loses the arch too. It is not easy to distinguish between i386 and 
> amd64 then.
> 
> Regards,
> David
> 

can't you actually do:

# mkdir -p /home/foo/bar/testbuild/`uname -m`/GENERIC.MP
# cd /home/foo/bar/testbuild/`uname -m`/GENERIC.MP

which would keep the arch and kernel name in the build path just as with
a build from the "regular" path ?

Gilles

-- 
Gilles Chehade
http://u.poolp.org/~gilles/

Reply via email to