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.
This commit is contained in:
jdolecek 2001-04-11 07:42:31 +00:00
parent 4ac5e36af2
commit 372e5956ef
28 changed files with 28 additions and 192 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -1,3 +0,0 @@
# $NetBSD: Makefile,v 1.2 1999/08/26 07:58:58 mrg Exp $
.include <bsd.kinc.mk>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -1,7 +0,0 @@
# $NetBSD: Makefile,v 1.2 1998/07/28 08:45:46 augustss Exp $
INCSDIR= /usr/include/dev/sbus
INCS= mbppio.h
.include <bsd.kinc.mk>

View File

@ -1,11 +1,9 @@
# $NetBSD: Makefile,v 1.2 2000/02/20 07:39:41 mjacob Exp $
# $NetBSD: Makefile,v 1.3 2001/04/11 07:42:39 jdolecek Exp $
INCSDIR= /usr/include/dev/scsipi
INCS= atapi_all.h atapi_cd.h atapi_disk.h atapiconf.h cdvar.h scsi_all.h \
scsi_cd.h scsi_changer.h scsi_ctron_ether.h scsi_disk.h \
scsi_message.h scsi_scanner.h scsi_tape.h scsiconf.h scsipi_all.h \
scsipi_base.h scsipi_cd.h scsipi_debug.h scsipi_disk.h scsipiconf.h \
sdvar.h ses.h ss_mustek.h ssvar.h
# Only install includes which are used by userland
INCS= scsipi_all.h scsi_all.h scsipi_debug.h scsi_disk.h \
scsipiconf.h scsiconf.h ses.h
.include <bsd.kinc.mk>

View File

@ -1,7 +0,0 @@
# $NetBSD: Makefile,v 1.1 2000/06/15 03:43:40 matt Exp $
INCSDIR= /usr/include/dev/std
INCS= ieee1212reg.h
.include <bsd.kinc.mk>

View File

@ -1,7 +1,8 @@
# $NetBSD: Makefile,v 1.3 2000/08/20 14:00:43 pk Exp $
# $NetBSD: Makefile,v 1.4 2001/04/11 07:42:40 jdolecek Exp $
INCSDIR= /usr/include/dev/sun
INCS= event_var.h kbd_tables.h kbd_xlate.h disklabel.h fbio.h
# Only install includes which are used by userland
INCS= disklabel.h
.include <bsd.kinc.mk>

View File

@ -1,11 +0,0 @@
# $NetBSD: Makefile,v 1.7 2000/12/17 13:52:03 ad Exp $
# use 'make -f Makefile.tcdevs' to make tcdevs.h and tcdevs_data.h
INCSDIR= /usr/include/dev/tc
INCS= ascvar.h if_levar.h ioasicreg.h ioasicvar.h sfbreg.h \
sticreg.h sticvar.h tcdevs.h tcdevs_data.h tcdsreg.h tcdsvar.h \
tcreg.h tcvar.h
.include <bsd.kinc.mk>

View File

@ -1,7 +0,0 @@
# $NetBSD: Makefile,v 1.1 1998/06/12 23:22:59 cgd Exp $
INCSDIR= /usr/include/dev/vme
INCS= vmevar.h xdreg.h xdvar.h xio.h xyreg.h xyvar.h
.include <bsd.kinc.mk>

View File

@ -1,7 +0,0 @@
# $NetBSD: Makefile,v 1.1 1999/04/13 00:24:05 ad Exp $
INCSDIR= /usr/include/dev/wsfont
INCS= wsfont.h
.include <bsd.kinc.mk>