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/sun4u/starcat/unix/Makefile
+++ new/usr/src/uts/sun4u/starcat/unix/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 unix (and unix.o).
29 29 #
30 30 # sun4u starcat implementation architecture dependent
31 31 #
32 32
33 33 #
34 34 # Path to the base of the uts directory tree (usually /usr/src/uts).
35 35 #
36 36 UTSBASE = ../../..
37 37
38 38 #
39 39 # Define the module and object file sets.
40 40 #
41 41 UNIX = unix
42 42 OBJECTS = $(SPECIAL_OBJS:%=$(OBJS_DIR)/%) \
43 43 $(CORE_OBJS:%=$(OBJS_DIR)/%) \
44 44 $(MACH_NOT_YET_KMODS:%=$(OBJS_DIR)/%)
45 45 LINTS = $(SPECIAL_OBJS:%.o=$(LINTS_DIR)/%.ln) \
46 46 $(CORE_OBJS:%.o=$(LINTS_DIR)/%.ln) \
47 47 $(MACH_NOT_YET_KMODS:%.o=$(LINTS_DIR)/%.ln) \
48 48 $(LINTS_DIR)/vers.ln \
49 49 $(LINTS_DIR)/modstubs.ln
50 50
51 51 KRTLD_MAPFILE = $(UTSBASE)/sparc/krtld/mapfile
52 52 KRTLD_OBJECTS = $(KRTLD_OBJS:%=$(OBJS_DIR)/%)
53 53 KRTLD_O = $(OBJS_DIR)/krtld.o
54 54
55 55 ROOTMODULE = $(ROOT_STARCAT_KERN_DIR)/$(UNIX)
56 56 UNIX_BIN = $(OBJS_DIR)/$(UNIX)
57 57
58 58 LIBS = $(GENLIB) $(PLATLIB) $(CPULIB)
59 59
60 60 GENUNIX = genunix
61 61 GENUNIX_DIR = ../../$(GENUNIX)
62 62 GENOPTS = -L $(GENUNIX_DIR)/$(OBJS_DIR) -l $(GENUNIX)
63 63
64 64 CPU_DIR = .
65 65 CPUOPTS = -L $(CPU_DIR)/$(OBJS_DIR) -l $(CPUNAME)
66 66
67 67 PLAT_DIR = ../../platmod
68 68 PLATOPTS = -L $(PLAT_DIR)/$(OBJS_DIR) -l $(PLATMOD)
69 69
70 70 LIBOPTS = $(GENOPTS) $(PLATOPTS) $(CPUOPTS)
71 71
72 72 CTFEXTRAOBJS = $(OBJS_DIR)/vers.o
73 73
74 74 #
75 75 # Include common rules.
76 76 #
77 77 include $(UTSBASE)/sun4u/starcat/Makefile.starcat
78 78
79 79 #
80 80 # Define targets
81 81 #
82 82 ALL_TARGET = $(UNIX_BIN)
83 83 LINT_TARGET = $(LINT_LIB)
84 84 INSTALL_TARGET = $(UNIX_BIN) $(ROOTMODULE)
85 85
86 86 #
87 87 # Overrides
88 88 #
89 89 ALL_BUILDS = $(ALL_BUILDSONLY64)
90 90 DEF_BUILDS = $(DEF_BUILDSONLY64)
91 91 SYM_BUILDS = $(DEF_BUILDSONLY64)
92 92 CLEANLINTFILES += $(LINT32_FILES)
93 93
94 94 #
95 95 # This is UNIX_DIR. Use a short path.
96 96 #
97 97 UNIX_DIR = .
98 98
99 99 #
100 100 # Overrides
101 101 #
102 102 CLEANFILES += $(UNIX_O) $(MODSTUBS_O) $(KRTLD_O) $(KRTLD_OBJECTS) \
103 103 $(OBJS_DIR)/vers.c $(OBJS_DIR)/vers.o \
104 104 $(CPU_OBJ) $(CPULIB) \
105 105 $(DTRACESTUBS_O) $(DTRACESTUBS)
106 106
107 107 CLOBBERFILES = $(CLEANFILES) $(UNIX_BIN)
108 108 CLEANLINTFILES += $(LINT_LIB)
109 109
110 110 #
111 111 # lint pass one enforcement
112 112 # Turn on doubleword alignment for 64 bit counter timer registers
113 113 #
114 114 CFLAGS += $(CCVERBOSE) -dalign
115 115
116 116 CERRWARN += -_gcc=-Wno-parentheses
117 117 CERRWARN += -_gcc=-Wno-uninitialized
118 118 CERRWARN += -_gcc=-Wno-char-subscripts
119 119 CERRWARN += -_gcc=-Wno-unused-variable
120 120 CERRWARN += -_gcc=-Wno-unused-function
121 121 CERRWARN += -_gcc=-Wno-unused-label
122 122 CERRWARN += -_gcc=-Wno-type-limits
123 123 CERRWARN += -_gcc=-Wno-clobbered
124 124 CERRWARN += -_gcc=-Wno-empty-body
125 125 CERRWARN += -_gcc=-Wno-unused-value
126 126 CERRWARN += -_gcc=-Wno-switch
127 127
128 128 #
129 129 # Default build targets.
130 130 #
131 131 .KEEP_STATE:
132 132
133 133 def: $(DEF_DEPS)
134 134
135 135 all: $(ALL_DEPS)
136 136
137 137 clean: $(CLEAN_DEPS)
138 138
139 139 clobber: $(CLOBBER_DEPS)
140 140
141 141 lint: $(LINT_DEPS)
142 142
↓ open down ↓ |
142 lines elided |
↑ open up ↑ |
143 143 clean.lint: $(CLEAN_LINT_DEPS)
144 144
145 145 install: $(INSTALL_DEPS)
146 146
147 147 symcheck: $(SYM_DEPS)
148 148
149 149 $(UNIX_BIN): $(UNIX_O) $(KRTLD_O) $(MODSTUBS_O) $(MAPFILE) $(LIBS) \
150 150 $(DTRACESTUBS)
151 151 $(LD) -dy -b -o $@ -e _start -M $(MAPFILE) \
152 152 $(UNIX_O) $(KRTLD_O) $(MODSTUBS_O) $(LIBOPTS) $(DTRACESTUBS)
153 - $(CTFMERGE_UNIQUIFY_AGAINST_GENUNIX)
153 + $(CTFMERGE_MODULE)
154 154 $(POST_PROCESS)
155 155 $(CHK4UBINARY)
156 156
157 157 symcheck.targ: $(UNIX_O) $(KRTLD_O) $(MODSTUBS_O) $(LIBS) $(DTRACESTUBS)
158 158 $(LD) -dy -b -o $(SYM_MOD) -M $(MAPFILE) \
159 159 $(UNIX_O) $(KRTLD_O) $(MODSTUBS_O) $(LIBOPTS) $(DTRACESTUBS)
160 160
161 161 $(UNIX_O): $(OBJECTS) $(OBJS_DIR)/vers.o
162 162 $(LD) -r -o $@ $(OBJECTS) $(OBJS_DIR)/vers.o
163 163
164 164 $(KRTLD_O): $(KRTLD_OBJECTS)
165 165 $(LD) -r -o $@ -M$(KRTLD_MAPFILE) $(KRTLD_OBJECTS)
166 166
167 167 #
168 168 # CPU_OBJ now comprises of 2 object files which come from sun4 common
169 169 # and from architecture dependent code. OBJS_DIR is prepended where
170 170 # CPU_DIR is defined to allow for building multiple CPU_OBJ's
171 171 #
172 172 $(CPULIB): $(CPU_OBJ)
173 173 $(BUILD.SO) $(CPU_OBJ)
174 174
175 175 #
176 176 # The global lint target builds the kernel lint library (llib-lunix.ln)
177 177 # which is equivalent to a lint of /unix.o. Then all kernel modules for
178 178 # this architecture are linted against the kernel lint library.
179 179 #
180 180 # Note: lint errors in the kernel lint library will be repeated for
181 181 # each module. It is important that the kernel lint library
182 182 # be clean to keep the textual output to a reasonable level.
183 183 #
184 184
185 185 $(LINT_LIB): $(LINT_LIB_DIR) $(LINTS)
186 186 @-$(ECHO) "\n$(UNIX): (library construction):"
187 187 @$(LINT) -o $(UNIX) $(LINTFLAGS) $(LINTS)
188 188 @$(MV) $(@F) $@
189 189
190 190 lintlib: $(LINT_DEPS)
191 191
192 192 #
193 193 # Include common targets.
194 194 #
195 195 include $(UTSBASE)/sun4u/starcat/Makefile.targ
↓ open down ↓ |
32 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX