Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev Only install headers which are actually used by our ...



details:   https://anonhg.NetBSD.org/src/rev/f44fd252bdba
branches:  trunk
changeset: 508404:f44fd252bdba
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Wed Apr 11 07:42:31 2001 +0000

description:
Only install headers which are actually used by our userland. This
saves about 2.2MB under /usr/include/dev/. Discussed on tech-kern@
recently.

I HOPE to get the list right. The headers I left in are ones
used for MI tools and those whose usage I discovered by grep over tree sources.
Feel free to put needed includes back in if you encounter anything which
should not be removed from lists.

diffstat:

 sys/dev/Makefile                   |  10 ++++------
 sys/dev/dec/Makefile               |   5 +++--
 sys/dev/eisa/Makefile              |   9 ---------
 sys/dev/hpc/Makefile               |   7 -------
 sys/dev/i2c/Makefile               |   7 -------
 sys/dev/i2o/Makefile               |   3 ++-
 sys/dev/ic/Makefile                |  24 +++---------------------
 sys/dev/ieee1394/Makefile          |   7 -------
 sys/dev/isa/Makefile               |  13 -------------
 sys/dev/isapnp/Makefile            |   9 ---------
 sys/dev/microcode/Makefile         |   7 -------
 sys/dev/microcode/aic7xxx/Makefile |   9 ---------
 sys/dev/microcode/isp/Makefile     |   3 ---
 sys/dev/mii/Makefile               |   8 --------
 sys/dev/ofisa/Makefile             |   7 -------
 sys/dev/ofw/Makefile               |   7 -------
 sys/dev/pci/Makefile               |   7 +++----
 sys/dev/pckbc/Makefile             |   5 +++--
 sys/dev/pcmcia/Makefile            |   5 +++--
 sys/dev/rasops/Makefile            |   7 -------
 sys/dev/rcons/Makefile             |   7 -------
 sys/dev/sbus/Makefile              |   7 -------
 sys/dev/scsipi/Makefile            |  10 ++++------
 sys/dev/std/Makefile               |   7 -------
 sys/dev/sun/Makefile               |   5 +++--
 sys/dev/tc/Makefile                |  11 -----------
 sys/dev/vme/Makefile               |   7 -------
 sys/dev/wsfont/Makefile            |   7 -------
 28 files changed, 28 insertions(+), 192 deletions(-)

diffs (truncated from 384 to 300 lines):

diff -r 6af4b62d014b -r f44fd252bdba sys/dev/Makefile
--- a/sys/dev/Makefile  Wed Apr 11 06:21:49 2001 +0000
+++ b/sys/dev/Makefile  Wed Apr 11 07:42:31 2001 +0000
@@ -1,13 +1,11 @@
-#      $NetBSD: Makefile,v 1.6 2001/02/23 14:08:54 uch Exp $
+#      $NetBSD: Makefile,v 1.7 2001/04/11 07:42:31 jdolecek Exp $
 
-SUBDIR=        ata dec eisa hpc i2c i2o ic isa isapnp microcode mii \
-       ofisa ofw pckbc pcmcia pci rcons sbus scsipi \
-       sun tc usb wscons vme
+SUBDIR=        ata dec i2o ic pci pckbc pcmcia scsipi sun usb wscons
 
 KDIR=  /sys/dev
 INCSDIR= /usr/include/dev
 
-INCS=  auconv.h audio_if.h audiovar.h ccdvar.h clock_subr.h cons.h md.h \
-       mulaw.h vndvar.h
+# Only install includes which are used by userland
+INCS=  ccdvar.h md.h vndvar.h
 
 .include <bsd.kinc.mk>
diff -r 6af4b62d014b -r f44fd252bdba sys/dev/dec/Makefile
--- a/sys/dev/dec/Makefile      Wed Apr 11 06:21:49 2001 +0000
+++ b/sys/dev/dec/Makefile      Wed Apr 11 07:42:31 2001 +0000
@@ -1,7 +1,8 @@
-#      $NetBSD: Makefile,v 1.2 2000/06/16 23:09:57 matt Exp $
+#      $NetBSD: Makefile,v 1.3 2001/04/11 07:42:31 jdolecek Exp $
 
 INCSDIR= /usr/include/dev/dec
 
-INCS=  clockvar.h dec_boot.h lk201.h mcclock_pad32.h mcclockvar.h
+# Only install includes which are used by userland
+INCS=  lk201.h
 
 .include <bsd.kinc.mk>
