From owner-freebsd-hackers Thu Mar 20 07:24:54 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id HAA18734 for hackers-outgoing; Thu, 20 Mar 1997 07:24:54 -0800 (PST) Received: from etinc.com (et-gw-fr1.etinc.com [204.141.244.98]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA18726 for ; Thu, 20 Mar 1997 07:24:47 -0800 (PST) Received: from ntws (ntws.etinc.com [204.141.95.142]) by etinc.com (8.8.3/8.6.9) with SMTP id KAA16782; Thu, 20 Mar 1997 10:27:25 -0500 (EST) Message-Id: <3.0.32.19970320102225.00b1e8c0@etinc.com> X-Sender: dennis@etinc.com X-Mailer: Windows Eudora Pro Version 3.0 (32) Date: Thu, 20 Mar 1997 10:22:28 -0500 To: Michael Smith From: dennis Subject: Re: Kernel Object Dependencies Cc: msmith@atrad.adelaide.edu.au, hackers@FreeBSD.ORG Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk At 11:29 AM 3/20/97 +1030, Michael Smith wrote: >dennis stands accused of saying: >> >> in files.i386: >> >> >> >> i386/isa/filename.o optional dn device-driver > ^^ >I missed that, sorry. > >> >> which should clearly be..... >> >> >> >> filename.o: $S/i386/isa/filename.o >> >> -cp $S/i386/isa/filename.o . > >Gotcha. Should it be 'cp' or 'ln -sf' do you think? A symlink will give >you the dependancy behaviour automatically as the kernel dependancy rule >will include the driver, and you save space too. > Yes, thats how BSDI does it...although links dont let you test patched modules as easily without having to overwrite the other one..... >Here's a patch for /usr/src/usr.sbin/config/mkmakefile.c that will >emit the dependancy as you've described; please let me know if it >works for you (beware snarf-n-barf damage) : > >--- /local1/playpen/2.2/src/usr.sbin/config/mkmakefile.c Tue Dec 17 16:17:47 1996 >+++ mkmakefile.c Thu Mar 20 11:26:11 1997 >@@ -675,7 +675,7 @@ > else { > *cp = '\0'; > if (och == 'o') { >- fprintf(f, "%so:\n\t-cp $S/%so .\n\n", >+ fprintf(f, "%so: $S/%so\n\t-cp $S/%so .\n\n", > tail(np), np); > continue; > } > Thanks, I'll give it a try... Dennis