Print this page
NEX-5717 import QLogic 16G FC drivers
Reviewed by: Steve Peng <steve.peng@nexenta.com>
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
re #13842 make clobber leaves trash


  21 #
  22 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  26 #
  27 
  28 # Path to the base of the uts directory tree (usually /usr/src/uts).
  29 UTSBASE = ../../../../..
  30 
  31 #
  32 #       Include common rules.
  33 #
  34 include $(SRC)/Makefile.master
  35 
  36 FWTABLE          = ql_fw_table.c
  37 FWIMAGES         = 2200
  38 FWIMAGES        += 2300
  39 FWIMAGES        += 2400
  40 FWIMAGES        += 2500

  41 FWIMAGES        += 6322
  42 FWIMAGES        += 8100

  43 
  44 FWMODULES_SRC    = $(FWIMAGES:%=ql_fw_%.c)
  45 
  46 all_h install_h : $(FWTABLE)
  47 
  48 check:
  49 
  50 clean:
  51         $(RM) $(FWTABLE)
  52 
  53 clobber: clean
  54 
  55 $(FWTABLE): $(FWMODULES_SRC)
  56         $(RM) $@
  57         echo '#include <ql_apps.h>'             >> $@
  58         echo '#include <ql_api.h>'              >> $@
  59         echo 'struct fw_table fw_table[] = {'   >> $@
  60         grep FW_VERSION_STRING $(FWMODULES_SRC) |\
  61         grep '#define'                          |\
  62         sed 's/[0-9]"/& },/'                    |\


  21 #
  22 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  26 #
  27 
  28 # Path to the base of the uts directory tree (usually /usr/src/uts).
  29 UTSBASE = ../../../../..
  30 
  31 #
  32 #       Include common rules.
  33 #
  34 include $(SRC)/Makefile.master
  35 
  36 FWTABLE          = ql_fw_table.c
  37 FWIMAGES         = 2200
  38 FWIMAGES        += 2300
  39 FWIMAGES        += 2400
  40 FWIMAGES        += 2500
  41 FWIMAGES        += 2700
  42 FWIMAGES        += 6322
  43 FWIMAGES        += 8100
  44 FWIMAGES        += 8301fc
  45 
  46 FWMODULES_SRC    = $(FWIMAGES:%=ql_fw_%.c)
  47 
  48 all_h install_h : $(FWTABLE)
  49 
  50 check:
  51 
  52 clean:
  53         $(RM) $(FWTABLE)
  54 
  55 clobber: clean
  56 
  57 $(FWTABLE): $(FWMODULES_SRC)
  58         $(RM) $@
  59         echo '#include <ql_apps.h>'             >> $@
  60         echo '#include <ql_api.h>'              >> $@
  61         echo 'struct fw_table fw_table[] = {'   >> $@
  62         grep FW_VERSION_STRING $(FWMODULES_SRC) |\
  63         grep '#define'                          |\
  64         sed 's/[0-9]"/& },/'                    |\