aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Uses/kmod.mk
diff options
context:
space:
mode:
authorrene <rene@FreeBSD.org>2014-01-25 07:08:17 +0800
committerrene <rene@FreeBSD.org>2014-01-25 07:08:17 +0800
commitacc56089eff997d73179a76328ca67934f9e14e8 (patch)
treee21d34b22435fc8cd2a53419ffd5d1c480076702 /Mk/Uses/kmod.mk
parentbc50792eacb71e84d668ba2384b062d0b3ca1447 (diff)
downloadfreebsd-ports-gnome-acc56089eff997d73179a76328ca67934f9e14e8.tar.gz
freebsd-ports-gnome-acc56089eff997d73179a76328ca67934f9e14e8.tar.zst
freebsd-ports-gnome-acc56089eff997d73179a76328ca67934f9e14e8.zip
- kernel modules support SSP natively, so change the description
of SSP_UNSAFE [1] - take advantage of rmdir -p to remove nested instances of KMODDIR if empty. Some ports have KMODDIR=dir1/dir2 Submitted by: antoine [1] Approved by: portmgr (bapt)
Diffstat (limited to 'Mk/Uses/kmod.mk')
-rw-r--r--Mk/Uses/kmod.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mk/Uses/kmod.mk b/Mk/Uses/kmod.mk
index daf1b58222ae..ebcdc54e909e 100644
--- a/Mk/Uses/kmod.mk
+++ b/Mk/Uses/kmod.mk
@@ -23,7 +23,7 @@ IGNORE= requires kernel source files in ${SRC_BASE}
CATEGORIES+= kld
-SSP_UNSAFE= kernel module does not support SSP
+SSP_UNSAFE= kernel module supports SSP natively
KMODDIR?= /boot/modules
.if ${KMODDIR} == /boot/kernel
@@ -51,7 +51,7 @@ kmod-post-install:
/usr/sbin/kldxref ${KMODDIR}
.endif
.if ${KMODDIR} != /boot/modules
- @${ECHO_CMD} "@unexec rmdir ${KMODDIR} 2>/dev/null || true" \
+ @${ECHO_CMD} "@unexec rmdir -p ${KMODDIR} 2>/dev/null || true" \
>> ${TMPPLIST}
.endif