Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/bnxe/Makefile
+++ new/usr/src/uts/intel/bnxe/Makefile
1 1 #
2 2 # This file and its contents are supplied under the terms of the
3 3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 4 # You may only use this file in accordance with the terms of version
5 5 # 1.0 of the CDDL.
6 6 #
7 7 # A full copy of the text of the CDDL should have accompanied this
8 8 # source. A copy of the CDDL is also available via the Internet at
9 9 # http://www.illumos.org/license/CDDL.
10 10 #
11 11
12 12 #
13 13 # Copyright (c) 2019, Joyent, Inc.
14 14 #
15 15
16 16 #
17 17 # uts/intel/bnxe/Makefile
18 18 #
19 19 # This makefile drives the production of the bnxe
20 20 # driver kernel module.
21 21 #
22 22 # intel architecture dependent
23 23 #
24 24
25 25 #
26 26 # Paths to the base of the uts directory trees
27 27 #
28 28 UTSBASE = ../..
29 29
30 30 #
31 31 # Define the module and object file sets.
32 32 #
33 33 MODULE = bnxe
34 34 OBJECTS = $(BNXE_OBJS:%=$(OBJS_DIR)/%)
35 35 LINTS = $(LINTS_DIR)/bnxe_lint.ln
36 36 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
37 37 SRCDIR = $(UTSBASE)/common/io/bnxe
38 38 CONF_SRCDIR = $(SRCDIR)
39 39
40 40 #
41 41 # Include common rules.
42 42 #
43 43 include $(UTSBASE)/intel/Makefile.intel
44 44
45 45 #
46 46 # Define targets
47 47 #
48 48 ALL_TARGET = $(BINARY) $(CONFMOD)
49 49 LINT_TARGET = $(MODULE).lint
50 50 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
51 51
52 52 C99LMODE= -Xc99=%all
53 53
54 54 #
55 55 # Driver-specific flags
56 56 # XXX inline bits were originally set to inline
57 57 #
58 58 CPPFLAGS += -DLM_RXPKT_NON_CONTIGUOUS \
59 59 -DELINK_ENHANCEMENTS \
60 60 -DELINK_57711E_SUPPORT \
61 61 -DELINK_DEBUG \
62 62 -D__inline= \
63 63 -D_inline= \
64 64 -D__BASENAME__=\"bnxe\" \
65 65 -D__SunOS \
66 66 -D__S11 \
67 67 -DILLUMOS \
68 68 -DLITTLE_ENDIAN \
69 69 -DLITTLE_ENDIAN_HOST \
70 70 -D__LITTLE_ENDIAN \
71 71 -I$(SRCDIR)/577xx/include \
72 72 -I$(SRCDIR)/577xx/drivers/common/ecore \
73 73 -I$(SRCDIR)/577xx/drivers/common/include \
74 74 -I$(SRCDIR)/577xx/drivers/common/include/l4 \
75 75 -I$(SRCDIR)/577xx/drivers/common/include/l5 \
76 76 -I$(SRCDIR)/577xx/drivers/common/lm/device \
77 77 -I$(SRCDIR)/577xx/drivers/common/lm/fw \
78 78 -I$(SRCDIR)/577xx/drivers/common/lm/include \
↓ open down ↓ |
78 lines elided |
↑ open up ↑ |
79 79 -I$(SRCDIR)/577xx/drivers/common/lm/l4 \
80 80 -I$(SRCDIR)/577xx/drivers/common/lm/l4/include \
81 81 -I$(SRCDIR)/577xx/drivers/common/lm/l5 \
82 82 -I$(SRCDIR)/577xx/drivers/common/lm/l5/include \
83 83 -I$(SRCDIR)/577xx/hsi/hw/include \
84 84 -I$(SRCDIR)/577xx/hsi/mcp \
85 85 -I$(SRCDIR)
86 86
87 87 LDFLAGS += -dy -r -Ndrv/ip -Nmisc/mac
88 88 CERRWARN += -_gcc=-Wno-switch
89 -CERRWARN += -_gcc=-Wno-uninitialized
89 +CERRWARN += $(CNOWARN_UNINIT)
90 90 CERRWARN += -_gcc=-Wno-parentheses
91 91 CERRWARN += -_gcc=-Wno-unused-function
92 92 CERRWARN += -_gcc=-Wno-unused-value
93 93 CERRWARN += -_gcc=-Wno-unused-variable
94 94 CERRWARN += -_gcc=-Wno-unused-but-set-variable
95 95 CERRWARN += -_cc=-erroff=E_STATEMENT_NOT_REACHED
96 96 CERRWARN += -_cc=-erroff=E_ARGUEMENT_MISMATCH
97 97 CERRWARN += -_cc=-erroff=E_INTEGER_OVERFLOW_DETECTED
98 98 CERRWARN += -_cc=-erroff=E_CONST_PROMOTED_UNSIGNED_LL
99 99 CERRWARN += -_cc=-erroff=E_ENUM_VAL_OVERFLOWS_INT_MAX
100 100
101 101 # a whole mess
102 102 SMATCH=off
103 103
104 104 LINTTAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
105 105 LINTTAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
106 106 LINTTAGS += -erroff=E_STATIC_UNUSED
107 107 LINTTAGS += -erroff=E_FUNC_SET_NOT_USED
108 108 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
109 109 LINTTAGS += -erroff=E_CONSTANT_CONDITION
110 110 LINTTAGS += -erroff=E_NOP_ELSE_STMT
111 111 LINTTAGS += -erroff=E_NOP_IF_STMT
112 112 LINTTAGS += -erroff=E_FUNC_ARG_UNUSED
113 113 LINTTAGS += -erroff=E_FUNC_VAR_UNUSED
114 114 LINTTAGS += -erroff=E_EXPR_NULL_EFFECT
115 115 LINTTAGS += -erroff=E_STMT_NOT_REACHED
116 116 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
117 117 LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
118 118 LINTTAGS += -erroff=E_CASE_FALLTHRU
119 119 LINTTAGS += -erroff=E_CONST_EXPR
120 120
121 121 #
122 122 # Default build targets.
123 123 #
124 124 .KEEP_STATE:
125 125
126 126 def: $(DEF_DEPS)
127 127
128 128 all: $(ALL_DEPS)
129 129
130 130 clean: $(CLEAN_DEPS)
131 131
132 132 clobber: $(CLOBBER_DEPS)
133 133
134 134 lint: $(LINT_DEPS)
135 135
136 136 modlintlib: $(MODLINTLIB_DEPS)
137 137
138 138 clean.lint: $(CLEAN_LINT_DEPS)
139 139
140 140 install: $(INSTALL_DEPS)
141 141
142 142 #
143 143 # Include common targets.
144 144 #
145 145 include $(UTSBASE)/intel/Makefile.targ
↓ open down ↓ |
46 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX