git: kernel: Generate miidevs.h, pccarddevs.h and pcidevs.h on the fly.

Sascha Wildner swildner at crater.dragonflybsd.org
Tue Nov 26 20:44:36 PST 2013


commit dcb4b80df71308df08858318df7f148fde3b3e1b
Author: Sascha Wildner <saw at online.de>
Date:   Wed Nov 27 05:43:05 2013 +0100

    kernel: Generate miidevs.h, pccarddevs.h and pcidevs.h on the fly.
    
    It removes the need to regenerate those header file after first editing
    the associated list of IDs (miidevs, pccarddevs or pcidevs). After this
    commit, editing the list alone is enough to add IDs.
    
    We already did it like that for usb4bsd's usbdevs.h before. This commit
    adjusts things for the remaining ID lists.

Summary of changes:
 sys/bus/pccard/Makefile.pccarddevs                 |    9 -
 sys/bus/pccard/pccard_cis_quirks.c                 |    3 +-
 sys/bus/pccard/pccarddevs.h                        | 1393 --------------------
 sys/bus/pci/Makefile.pcidevs                       |   14 -
 sys/bus/pci/pcidevs.h                              |  556 --------
 sys/conf/files                                     |   15 +
 sys/conf/kmod.mk                                   |   30 +
 sys/dev/agp/Makefile                               |    2 +-
 sys/dev/agp/agp_i810.c                             |    2 +-
 sys/dev/disk/ahci/Makefile                         |    2 +-
 sys/dev/disk/ahci/ahci_dragonfly.h                 |    2 +-
 sys/dev/disk/aic/Makefile                          |    2 +-
 sys/dev/disk/aic/aic_pccard.c                      |    2 +-
 sys/dev/disk/fd/fd_pccard.c                        |    2 +-
 sys/dev/disk/nata/ata-card.c                       |    3 +-
 sys/dev/disk/nata/natacard/Makefile                |    3 +-
 sys/dev/disk/ncv/Makefile                          |    2 +-
 sys/dev/disk/ncv/ncr53c500_pccard.c                |    3 +-
 sys/dev/disk/nsp/Makefile                          |    2 +-
 sys/dev/disk/nsp/nsp_pccard.c                      |    3 +-
 sys/dev/disk/sili/Makefile                         |    2 +-
 sys/dev/disk/sili/sili_dragonfly.h                 |    2 +-
 sys/dev/disk/stg/Makefile                          |    2 +-
 sys/dev/disk/stg/tmc18c30_pccard.c                 |    3 +-
 sys/dev/misc/cmx/Makefile                          |    4 +-
 sys/dev/misc/cmx/cmx_pccard.c                      |    3 +-
 sys/dev/netif/acx/Makefile                         |    3 +-
 sys/dev/netif/acx/if_acx.c                         |    2 +-
 sys/dev/netif/ae/Makefile                          |    2 +-
 sys/dev/netif/ae/if_ae.c                           |    2 +-
 sys/dev/netif/age/Makefile                         |    2 +-
 sys/dev/netif/age/if_age.c                         |    2 +-
 sys/dev/netif/alc/Makefile                         |    2 +-
 sys/dev/netif/alc/if_alc.c                         |    2 +-
 sys/dev/netif/ale/Makefile                         |    2 +-
 sys/dev/netif/ale/if_ale.c                         |    2 +-
 sys/dev/netif/an/Makefile                          |    1 +
 sys/dev/netif/an/if_an_pccard.c                    |    3 +-
 sys/dev/netif/an/if_an_pci.c                       |    2 +-
 sys/dev/netif/ar/Makefile                          |    5 +-
 sys/dev/netif/ar/if_ar_pci.c                       |    2 +-
 sys/dev/netif/bfe/Makefile                         |    4 +-
 sys/dev/netif/bfe/if_bfe.c                         |    2 +-
 sys/dev/netif/bge/Makefile                         |    3 +-
 sys/dev/netif/bge/if_bge.c                         |    2 +-
 sys/dev/netif/bnx/Makefile                         |    2 +-
 sys/dev/netif/bnx/if_bnx.c                         |    2 +-
 sys/dev/netif/bwi/Makefile                         |    3 +-
 sys/dev/netif/bwi/bwimac.c                         |    2 +-
 sys/dev/netif/bwi/bwiphy.c                         |    2 +-
 sys/dev/netif/bwi/bwirf.c                          |    2 +-
 sys/dev/netif/bwi/if_bwi.c                         |    2 +-
 sys/dev/netif/cs/if_cs_pccard.c                    |    2 +-
 sys/dev/netif/ed/Makefile                          |    6 +-
 sys/dev/netif/ed/if_ed_pccard.c                    |    2 +-
 sys/dev/netif/ed/if_ed_pci.c                       |    2 +-
 sys/dev/netif/en_pci/if_en_pci.c                   |    2 +-
 sys/dev/netif/ep/Makefile                          |    5 +-
 sys/dev/netif/ep/if_ep_pccard.c                    |    2 +-
 sys/dev/netif/et/Makefile                          |    4 +-
 sys/dev/netif/et/if_et.c                           |    2 +-
 sys/dev/netif/ex/if_ex_pccard.c                    |    3 +-
 sys/dev/netif/fe/if_fe_pccard.c                    |    2 +-
 sys/dev/netif/iwl/Makefile                         |    4 +-
 sys/dev/netif/iwl/if_iwl.c                         |    2 +-
 sys/dev/netif/jme/Makefile                         |    4 +-
 sys/dev/netif/jme/if_jme.c                         |    2 +-
 sys/dev/netif/lge/Makefile                         |    3 +-
 sys/dev/netif/lge/if_lge.c                         |    2 +-
 sys/dev/netif/mii_layer/Makefile                   |    4 +-
 sys/dev/netif/mii_layer/Makefile.miidevs           |    9 -
 sys/dev/netif/mii_layer/atphy.c                    |    2 +-
 sys/dev/netif/mii_layer/jmphy.c                    |    2 +-
 sys/dev/netif/mii_layer/miidevs.h                  |  410 ------
 sys/dev/netif/mii_layer/rgephy.c                   |    2 +-
 sys/dev/netif/mii_layer/truephy.c                  |    2 +-
 sys/dev/netif/nfe/Makefile                         |    4 +-
 sys/dev/netif/nfe/if_nfe.c                         |    2 +-
 sys/dev/netif/nge/Makefile                         |    3 +-
 sys/dev/netif/nge/if_nge.c                         |    2 +-
 sys/dev/netif/pcn/Makefile                         |    3 +-
 sys/dev/netif/pcn/if_pcn.c                         |    2 +-
 sys/dev/netif/re/Makefile                          |    4 +-
 sys/dev/netif/re/if_re.c                           |    2 +-
 sys/dev/netif/rl/Makefile                          |    3 +-
 sys/dev/netif/rl/if_rl.c                           |    2 +-
 sys/dev/netif/rtw/Makefile                         |    3 +-
 sys/dev/netif/rtw/if_rtw_pci.c                     |    2 +-
 sys/dev/netif/sf/Makefile                          |    3 +-
 sys/dev/netif/sf/if_sf.c                           |    2 +-
 sys/dev/netif/sis/Makefile                         |    3 +-
 sys/dev/netif/sis/if_sis.c                         |    2 +-
 sys/dev/netif/sk/Makefile                          |    3 +-
 sys/dev/netif/sk/if_sk.c                           |    2 +-
 sys/dev/netif/sln/Makefile                         |    4 +-
 sys/dev/netif/sln/if_sln.c                         |    2 +-
 sys/dev/netif/sn/if_sn_pccard.c                    |    2 +-
 sys/dev/netif/ste/Makefile                         |    3 +-
 sys/dev/netif/ste/if_ste.c                         |    2 +-
 sys/dev/netif/tx/Makefile                          |    5 +-
 sys/dev/netif/tx/if_tx.c                           |    4 +-
 sys/dev/netif/txp/Makefile                         |    3 +-
 sys/dev/netif/txp/if_txp.c                         |    2 +-
 sys/dev/netif/vge/Makefile                         |    4 +-
 sys/dev/netif/vge/if_vge.c                         |    2 +-
 sys/dev/netif/vr/Makefile                          |    3 +-
 sys/dev/netif/vr/if_vr.c                           |    2 +-
 sys/dev/netif/vx/Makefile                          |    2 +-
 sys/dev/netif/vx/if_vx_pci.c                       |    2 +-
 sys/dev/netif/wb/Makefile                          |    3 +-
 sys/dev/netif/wb/if_wb.c                           |    2 +-
 sys/dev/netif/wi/Makefile                          |    3 +-
 sys/dev/netif/wi/if_wi_pccard.c                    |    2 +-
 sys/dev/netif/xe/Makefile                          |    3 +-
 sys/dev/netif/xe/if_xe_pccard.c                    |    3 +-
 sys/dev/powermng/kate/Makefile                     |    2 +-
 sys/dev/powermng/kate/kate.c                       |    2 +-
 sys/dev/powermng/km/Makefile                       |    2 +-
 sys/dev/powermng/km/km.c                           |    2 +-
 sys/dev/raid/iir/Makefile                          |    2 +-
 sys/dev/raid/iir/iir.c                             |    2 +-
 sys/dev/raid/iir/iir_ctrl.c                        |    2 +-
 sys/dev/raid/iir/iir_pci.c                         |    2 +-
 sys/dev/serial/rp/Makefile                         |    2 +-
 sys/dev/serial/rp/rp_pci.c                         |    2 +-
 sys/dev/serial/sio/sio_pccard.c                    |    3 +-
 sys/dev/video/bktr/bktr/Makefile                   |    2 +-
 sys/dev/video/bktr/bktr_card.c                     |    2 +-
 sys/dev/video/bktr/bktr_core.c                     |    2 +-
 sys/dev/video/bktr/bktr_os.c                       |    2 +-
 sys/dev/video/cxm/cxm.h                            |    2 +-
 sys/dev/video/cxm/cxm/Makefile                     |    2 +-
 sys/platform/pc32/i386/cs5536.c                    |    2 +-
 sys/platform/pc32/i386/geode.c                     |    2 +-
 sys/tools/devlist2h.awk                            |  141 --
 .../devlist2h.awk => tools/miidevs2h.awk}          |    0
 .../devlist2h.awk => tools/pccarddevs2h.awk}       |    0
 sys/{bus/pci/devlist2h.awk => tools/pcidevs2h.awk} |    0
 138 files changed, 185 insertions(+), 2706 deletions(-)
 delete mode 100644 sys/bus/pccard/Makefile.pccarddevs
 delete mode 100644 sys/bus/pccard/pccarddevs.h
 delete mode 100644 sys/bus/pci/Makefile.pcidevs
 delete mode 100644 sys/bus/pci/pcidevs.h
 delete mode 100644 sys/dev/netif/mii_layer/Makefile.miidevs
 delete mode 100644 sys/dev/netif/mii_layer/miidevs.h
 delete mode 100644 sys/tools/devlist2h.awk
 rename sys/{dev/netif/mii_layer/devlist2h.awk => tools/miidevs2h.awk} (100%)
 rename sys/{bus/pccard/devlist2h.awk => tools/pccarddevs2h.awk} (100%)
 rename sys/{bus/pci/devlist2h.awk => tools/pcidevs2h.awk} (100%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/dcb4b80df71308df08858318df7f148fde3b3e1b


-- 
DragonFly BSD source repository



More information about the Commits mailing list