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
    
      
        | Split | 
	Close | 
      
      | Expand all | 
      | Collapse all | 
    
    
          --- old/usr/src/uts/common/io/fibre-channel/fca/qlc/Makefile
          +++ new/usr/src/uts/common/io/fibre-channel/fca/qlc/Makefile
   1    1  #
   2    2  # CDDL HEADER START
   3    3  #
   4    4  # The contents of this file are subject to the terms of the
   5    5  # Common Development and Distribution License (the "License").
   6    6  # You may not use this file except in compliance with the License.
   7    7  #
   8    8  # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9    9  # or http://www.opensolaris.org/os/licensing.
  10   10  # See the License for the specific language governing permissions
  11   11  # and limitations under the License.
  12   12  #
  13   13  # When distributing Covered Code, include this CDDL HEADER in each
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  #
  22   22  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25   25  # Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  26   26  #
  27   27  
  28   28  # Path to the base of the uts directory tree (usually /usr/src/uts).
  29   29  UTSBASE = ../../../../..
  30   30  
  
    | 
      ↓ open down ↓ | 
    30 lines elided | 
    
      ↑ open up ↑ | 
  
  31   31  #
  32   32  #       Include common rules.
  33   33  #
  34   34  include $(SRC)/Makefile.master
  35   35  
  36   36  FWTABLE          = ql_fw_table.c
  37   37  FWIMAGES         = 2200
  38   38  FWIMAGES        += 2300
  39   39  FWIMAGES        += 2400
  40   40  FWIMAGES        += 2500
       41 +FWIMAGES        += 2700
  41   42  FWIMAGES        += 6322
  42   43  FWIMAGES        += 8100
       44 +FWIMAGES        += 8301fc
  43   45  
  44   46  FWMODULES_SRC    = $(FWIMAGES:%=ql_fw_%.c)
  45   47  
  46   48  all_h install_h : $(FWTABLE)
  47   49  
  48   50  check:
  49   51  
  50   52  clean:
  51   53          $(RM) $(FWTABLE)
  52   54  
  53   55  clobber: clean
  54   56  
  55   57  $(FWTABLE): $(FWMODULES_SRC)
  56   58          $(RM) $@
  57   59          echo '#include <ql_apps.h>'             >> $@
  58   60          echo '#include <ql_api.h>'              >> $@
  59   61          echo 'struct fw_table fw_table[] = {'   >> $@
  60   62          grep FW_VERSION_STRING $(FWMODULES_SRC) |\
  61   63          grep '#define'                          |\
  62   64          sed 's/[0-9]"/& },/'                    |\
  63   65          sed 's/.*ql_fw_/{ 0x/'                  |\
  64   66          sed 's/.c:#define/,/'                   |\
  65   67          sed 's/FW_VERSION_STRING//'             >> $@
  66   68          echo '{ 0, NULL }'                      >> $@
  67   69          echo '};'                               >> $@
  68   70  
  69   71  .KEEP_STATE:
  
    | 
      ↓ open down ↓ | 
    17 lines elided | 
    
      ↑ open up ↑ | 
  
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX