Date: Fri, 8 Nov 2013 09:44:24 +0000 (UTC) From: Rene Ladan <rene@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r333188 - head/Mk/Uses Message-ID: <201311080944.rA89iOqx017778@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rene Date: Fri Nov 8 09:44:24 2013 New Revision: 333188 URL: http://svnweb.freebsd.org/changeset/ports/333188 Log: Change KMODDDIR to /boot/modules if it is set to /boot/kernel This allows upgrading a kernel without breaking any installed kernel ports because during the upgrade /boot/kernel is renamed to /boot/kernel.old , resulting in moved files. While /boot/modules is the default, it might be overridden by bsd.own.mk to /boot/kernel before kmod is included, so setting MODULES_WITH_WORLD has no effect. Modified: head/Mk/Uses/kmod.mk Modified: head/Mk/Uses/kmod.mk ============================================================================== --- head/Mk/Uses/kmod.mk Fri Nov 8 07:40:50 2013 (r333187) +++ head/Mk/Uses/kmod.mk Fri Nov 8 09:44:24 2013 (r333188) @@ -23,6 +23,9 @@ CATEGORIES+= kld SSP_UNSAFE= kernel module does not support SSP +.if ${KMODDIR} == "/boot/kernel" +KMODDIR= /boot/modules +.endif KMODDIR?= /boot/modules PLIST_SUB+= KMODDIR="${KMODDIR:C,^/,,}" MAKE_ENV+= KMODDIR="${KMODDIR}" SYSDIR="${SRC_BASE}/sys"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311080944.rA89iOqx017778>