1 #
   2 # This file and its contents are supplied under the terms of the
   3 # Common Development and Distribution License ("CDDL"), version 1.0.
   4 # You may only use this file in accordance with the terms of version
   5 # 1.0 of the CDDL.
   6 #
   7 # A full copy of the text of the CDDL should have accompanied this
   8 # source.  A copy of the CDDL is also available via the Internet at
   9 # http://www.illumos.org/license/CDDL.
  10 #
  11 
  12 #
  13 # Copyright (c) 2017 Joyent, Inc.
  14 # Copyright 2018 Nexenta Systems, Inc.
  15 #
  16 
  17 UTSBASE = ../..
  18 
  19 MODULE          = qede
  20 OBJECTS         = $(QEDE_OBJS:%=$(OBJS_DIR)/%) $(QEDE_GEN_OBJS:%=$(OBJS_DIR)/%)
  21 ROOTMODULE      = $(ROOT_DRV_DIR)/$(MODULE)
  22 CONF_SRCDIR     = $(UTSBASE)/common/io/qede
  23 
  24 include $(UTSBASE)/intel/Makefile.intel
  25 
  26 #
  27 # Common definitions that are used by QLogic.
  28 #
  29 CPPFLAGS        += -D__inline=inline
  30 CPPFLAGS        += -D_inline=inline
  31 CPPFLAGS        += -DILLUMOS
  32 CPPFLAGS        += -DECORE_CONFIG_DIRECT_HWFN
  33 CPPFLAGS        += -DCONFIG_ECORE_L2
  34 
  35 #
  36 # Includes that are needed
  37 #
  38 CPPFLAGS        += -I$(UTSBASE)/common/io/qede
  39 CPPFLAGS        += -I$(UTSBASE)/common/io/qede/579xx/drivers/ecore
  40 CPPFLAGS        += -I$(UTSBASE)/common/io/qede/579xx/drivers/ecore/hsi_repository
  41 CPPFLAGS        += -I$(UTSBASE)/common/io/qede/579xx/hsi/
  42 CPPFLAGS        += -I$(UTSBASE)/common/io/qede/579xx/hsi/hw
  43 CPPFLAGS        += -I$(UTSBASE)/common/io/qede/579xx/hsi/mcp
  44 
  45 #
  46 # Temporarily gag these warnings for the moment. We'll work with
  47 # upstream to get them clean.
  48 #
  49 CERRWARN        += -_gcc=-Wno-unused-variable
  50 CERRWARN        += -_gcc=-Wno-unused-function
  51 
  52 ALL_TARGET      = $(BINARY) $(CONFMOD)
  53 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
  54 
  55 LDFLAGS         += -dy -N misc/mac
  56 
  57 #
  58 # We only support the 64-bit version of this driver.
  59 #
  60 DEF_BUILDS      = $(DEF_BUILDSONLY64)
  61 ALL_BUILDS      = $(ALL_BUILDSONLY64)
  62 
  63 .KEEP_STATE:
  64 
  65 def:            $(DEF_DEPS)
  66 
  67 all:            $(ALL_DEPS)
  68 
  69 clean:          $(CLEAN_DEPS)
  70 
  71 clobber:        $(CLOBBER_DEPS)
  72 
  73 install:        $(INSTALL_DEPS)
  74 
  75 modlintlib:
  76 
  77 include $(UTSBASE)/intel/Makefile.targ