Date: Thu, 20 Mar 1997 10:22:28 -0500 From: dennis <dennis@etinc.com> To: Michael Smith <msmith@atrad.adelaide.edu.au> Cc: msmith@atrad.adelaide.edu.au, hackers@FreeBSD.ORG Subject: Re: Kernel Object Dependencies Message-ID: <3.0.32.19970320102225.00b1e8c0@etinc.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.32.19970320102225.00b1e8c0>