From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 11 13:35:50 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 022F816A4DC for ; Thu, 11 Mar 2004 13:35:49 -0800 (PST) Received: from hanoi.cronyx.ru (hanoi.cronyx.ru [144.206.181.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 461AF43D39 for ; Thu, 11 Mar 2004 13:35:48 -0800 (PST) (envelope-from rik@cronyx.ru) Received: (from root@localhost) by hanoi.cronyx.ru id i2BLW2k7062341 for hackers@freebsd.org.checked; (8.12.8/vak/2.1) Fri, 12 Mar 2004 00:32:02 +0300 (MSK) (envelope-from rik@cronyx.ru) Received: from cronyx.ru (rik.cronyx.ru [172.22.4.1]) by hanoi.cronyx.ru with ESMTP id i2BLVxli062332 for ; (8.12.8/vak/2.1) Fri, 12 Mar 2004 00:31:59 +0300 (MSK) (envelope-from rik@cronyx.ru) Message-ID: <4050DCBF.5050807@cronyx.ru> Date: Fri, 12 Mar 2004 00:40:15 +0300 From: Roman Kurakin User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020610 X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: make install (kernel) without /modules dir X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2004 21:35:50 -0000 Hi, It seems that I've found another problem. If /modules dir would be removed, make install (of kernel and kernel modules) will not create modules dir and you'll get /modules file with one of the modules inside. One of the variants is to add flag -d to install or other to mkdir -p explicitly: --- Makefile.old Fri Mar 12 00:13:45 2004 +++ Makefile Fri Mar 12 00:15:03 2004 @@ -626,6 +626,7 @@ cp -p ${DESTDIR}/modules/* ${DESTDIR}/modules.old; \ fi; .endif + mkdir -p ${DESTDIR}/modules cd $S/modules ; env ${MKMODULESENV} ${MAKE} install modules-reinstall modules-reinstall.debug: Best regards, Roman Kurakin