Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Mar 1997 11:29:01 +1030 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        dennis@etinc.com (dennis)
Cc:        msmith@atrad.adelaide.edu.au, hackers@FreeBSD.ORG
Subject:   Re: Kernel Object Dependencies
Message-ID:  <199703200059.LAA29544@genesis.atrad.adelaide.edu.au>
In-Reply-To: <3.0.32.19970319191037.00b2d900@etinc.com> from dennis at "Mar 19, 97 07:10:39 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
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.

> the example you gave is a source/object dependecy, which works.
> I believe that config somehow generates the dependency in the
> Makefile, and that has to come from the files.i386 declaration.What
> I'm saying is that it doesn't generate the correct Makefile entry 
> when the file is an object module.

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;
                        }


> Dennis

-- 
]] Mike Smith, Software Engineer        msmith@gsoft.com.au             [[
]] Genesis Software                     genesis@gsoft.com.au            [[
]] High-speed data acquisition and      (GSM mobile)     0411-222-496   [[
]] realtime instrument control.         (ph)          +61-8-8267-3493   [[
]] Unix hardware collector.             "Where are your PEZ?" The Tick  [[



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703200059.LAA29544>