Print this page
1961 investigate stopping uniquifying CTF information
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Joshua M. Clulow <josh@sysmgr.org>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/genunix/Makefile
+++ new/usr/src/uts/intel/genunix/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 26
27 27 #
28 28 # This makefile drives the production of the generic
29 29 # unix kernel module.
30 30 #
31 31 # x86 implementation architecture dependent
32 32 #
33 33
34 34 #
35 35 # Path to the base of the uts directory tree (usually /usr/src/uts).
36 36 #
37 37 UTSBASE = ../..
38 38
39 39 #
40 40 # Define the module and object file sets.
41 41 #
42 42 MODULE = genunix
43 43 GENUNIX = $(OBJS_DIR)/$(MODULE)
44 44
45 45 OBJECTS = $(GENUNIX_OBJS:%=$(OBJS_DIR)/%) \
46 46 $(NOT_YET_KMODS:%=$(OBJS_DIR)/%)
47 47
48 48 LINTS = $(GENUNIX_OBJS:%.o=$(LINTS_DIR)/%.ln) \
49 49 $(NOT_YET_KMODS:%.o=$(LINTS_DIR)/%.ln)
50 50
51 51 ROOTMODULE = $(ROOT_KERN_DIR)/$(MODULE)
52 52
53 53 LIBGEN = $(OBJS_DIR)/libgenunix.so
54 54 LIBSTUBS = $(GENSTUBS_OBJS:%=$(OBJS_DIR)/%)
55 55
56 56 #
57 57 # Include common rules.
58 58 #
59 59 include $(UTSBASE)/intel/Makefile.intel
60 60
61 61 #
62 62 # Define targets
63 63 #
64 64 ALL_TARGET = $(LIBGEN)
↓ open down ↓ |
64 lines elided |
↑ open up ↑ |
65 65 LINT_TARGET = $(MODULE).lint
66 66 INSTALL_TARGET = $(GENUNIX) $(ROOTMODULE)
67 67
68 68 #
69 69 # Overrides
70 70 #
71 71 CLOBBERFILES += $(GENUNIX)
72 72 CLEANFILES += $(LIBSTUBS) $(LIBGEN)
73 73 BINARY =
74 74
75 -#
76 -# Non-patch genunix builds merge a version of the ip module called ipctf. This
77 -# is to ensure that the common network-related types are included in genunix and
78 -# can thus be uniquified out of other modules. We don't want to do this for
79 -# patch builds, since we can't guarantee that ip and genunix will be in the same
80 -# patch.
81 -#
82 -IPCTF_TARGET = $(IPCTF)
83 -$(PATCH_BUILD)IPCTF_TARGET =
84 -
85 75 CPPFLAGS += -I$(SRC)/common
86 76 CPPFLAGS += -I$(SRC)/uts/common/fs/zfs
87 77
88 78 CPPFLAGS += -I$(UTSBASE)/i86pc
89 79
90 80 #
91 81 # For now, disable these lint checks; maintainers should endeavor
92 82 # to investigate and remove these for maximum lint coverage.
93 83 # Please do not carry these forward to new Makefiles.
94 84 #
95 85 LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
96 86 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
97 87 LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
98 88 LINTTAGS += -erroff=E_STATIC_UNUSED
99 89 LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
100 90 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
101 91
102 92 CERRWARN += -_gcc=-Wno-unused-label
103 93 CERRWARN += -_gcc=-Wno-unused-variable
104 94 CERRWARN += -_gcc=-Wno-unused-value
105 95 CERRWARN += -_gcc=-Wno-unused-function
106 96 CERRWARN += -_gcc=-Wno-parentheses
107 97 CERRWARN += -_gcc=-Wno-switch
108 98 CERRWARN += -_gcc=-Wno-type-limits
109 99 CERRWARN += -_gcc=-Wno-uninitialized
110 100 CERRWARN += -_gcc=-Wno-clobbered
111 101 CERRWARN += -_gcc=-Wno-empty-body
112 102
113 103 #
114 104 # Ensure that lint sees 'struct cpu' containing a fully declared
115 105 # embedded 'struct machcpu'
116 106 #
117 107 LINTFLAGS += -D_MACHDEP -I../../i86pc
118 108
119 109 #
120 110 # Default build targets.
121 111 #
122 112 .KEEP_STATE:
123 113
124 114 def: $(DEF_DEPS)
125 115
126 116 all: $(ALL_DEPS)
127 117
128 118 clean: $(CLEAN_DEPS)
129 119
130 120 clobber: $(CLOBBER_DEPS)
131 121
132 122 lint: $(LINT_DEPS)
↓ open down ↓ |
38 lines elided |
↑ open up ↑ |
133 123
134 124 modlintlib: $(MODLINTLIB_DEPS)
135 125
136 126 clean.lint: $(CLEAN_LINT_DEPS)
137 127
138 128 install: $(INSTALL_DEPS)
139 129
140 130 $(LIBGEN): $(GENUNIX) $(LIBSTUBS)
141 131 $(BUILD.SO) $(GENUNIX) $(LIBSTUBS)
142 132
143 -$(IPCTF_TARGET) ipctf_target: FRC
144 - @cd $(IPDRV_DIR); pwd; $(MAKE) ipctf.$(OBJS_DIR)
145 - @pwd
146 -
147 -$(GENUNIX): $(IPCTF_TARGET) $(OBJECTS)
133 +$(GENUNIX): $(OBJECTS)
148 134 $(LD) -r $(LDFLAGS) -o $@ $(OBJECTS)
149 - $(CTFMERGE_GENUNIX_MERGE)
135 + $(CTFMERGE_MODULE)
150 136 $(POST_PROCESS)
151 137
152 138 #
153 139 # Include common targets.
154 140 #
155 141 include $(UTSBASE)/intel/Makefile.targ
156 142
157 143 #
158 144 # Software workarounds for hardware "features".
159 145 #
160 146 include $(UTSBASE)/i86pc/Makefile.workarounds
161 147
162 148 ALL_DEFS += $(WORKAROUND_DEFS)
163 149
164 150 #
165 151 # Override.
166 152 #
167 153 $(MODULE).lint := GEN_LINT_LIB =
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX