diff options
-rw-r--r-- | Mk/Uses/kmod.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Mk/Uses/kmod.mk b/Mk/Uses/kmod.mk index bb0cc92d2e6e..372551a6acdb 100644 --- a/Mk/Uses/kmod.mk +++ b/Mk/Uses/kmod.mk @@ -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" |