svn commit: r333188 - head/Mk/Uses
Rene Ladan
rene at FreeBSD.org
Fri Nov 8 09:44:25 UTC 2013
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"
More information about the svn-ports-head
mailing list