On Wed, Dec 5, 2012 at 9:23 PM, Garrett Cooper <yaneg...@gmail.com> wrote:
> (Sorry in advance for GMail mangling).
>
> I recently moved all of my svn trees to git and in order to ensure
> that my trees are in as pristine a state as possible I've started
> setting KERNCONFDIR=/root in /etc/src.conf and I specify KERNCONF?=
> <foo> <foo>-DEBUG. This works pretty well in a standard setup (when
> files are located in /sys/<arch>/conf, are standalone, etc). In order
> to eliminate duplication, I wrote <foo>-DEBUG to include <foo> and
> augment it a bit (enable WITNESS, INVARIANTS, etc). However, I
> discovered that if I do this, config fails to find the file because it
> only knows how to find 1) absolute paths, 2) relative paths to the obj
> dir, and 3) as a last ditch effort it tries to use ../../conf/
> (/sys/conf I believe for the generic KERNCONF directory). I added the
> patch below to teach config(8) about KERNCONFDIR for my own local use
> (and I think fixed a subtle bug with asprintf and free usage), but the
> support seems hacky. Another alternative (after doing a bit of
> research) that looks better is NetBSD's concept of prefix paths:

(for the archive's sake)
    I ran buildkernel again and the patch doesn't work as-is if it's
not defined in the environment as it isn't one of the variables that's
passed through by default via make to buildkernel when running
config(8), so one needs to modify Makefile.inc1 as well in order for
things to function properly as described with my patch.
Thanks,
-Garrett
_______________________________________________
freebsd-toolchain@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"

Reply via email to