diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index d73af895cc23..f18110afa679 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -278,7 +278,7 @@ distribute: .if !target(load) load: ${PROG} - ${KMODLOAD} -v ${.CURDIR}/${KMOD}.ko + ${KMODLOAD} -v ${.OBJDIR}/${KMOD}.ko .endif .if !target(unload)