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 #
  15 
  16 UTSBASE = ../..
  17 
  18 MODULE          = qede
  19 OBJECTS         = $(QEDE_OBJS:%=$(OBJS_DIR)/%) $(QEDE_GEN_OBJS:%=$(OBJS_DIR)/%)
  20 ROOTMODULE      = $(ROOT_DRV_DIR)/$(MODULE)
  21 CONF_SRCDIR     = $(UTSBASE)/common/io/qede
  22 
  23 include $(UTSBASE)/intel/Makefile.intel
  24 
  25 #
  26 # Common definitions that are used by QLogic.
  27 #
  28 CPPFLAGS        += -D__inline=inline
  29 CPPFLAGS        += -D_inline=inline
  30 CPPFLAGS        += -DILLUMOS
  31 CPPFLAGS        += -DECORE_CONFIG_DIRECT_HWFN
  32 CPPFLAGS        += -DCONFIG_ECORE_L2
  33 
  34 #
  35 # Includes that are needed
  36 #
  37 CPPFLAGS        += -I$(UTSBASE)/common/io/qede
  38 CPPFLAGS        += -I$(UTSBASE)/common/io/qede/579xx/drivers/ecore
  39 CPPFLAGS        += -I$(UTSBASE)/common/io/qede/579xx/drivers/ecore/hsi_repository
  40 CPPFLAGS        += -I$(UTSBASE)/common/io/qede/579xx/hsi/
  41 CPPFLAGS        += -I$(UTSBASE)/common/io/qede/579xx/hsi/hw
  42 CPPFLAGS        += -I$(UTSBASE)/common/io/qede/579xx/hsi/mcp
  43 
  44 #
  45 # Temporarily gag these warnings for the moment. We'll work with
  46 # upstream to get them clean.
  47 #
  48 CERRWARN        += -_gcc=-Wno-unused-variable
  49 CERRWARN        += -_gcc=-Wno-unused-function
  50 
  51 ALL_TARGET      = $(BINARY) $(CONFMOD)
  52 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
  53 
  54 LDFLAGS         += -dy -N misc/mac
  55 
  56 .KEEP_STATE:
  57 
  58 def:            $(DEF_DEPS)
  59 
  60 all:            $(ALL_DEPS)
  61 
  62 clean:          $(CLEAN_DEPS)
  63 
  64 clobber:        $(CLOBBER_DEPS)
  65 
  66 lint:
  67 modlintlib:
  68 clean.lint:
  69 
  70 install:        $(INSTALL_DEPS)
  71 
  72 include $(UTSBASE)/intel/Makefile.targ