From nobody@FreeBSD.org  Sun Jun  8 07:39:39 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5B69D1065688
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  8 Jun 2008 07:39:39 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 493EE8FC1F
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  8 Jun 2008 07:39:39 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m587dct2020289
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 8 Jun 2008 07:39:38 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m587dcTj020288;
	Sun, 8 Jun 2008 07:39:38 GMT
	(envelope-from nobody)
Message-Id: <200806080739.m587dcTj020288@www.freebsd.org>
Date: Sun, 8 Jun 2008 07:39:38 GMT
From: Yoshihiro Ota <ota@j.email.ne.jp>
To: freebsd-gnats-submit@FreeBSD.org
Subject: make installkernel fails with KMODDIR iff $(KMODDIR) does not exist
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         124389
>Category:       kern
>Synopsis:       [build] make installkernel fails with KMODDIR iff $(KMODDIR) does not exist
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 08 07:40:04 UTC 2008
>Closed-Date:    
>Last-Modified:  Sun Jun 08 18:01:38 UTC 2008
>Originator:     Yoshihiro Ota
>Release:        7.0-STABLE
>Organization:
>Environment:
FreeBSD xxx 7.0-STABLE FreeBSD 7.0-STABLE #417: Sat Jun  7 13:12:29 EDT 2008     root@xxx:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
"make installkernel" does not create $(KMODDIR).  As a result, all files are installed as $(KMODDIR) but not under $(KMODDIR).  Quick-workaround is "mkdir $(KMODDIR)" before installkernel; but installkernel process is broken.
>How-To-Repeat:
# ls /boot/dir
ls: /boot/dir: No such file or directory
# make installkernel KMODDIR=/boot/dir

..

===> zyd (install)
install -o root -g wheel -m 555   if_zyd.ko /boot/dir
install -o root -g wheel -m 555   if_zyd.ko.symbols /boot/dir
kldxref /boot/dir
kldxref: /boot/dir: Not a directory
*** Error code 1

Stop in /usr/src/sys/modules.
*** Error code 1

Stop in /usr/obj/usr/src/sys/GENERIC.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
# ls -l /boot/dir
-r-xr-xr-x  1 root  wheel  89690 Jun  8 03:35 /boot/dir
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
