Merge remote-tracking branch 'origin/master'
[unleashed/lotheac.git] / usr / src / uts / intel / qede / Makefile
blobe0c06ddf93f78666328f4835400ef0dc4df69269
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.
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.
13 # Copyright (c) 2018, Joyent, Inc.
16 UTSBASE = ../..
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
23 include $(UTSBASE)/intel/Makefile.intel
26 # Common definitions that are used by QLogic.
28 CPPFLAGS += -D__inline=inline
29 CPPFLAGS += -D_inline=inline
30 CPPFLAGS += -DILLUMOS
31 CPPFLAGS += -DECORE_CONFIG_DIRECT_HWFN
32 CPPFLAGS += -DCONFIG_ECORE_L2
35 # Includes that are needed
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
45 # Temporarily gag these warnings for the moment. We'll work with
46 # upstream to get them clean.
48 CERRWARN += -Wno-unused-variable
49 CERRWARN += -Wno-unused-function
51 # 3rd party module
52 SMOFF += all_func_returns,indenting,no_if_block,deref_check,testing_index_after_use
54 # real bug in qede_multicast()
55 $(OBJS_DIR)/qede_gld.o := SMOFF += assign_vs_compare
57 ALL_TARGET = $(BINARY) $(CONFMOD)
58 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
60 LDFLAGS += -dy -N misc/mac
62 .KEEP_STATE:
64 def: $(DEF_DEPS)
66 all: $(ALL_DEPS)
68 clean: $(CLEAN_DEPS)
70 clobber: $(CLOBBER_DEPS)
72 install: $(INSTALL_DEPS)
74 include $(UTSBASE)/intel/Makefile.targ