diff -r 6af4b62d014b -r f44fd252bdba sys/dev/eisa/Makefile
--- a/sys/dev/eisa/Makefile     Wed Apr 11 06:21:49 2001 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-#      $NetBSD: Makefile,v 1.3 1998/06/16 18:36:03 cgd Exp $
-
-# use 'make -f Makefile.eisadevs' to make eisadevs.h and eisadevs_data.h
-
-INCSDIR= /usr/include/dev/eisa
-
-INCS=  ahbreg.h eisadevs.h eisadevs_data.h eisareg.h eisavar.h
-
-.include <bsd.kinc.mk>
diff -r 6af4b62d014b -r f44fd252bdba sys/dev/hpc/Makefile
--- a/sys/dev/hpc/Makefile      Wed Apr 11 06:21:49 2001 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-#      $NetBSD: Makefile,v 1.1 2001/02/23 14:08:55 uch Exp $
-
-INCSDIR= /usr/include/dev/hpc
-
-INCS=  hpcfbio.h
-
-.include <bsd.kinc.mk>
diff -r 6af4b62d014b -r f44fd252bdba sys/dev/i2c/Makefile
--- a/sys/dev/i2c/Makefile      Wed Apr 11 06:21:49 2001 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-#      $NetBSD: Makefile,v 1.1 1998/06/12 23:22:49 cgd Exp $
-
-INCSDIR= /usr/include/dev/i2c
-
-INCS=  i2c_bus.h i2c_eeprom.h
-
-.include <bsd.kinc.mk>
diff -r 6af4b62d014b -r f44fd252bdba sys/dev/i2o/Makefile
--- a/sys/dev/i2o/Makefile      Wed Apr 11 06:21:49 2001 +0000
+++ b/sys/dev/i2o/Makefile      Wed Apr 11 07:42:31 2001 +0000
@@ -1,7 +1,8 @@
-#      $NetBSD: Makefile,v 1.3 2001/03/20 13:01:48 ad Exp $
+#      $NetBSD: Makefile,v 1.4 2001/04/11 07:42:33 jdolecek Exp $
 
 INCSDIR= /usr/include/dev/i2o
 
+# Only install includes which are used by userland
 INCS=  i2o.h iopio.h
 
 .include <bsd.kinc.mk>
diff -r 6af4b62d014b -r f44fd252bdba sys/dev/ic/Makefile
--- a/sys/dev/ic/Makefile       Wed Apr 11 06:21:49 2001 +0000
+++ b/sys/dev/ic/Makefile       Wed Apr 11 07:42:31 2001 +0000
@@ -1,26 +1,8 @@
-#      $NetBSD: Makefile,v 1.17 2001/04/10 21:50:53 mjacob Exp $
+#      $NetBSD: Makefile,v 1.18 2001/04/11 07:42:33 jdolecek Exp $
 
 INCSDIR= /usr/include/dev/ic
 
-INCS=  ad1848reg.h ahareg.h ahavar.h aic6360reg.h aic6360var.h \
-       aic77xxreg.h aic77xxvar.h aic7xxxvar.h am7930reg.h am7990reg.h \
-       am7990var.h bhareg.h bhavar.h bt431reg.h bt459reg.h \
-       bt463reg.h bt485reg.h bt8xx.h cacreg.h cacvar.h cd1190reg.h \
-       cd1400reg.h comreg.h comvar.h cs4231reg.h cyreg.h \
-       cyvar.h dc21040reg.h dl10019reg.h dp8390reg.h dp8390var.h dptreg.h \
-       dptvar.h ds.h elink3reg.h elink3var.h hayespreg.h i8042reg.h \
-       i82365reg.h i82365var.h i8237reg.h i8253reg.h i82586reg.h i82586var.h \
-       i82595reg.h ics2101reg.h ims332reg.h intersil7170.h interwavereg.h \
-       interwavevar.h ispmbox.h ispreg.h ispvar.h isp_ioctl.h lemacreg.h \
-       lemacvar.h lptreg.h lptvar.h mb86960reg.h mb86960var.h mc146818reg.h \
-       mc68450reg.h mc6845reg.h midwayreg.h midwayvar.h mlxio.h mlxreg.h \
-       ncr5380reg.h ncr5380var.h ncr53c400reg.h ncr53c9xreg.h ncr53c9xvar.h \
-       ne2000reg.h ne2000var.h \
-       nec765reg.h ns16450reg.h ns16550reg.h opl3sa3reg.h pcdisplay.h \
-       pcdisplayvar.h pckbcvar.h pdqreg.h pdqvar.h rrunnerreg.h rrunnervar.h \
-       smc83c170reg.h smc83c170var.h smc90cx6reg.h smc91cxxreg.h \
-       smc91cxxvar.h smc93cx6var.h st16650reg.h tms320av110reg.h \
-       tms320av110var.h uhareg.h uhavar.h vgareg.h vgavar.h wdcreg.h \
-       wdcvar.h z8530reg.h z8530sc.h
+# Only install includes which are used by userland
+INCS=  isp_ioctl.h mlxreg.h mlxio.h rrunnerreg.h rrunnervar.h wdcreg.h
 
 .include <bsd.kinc.mk>
