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
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.
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
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
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
70 clobber: $(CLOBBER_DEPS
)
72 install: $(INSTALL_DEPS
)
74 include $(UTSBASE
)/intel
/Makefile.targ