From owner-freebsd-hackers Mon Oct 1 15:22: 2 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by hub.freebsd.org (Postfix) with ESMTP id 335BF37B406 for ; Mon, 1 Oct 2001 15:21:58 -0700 (PDT) Received: from onyx (onyx.cs.binghamton.edu [128.226.140.171]) by bingnet2.cc.binghamton.edu (8.11.4/8.11.4) with ESMTP id f91MLuS18747; Mon, 1 Oct 2001 18:21:56 -0400 (EDT) Date: Mon, 1 Oct 2001 18:21:25 -0400 (EDT) From: Zhihui Zhang X-Sender: zzhang@onyx To: Song Li Cc: freebsd-hackers@freebsd.org Subject: Re: Make a kernel in a different directory In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The Makefile contains the following: # $FreeBSD: src/sys/modules/accf_http/Makefile,v 1.1.2.1 2000/07/28 04:03:48 alfred Exp $ .PATH: ${.CURDIR}/../../netinet KMOD = accf_http SRCS = accf_http.c .include On Mon, 1 Oct 2001, Song Li wrote: > So what's the contents of the Makefile in the accf_http directory? > > > On Mon, 1 Oct 2001, Zhihui Zhang wrote: > > > > > I put the whole kernel code under /test by the following command: > > > > #cp -R /usr/src/sys /test > > > > My configuration file is under /test/sys/i386/conf. Then I follow > > all the steps as I usually do to make a kernel and install the kernel > > (config, make depend, make, and make install). > > > > But I got the following errors: > > > > # make install > > chflags noschg /kernel > > mv /kernel /kernel.old > > install -c -m 555 -o root -g wheel -fschg kernel /kernel > > if [ -d /modules -a -n "`ls /modules`" ]; then mkdir -p /modules.old; cp > > -p /modules/* /modules.old; fi; > > cd ../../modules && env MAKEOBJDIRPREFIX=/test/sys/compile/TRY/modules > > make install > > ===> accf_data > > install -c -o root -g wheel -m 555 accf_data.ko /modules > > ===> accf_http > > install -c -o root -g wheel -m 555 accf_http.ko /modules > > install: accf_http.ko: No such file or directory > > *** Error code 71 > > > > Stop in /test/sys/modules/accf_http. > > *** Error code 1 > > > > I go to the directory and there is nothing except Makefile there: > > > > # pwd > > /test/sys/modules/accf_http > > # ls -al > > total 24 > > drwxr-xr-x 2 root wheel 56 Oct 1 17:49 . > > drwxr-xr-x 97 root wheel 1848 Oct 1 17:49 .. > > -rw-r--r-- 1 root wheel 183 Oct 1 17:49 Makefile > > > > I must have missed something. Thanks for any help. I am using 4.3-Release > > on a PC. > > > > -Zhihui > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-hackers" in the body of the message > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message