diff -r 6af4b62d014b -r f44fd252bdba sys/dev/ieee1394/Makefile
--- a/sys/dev/ieee1394/Makefile Wed Apr 11 06:21:49 2001 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-#      $NetBSD: Makefile,v 1.1 2000/05/30 22:52:02 matt Exp $
-
-INCSDIR= /usr/include/dev/ieee1394
-
-INCS=  ieee1394reg.h
-
-.include <bsd.kinc.mk>
diff -r 6af4b62d014b -r f44fd252bdba sys/dev/isa/Makefile
--- a/sys/dev/isa/Makefile      Wed Apr 11 06:21:49 2001 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-#      $NetBSD: Makefile,v 1.5 2001/03/23 23:14:32 briggs Exp $
-
-INCSDIR= /usr/include/dev/isa
-
-INCS=  ad1848var.h ariareg.h com_multi.h cs4231var.h elink.h esp_isavar.h \
-       gusreg.h ics2101var.h if_aireg.h if_ecreg.h if_efreg.h if_egreg.h \
-       if_elreg.h if_fereg.h if_ixreg.h if_levar.h isadmareg.h \
-       isadmavar.h isareg.h isavar.h madreg.h mcdreg.h pasreg.h \
-       pcdisplayvar.h pcppireg.h pcppivar.h pssreg.h satlinkio.h \
-       satlinkreg.h sbdspvar.h sbreg.h sbvar.h spkrio.h vga_isavar.h \
-       wdsreg.h weaselreg.h wssreg.h wssvar.h wtreg.h ymvar.h
-
-.include <bsd.kinc.mk>
diff -r 6af4b62d014b -r f44fd252bdba sys/dev/isapnp/Makefile
--- a/sys/dev/isapnp/Makefile   Wed Apr 11 06:21:49 2001 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-#      $NetBSD: Makefile,v 1.2 1998/07/23 19:30:44 christos Exp $
-
-# use 'make -f Makefile.isapnpdevs' to make isapnpdevs.h and isapnpdevs.c
-
-INCSDIR= /usr/include/dev/isapnp
-
-INCS=  if_levar.h isapnpreg.h isapnpvar.h
-
-.include <bsd.kinc.mk>
diff -r 6af4b62d014b -r f44fd252bdba sys/dev/microcode/Makefile
--- a/sys/dev/microcode/Makefile        Wed Apr 11 06:21:49 2001 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-#      $NetBSD: Makefile,v 1.3 2001/01/05 23:17:48 martin Exp $
-
-SUBDIR=        aic7xxx isp
-
-INCSDIR= /usr/include/dev/microcode
-
-.include <bsd.kinc.mk>
diff -r 6af4b62d014b -r f44fd252bdba sys/dev/microcode/aic7xxx/Makefile
--- a/sys/dev/microcode/aic7xxx/Makefile        Wed Apr 11 06:21:49 2001 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-#      $NetBSD: Makefile,v 1.5 2000/03/15 02:09:07 fvdl Exp $
-
-# use 'make -f Makefile.sequencer headers' to make aic7xxx_seq.h and friends
-
-INCSDIR= /usr/include/dev/microcode/aic7xxx
-
-INCS=  aic7xxx_seq.h aic7xxx_reg.h
-
-.include <bsd.kinc.mk>
diff -r 6af4b62d014b -r f44fd252bdba sys/dev/microcode/isp/Makefile
--- a/sys/dev/microcode/isp/Makefile    Wed Apr 11 06:21:49 2001 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-#      $NetBSD: Makefile,v 1.2 1999/08/26 07:58:58 mrg Exp $
-
-.include <bsd.kinc.mk>
diff -r 6af4b62d014b -r f44fd252bdba sys/dev/mii/Makefile
--- a/sys/dev/mii/Makefile      Wed Apr 11 06:21:49 2001 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,8 +0,0 @@
-#      $NetBSD: Makefile,v 1.7 1999/12/07 19:36:37 thorpej Exp $
-
-INCSDIR= /usr/include/dev/mii
-
-INCS=  icsphyreg.h inphyreg.h iophyreg.h lxtphyreg.h mii.h miivar.h \
-       nsphyreg.h nsphyterreg.h qsphyreg.h tlphyreg.h tlphyvar.h tqphyreg.h
-
-.include <bsd.kinc.mk>
diff -r 6af4b62d014b -r f44fd252bdba sys/dev/ofisa/Makefile
--- a/sys/dev/ofisa/Makefile    Wed Apr 11 06:21:49 2001 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-#      $NetBSD: Makefile,v 1.1 1998/06/12 23:22:52 cgd Exp $
-
-INCSDIR= /usr/include/dev/ofisa
-
-INCS=  ofisavar.h
-
-.include <bsd.kinc.mk>
diff -r 6af4b62d014b -r f44fd252bdba sys/dev/ofw/Makefile
--- a/sys/dev/ofw/Makefile      Wed Apr 11 06:21:49 2001 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-#      $NetBSD: Makefile,v 1.3 2000/11/14 06:45:55 matt Exp $
-
-INCSDIR= /usr/include/dev/ofw
-
-INCS=  ofw_pci.h openfirm.h openfirmio.h
-
-.include <bsd.kinc.mk>
diff -r 6af4b62d014b -r f44fd252bdba sys/dev/pci/Makefile
--- a/sys/dev/pci/Makefile      Wed Apr 11 06:21:49 2001 +0000
+++ b/sys/dev/pci/Makefile      Wed Apr 11 07:42:31 2001 +0000
@@ -1,11 +1,10 @@
-#      $NetBSD: Makefile,v 1.6 1999/06/20 18:17:22 pk Exp $
+#      $NetBSD: Makefile,v 1.7 2001/04/11 07:42:37 jdolecek Exp $
 
 # use 'make -f Makefile.pcidevs' to make pcidevs.h and pcidevs_data.h
 
 INCSDIR= /usr/include/dev/pci
 
