From 7a84d2a74655a82f69fdf99b0579051d99f25ddd Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 1 Sep 2010 09:07:51 -0700 Subject: [PATCH] build - Fix kernel / modules install from object dir or module source dir * 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 --- sys/conf/kmod.mk | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index 33db29a..759b450 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -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} -- 1.7.7.2