build custom kernel under FreeBSD 12

Norbert Koch nkoch at demig.de
Thu Jul 18 13:52:50 UTC 2019


Hello.

I am obviously too stupid to figure out how to build a custom kernel
as non-root user in a non-standard directory.
Under FreeBSD9/10/11 I could put src/ under my own directory
and start a kernel-compilation by just setting $MAKEOBJDIRPREFIX
accordingly. Doing this under FreeBSD12 gives me 'permission denied'
with 'config -d /usr/src/sys/GENERIC ...'. Seems like ${KRNLOBJDIR} is
not set correctly while the other parameters to config are.
I see that Makefiles differ between 12 and older releases.
${OBJTOP} vs. ${OBJTREE}?

So, what am I doing wrong?

Thank you for any help.


***********************************************************************
* demig Prozessautomatisierung GmbH     *  demig Anlagentechnik GmbH  *
*                                       *                             *
* Anschrift:          Haardtstrasse 40  *  Haardtstrasse 40           *
*                       D-57076 Siegen  *  D-57076 Siegen             *
* Registergericht:     Siegen HRB 2819  *  Siegen HRB 5532            *
* Geschaeftsfuehrer:   Joachim Herbst,  *  Joachim Herbst,            *
*                        Winfried Held  *  Winfried Held              *
* Telefon:              +49 271 772020  *  +49 271 772020             *
* Telefax:              +49 271 74704   *  +49 271 74704              *
* E-Mail:                info at demig.de  *  at at demig.de                *
*                  http://www.demig.de  *  http://www.demig.de        *
***********************************************************************


More information about the freebsd-hackers mailing list