-INCS=  if_devar.h if_levar.h if_lmcioctl.h if_lmcvar.h if_lmc_types.h \
-       if_tlregs.h ncrreg.h pcidevs.h pcidevs_data.h pciidereg.h pciidevar.h \
-       pcireg.h pcivar.h ppbreg.h tgareg.h tgavar.h vga_pcivar.h
+# Only install includes which are used by userland
+INCS=  if_lmc_types.h if_lmcioctl.h tgareg.h
 
 .include <bsd.kinc.mk>
diff -r 6af4b62d014b -r f44fd252bdba sys/dev/pckbc/Makefile
--- a/sys/dev/pckbc/Makefile    Wed Apr 11 06:21:49 2001 +0000
+++ b/sys/dev/pckbc/Makefile    Wed Apr 11 07:42:31 2001 +0000
@@ -1,7 +1,8 @@
-#      $NetBSD: Makefile,v 1.1 1998/06/12 23:22:54 cgd Exp $
+#      $NetBSD: Makefile,v 1.2 2001/04/11 07:42:37 jdolecek Exp $
 
 INCSDIR= /usr/include/dev/pckbc
 
-INCS=  pckbdreg.h pckbdvar.h psmreg.h
+# Only install includes which are used by userland
+INCS=  pckbdreg.h
 
 .include <bsd.kinc.mk>
diff -r 6af4b62d014b -r f44fd252bdba sys/dev/pcmcia/Makefile
--- a/sys/dev/pcmcia/Makefile   Wed Apr 11 06:21:49 2001 +0000
+++ b/sys/dev/pcmcia/Makefile   Wed Apr 11 07:42:31 2001 +0000
@@ -1,9 +1,10 @@
-#      $NetBSD: Makefile,v 1.4 1999/11/29 12:53:59 itojun Exp $
+#      $NetBSD: Makefile,v 1.5 2001/04/11 07:42:38 jdolecek Exp $
 
 # use 'make -f Makefile.pcmciadevs' to make pcmciadevs.h and pcmciadevs_data.h
 
 INCSDIR= /usr/include/dev/pcmcia
 
-INCS=  pcmciachip.h pcmciareg.h pcmciavar.h if_wi_ieee.h if_cnwioctl.h
+# Only install includes which are used by userland
+INCS=  if_wi_ieee.h if_cnwioctl.h
 
 .include <bsd.kinc.mk>
diff -r 6af4b62d014b -r f44fd252bdba sys/dev/rasops/Makefile
--- a/sys/dev/rasops/Makefile   Wed Apr 11 06:21:49 2001 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-#      $NetBSD: Makefile,v 1.1 1999/04/13 00:17:57 ad Exp $
-
-INCSDIR= /usr/include/dev/rasops
-
-INCS=  rasops.h
-
-.include <bsd.kinc.mk>
diff -r 6af4b62d014b -r f44fd252bdba sys/dev/rcons/Makefile
--- a/sys/dev/rcons/Makefile    Wed Apr 11 06:21:49 2001 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-#      $NetBSD: Makefile,v 1.2 1999/04/13 18:43:17 ad Exp $
-
-INCSDIR= /usr/include/dev/rcons
-
-INCS=  raster.h rcons.h
-
-.include <bsd.kinc.mk>
diff -r 6af4b62d014b -r f44fd252bdba sys/dev/sbus/Makefile
--- a/sys/dev/sbus/Makefile     Wed Apr 11 06:21:49 2001 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-#      $NetBSD: Makefile,v 1.2 1998/07/28 08:45:46 augustss Exp $
-
-INCSDIR= /usr/include/dev/sbus
-



Home | Main Index | Thread Index | Old Index