From 5f0263c1205aa8337486ca0f2bcff14b24edea6e Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 10 May 2016 22:32:23 +0000 Subject: [PATCH] Change the default installation directory for modules to /boot/modules. Kernel installs always override KMODDIR when installing modules, so this default setting is only used for standalone module builds. Many out-of-tree modules manually override KMODDIR already to avoid placing modules in /boot/kernel. This now makes that behavior the default. Discussed on: arch@ Reviewed by: imp Relnotes: yes --- UPDATING | 8 ++++++++ share/mk/bsd.own.mk | 4 ---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/UPDATING b/UPDATING index 7b1ec46ee4e..bc996c52582 100644 --- a/UPDATING +++ b/UPDATING @@ -31,6 +31,14 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 11.x IS SLOW: disable the most expensive debugging functionality run "ln -s 'abort:false,junk:false' /etc/malloc.conf".) +20160510: + Kernel modules compiled outside of a kernel build now default to + installing to /boot/modules instead of /boot/kernel. Many kernel + modules built this way (such as those in ports) already overrode + KMODDIR explicitly to install into /boot/modules. However, + manually building and installing a module from /sys/modules will + now install to /boot/modules instead of /boot/kernel. + 20160414: The CAM I/O scheduler has been committed to the kernel. There should be no user visible impact. This does enable NCQ Trim on ada SSDs. While the diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk index 18b332e7f3d..2ec78a0e55f 100644 --- a/share/mk/bsd.own.mk +++ b/share/mk/bsd.own.mk @@ -165,11 +165,7 @@ BINGRP?= wheel BINMODE?= 555 NOBINMODE?= 444 -.if defined(MODULES_WITH_WORLD) KMODDIR?= /boot/modules -.else -KMODDIR?= /boot/kernel -.endif KMODOWN?= ${BINOWN} KMODGRP?= ${BINGRP} KMODMODE?= ${BINMODE}