build - Fix kernel / modules install from object dir or module source dir
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 1 Sep 2010 16:07:51 +0000 (09:07 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 1 Sep 2010 16:07:51 +0000 (09:07 -0700)
* Only installkernel from /usr/src was installing the modules in the
  right place.

* Add a default KERNEL?= in kmod.mk to try to correct the problem.

Reported-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
sys/conf/kmod.mk

index 33db29a..759b450 100644 (file)
@@ -60,6 +60,10 @@ OBJCOPY?=    objcopy
 KMODLOAD?=     /sbin/kldload
 KMODUNLOAD?=   /sbin/kldunload
 
+# KERNEL is needed when running make install directly from
+# the obj directory.
+KERNEL?=       kernel
+
 KMODDIR?=      ${DESTKERNDIR}
 KMODOWN?=      ${BINOWN}
 KMODGRP?=      ${BINGRP}