Use OBJDIR instead of CURDIR. This unbreaks loading modules through
'make load' if an object dir was, like it is used in /sys/modules. I.e. cd /sys/modules/umass make obj make make load works again without having to install the module. If no objdir was used the module in the current directory is used.
This commit is contained in:
parent
e3957e9d67
commit
dba3dc7bdc
@ -278,7 +278,7 @@ distribute:
|
||||
|
||||
.if !target(load)
|
||||
load: ${PROG}
|
||||
${KMODLOAD} -v ${.CURDIR}/${KMOD}.ko
|
||||
${KMODLOAD} -v ${.OBJDIR}/${KMOD}.ko
|
||||
.endif
|
||||
|
||||
.if !target(unload)
|
||||
|
Loading…
x
Reference in New Issue
Block a user