Subject: Re: where to build ndiscvt?
To: Martin Husemann <martin@duskware.de>
From: Alan Ritter <ritter.alan@gmail.com>
List: tech-kern
Date: 04/20/2006 09:40:52
On 4/20/06, Martin Husemann <martin@duskware.de> wrote:
> On Wed, Apr 19, 2006 at 07:52:19PM -0700, Jeff Rizzo wrote:
> > I cross-compile i386 kernels on other architectures all the time;  I
> > agree with others here who've raised the "this sounds like a build tool=
;
> > it should be available on all architectures" argument...
>
> I agree with this part.

OK, it sounds like it's pretty unanimous that ndiscvt should be built
on all architectures.  In order to do this would I just need to move
ndiscvt from distrib/sets/lists/base/md.i386 to mi like so (should I
commit this)?  Or maybe I should hold off until it is decided if
ndiscvt should be built as a tool or not?
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/src/distrib/sets/lists/base/md.i386,v
retrieving revision 1.117
diff -u -r1.117 md.i386
--- md.i386     19 Apr 2006 21:53:12 -0000      1.117
+++ md.i386     20 Apr 2006 16:30:21 -0000
@@ -85,7 +85,6 @@
  ./usr/sbin/bad144                              base-sysutil-bin
  ./usr/sbin/ipwctl                              base-sysutil-bin
  ./usr/sbin/zzz                                 base-sysutil-bin
-./usr/sbin/ndiscvt                             base-sysutil-bin
  ./usr/share/pcvt                               base-obsolete       =20
  obsolete
  ./usr/share/pcvt/fonts                         base-obsolete       =20
  obsolete
  ./usr/share/pcvt/fonts/vt220h.808              base-obsolete       =20
  obsolete
Index: mi
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/src/distrib/sets/lists/base/mi,v
retrieving revision 1.617
diff -u -r1.617 mi
--- mi  19 Apr 2006 21:53:12 -0000      1.617
+++ mi  20 Apr 2006 16:30:21 -0000
@@ -1084,6 +1084,7 @@
  ./usr/sbin/ndbootd                             base-bootserver-bin
  ./usr/sbin/ndc                                 base-obsolete       =20
  obsolete
  ./usr/sbin/ndp                                 base-netutil-bin        in=
et6
+./usr/sbin/ndiscvt                             base-sysutil-bin
  ./usr/sbin/netgroup_mkdb                       base-nis-bin
  ./usr/sbin/nfsd                                        base-nfsserver-bin
  ./usr/sbin/nfsiod                              base-obsolete       =20
  obsolete

> There is one other subtelity though: I think this
> is not a build tool in the src/tools sense, since i386 kernels will never
> include an NDIS driver by default, right?

It wouldn't really make sense to build an NDIS driver by default
because you need to go out and fetch the appropriate .inf and .sys
files for the card (probably from the manufacturer's website) before
you can use ndiscvt to build the ndis_driver_data.h file.  This
process could probably be automated by keeping a database of all the
supported cards and the location where their files can be downloaded
from, but this would be a bit of a pain to maintain and I'm not sure
if there are legal issues involved.