Print this page
11226 Remove NetraCT support
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/sun4u/Makefile.sun4u
+++ new/usr/src/uts/sun4u/Makefile.sun4u
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 2010 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 # Copyright (c) 2013 Andrew Stormont. All rights reserved.
26 26 # Copyright 2019 Peter Tribble.
27 27 #
28 28 # This makefile contains the common definitions for the sun4u unix
29 29 # and all sun4u implementation architecture dependent modules.
30 30 #
31 31
32 32 #
33 33 # Machine type (implementation architecture):
34 34 #
35 35 PLATFORM = sun4u
36 36 PROMIF = ieee1275
37 37 PSMBASE = $(UTSBASE)/../psm
38 38
39 39 #
40 40 # uname -m value
41 41 #
42 42 UNAME_M = $(PLATFORM)
43 43
44 44 #
45 45 # Definitions for the platform-specific /platform directories.
46 46 #
47 47 # PLATFORMS designates those sun4u machines which have no platform
48 48 # specific code.
49 49 #
50 50 # IMPLEMENTATIONS is used to designate sun4u machines which do have
51 51 # platform specific modules (perhaps including their own unix). All
52 52 # code specific to a given implementation resides in the appropriately
53 53 # named subdirectory. This requires these platforms to have their
54 54 # own Makefiles to define ROOT_PLAT_DIRS, USR_PLAT_DIRS, etc.
55 55 #
56 56 # So if we had an implementation named 'foo', we would need the following
57 57 # Makefiles in the foo subdirectory:
58 58 #
59 59 # sun4u/foo/Makefile
60 60 # sun4u/foo/Makefile.foo
61 61 # sun4u/foo/Makefile.targ
62 62 #
63 63
64 64 #
65 65 # /usr/platform/$(IMPLEMENTED_PLATFORM) is created as a directory that
66 66 # all the $(LINKED_PLATFORMS) link to.
67 67 #
68 68 IMPLEMENTED_PLATFORM = SUNW,Ultra-2
69 69
70 70 LINKED_PLATFORMS += SUNW,Ultra-30
71 71 LINKED_PLATFORMS += SUNW,Ultra-60
72 72
73 73 #
74 74 # all PLATFORMS that do not belong in the $(IMPLEMENTATIONS) list
75 75 # ie. all desktop platforms
76 76 #
77 77 PLATFORMS = $(IMPLEMENTED_PLATFORM)
78 78 PLATFORMS += $(LINKED_PLATFORMS)
79 79
80 80 ROOT_PLAT_DIRS = $(PLATFORMS:%=$(ROOT_PLAT_DIR)/%)
81 81 USR_PLAT_DIRS = $(PLATFORMS:%=$(USR_PLAT_DIR)/%)
82 82
83 83 USR_DESKTOP_DIR = $(USR_PLAT_DIR)/$(IMPLEMENTED_PLATFORM)
84 84 USR_DESKTOP_INC_DIR = $(USR_DESKTOP_DIR)/include
85 85 USR_DESKTOP_SBIN_DIR = $(USR_DESKTOP_DIR)/sbin
86 86 USR_DESKTOP_LIB_DIR = $(USR_DESKTOP_DIR)/lib
87 87
88 88 #
89 89 # Welcome to SPARC V9.
90 90 #
91 91
92 92 #
93 93 # Define supported builds
94 94 #
95 95 DEF_BUILDS = $(DEF_BUILDS64)
96 96 ALL_BUILDS = $(ALL_BUILDS64)
97 97
98 98 #
99 99 # Everybody needs to know how to build modstubs.o and to locate unix.o
100 100 #
101 101 UNIX_DIR = $(UTSBASE)/$(PLATFORM)/unix
102 102 GENLIB_DIR = $(UTSBASE)/$(PLATFORM)/genunix
103 103 MODSTUBS_DIR = $(UNIX_DIR)
104 104 DSF_DIR = $(UTSBASE)/$(PLATFORM)/genassym
105 105 LINTS_DIR = $(OBJS_DIR)
106 106 LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/lint-libs/$(OBJS_DIR)
107 107
108 108 DTRACESTUBS_O = $(OBJS_DIR)/dtracestubs.o
109 109 DTRACESTUBS = $(OBJS_DIR)/libdtracestubs.so
110 110
111 111 UNIX_O = $(UNIX_DIR)/$(OBJS_DIR)/unix.o
112 112 MODSTUBS_O = $(MODSTUBS_DIR)/$(OBJS_DIR)/modstubs.o
113 113 GENLIB = $(GENLIB_DIR)/$(OBJS_DIR)/libgenunix.so
114 114
115 115 LINT_LIB = $(LINT_LIB_DIR)/llib-lunix.ln
116 116 GEN_LINT_LIB = $(LINT_LIB_DIR)/llib-lgenunix.ln
117 117
118 118 LINT64_DIRS = $(LINT64_BUILDS:%=$(UTSBASE)/$(PLATFORM)/lint-libs/%)
119 119 LINT64_FILES = $(LINT64_DIRS:%=%/llib-l$(MODULE).ln)
120 120
121 121 #
122 122 # cpu and platform modules need to know how to build their own symcheck module
123 123 #
124 124 PLATMOD = platmod
125 125 PLATLIB = $(PLAT_DIR)/$(OBJS_DIR)/libplatmod.so
126 126
127 127 CPUNAME = cpu
128 128 CPULIB = $(CPU_DIR)/$(OBJS_DIR)/libcpu.so
129 129
130 130 SYM_MOD = $(OBJS_DIR)/unix.sym
131 131
132 132 #
133 133 # Include the makefiles which define build rule templates, the
134 134 # collection of files per module, and a few specific flags. Note
135 135 # that order is significant, just as with an include path. The
136 136 # first build rule template which matches the files name will be
137 137 # used. By including these in order from most machine dependent
138 138 # to most machine independent, we allow a machine dependent file
139 139 # to be used in preference over a machine independent version
140 140 # (Such as a machine specific optimization, which preserves the
141 141 # interfaces.)
142 142 #
143 143 include $(UTSBASE)/sun4/Makefile.files
144 144 include $(UTSBASE)/$(PLATFORM)/Makefile.files
145 145 include $(UTSBASE)/sfmmu/Makefile.files
146 146 include $(UTSBASE)/sparc/v9/Makefile.files
147 147 include $(UTSBASE)/sparc/Makefile.files
148 148 include $(UTSBASE)/sun/Makefile.files
149 149 include $(SRC)/psm/promif/$(PROMIF)/common/Makefile.files
150 150 include $(SRC)/psm/promif/$(PROMIF)/$(PLATFORM)/Makefile.files
151 151 include $(UTSBASE)/common/Makefile.files
152 152
153 153 #
154 154 # Include machine independent rules. Note that this does not imply
155 155 # that the resulting module from rules in Makefile.uts is machine
156 156 # independent. Only that the build rules are machine independent.
157 157 #
158 158 include $(UTSBASE)/Makefile.uts
159 159
↓ open down ↓ |
159 lines elided |
↑ open up ↑ |
160 160 # These come after Makefile.uts.
161 161 IMPLEMENTATIONS = tazmo
162 162 IMPLEMENTATIONS += javelin
163 163 IMPLEMENTATIONS += darwin
164 164 IMPLEMENTATIONS += quasar
165 165 IMPLEMENTATIONS += grover
166 166 IMPLEMENTATIONS += enchilada
167 167 IMPLEMENTATIONS += taco
168 168 IMPLEMENTATIONS += mpxu
169 169 IMPLEMENTATIONS += excalibur
170 -IMPLEMENTATIONS += montecarlo
171 170 IMPLEMENTATIONS += serengeti
172 171 IMPLEMENTATIONS += littleneck
173 172 IMPLEMENTATIONS += daktari
174 173 IMPLEMENTATIONS += cherrystone
175 174 IMPLEMENTATIONS += fjlite
176 -IMPLEMENTATIONS += snowbird
177 175 IMPLEMENTATIONS += schumacher
178 176 IMPLEMENTATIONS += blade
179 177 IMPLEMENTATIONS += boston
180 178 IMPLEMENTATIONS += seattle
181 179 IMPLEMENTATIONS += chicago
182 180 IMPLEMENTATIONS += sunfire
183 181 IMPLEMENTATIONS += lw8
184 -IMPLEMENTATIONS += makaha
185 182 IMPLEMENTATIONS += opl
186 183 IMPLEMENTATIONS += lw2plus
187 184
188 185 #
189 186 # machine specific optimization, override default in Makefile.master
190 187 #
191 188 CC_XARCH = -m64 -xarch=sparcvis
192 189 AS_XARCH = -xarch=v9a
193 190 COPTIMIZE = -xO3
194 191 CCMODE = -Xa
195 192
196 193 CFLAGS = -xchip=ultra $(CCABS32) $(CCREGSYM)
197 194 CFLAGS += $(CC_XARCH)
198 195 CFLAGS += $(COPTIMIZE)
199 196 CFLAGS += $(EXTRA_CFLAGS)
200 197 CFLAGS += $(XAOPT)
201 198 CFLAGS += $(INLINES) -D_ASM_INLINES
202 199 CFLAGS += $(CCMODE)
203 200 CFLAGS += $(SPACEFLAG)
204 201 CFLAGS += $(CERRWARN)
205 202 CFLAGS += $(CTF_FLAGS_$(CLASS))
206 203 CFLAGS += $(CSTD)
207 204 CFLAGS += $(CCUNBOUND)
208 205 CFLAGS += $(CCNOAUTOINLINE)
209 206 CFLAGS += $(CCSTATICSYM)
210 207 CFLAGS += $(CC32BITCALLERS)
211 208 CFLAGS += $(IROPTFLAG)
212 209 CFLAGS += $(CGLOBALSTATIC)
213 210 CFLAGS += -xregs=no%float
214 211 CFLAGS += -xstrconst
215 212 CFLAGS += $(CSOURCEDEBUGFLAGS)
216 213 CFLAGS += $(CUSERFLAGS)
217 214
218 215 ASFLAGS += $(AS_XARCH)
219 216
220 217 AS_INC_PATH += -I$(DSF_DIR)/$(OBJS_DIR)
221 218
222 219 LINT_KMODS += $(GENUNIX_KMODS)
223 220
224 221 LINT_DEFS = -m64
225 222
226 223 #
227 224 # The following must be defined for all implementations:
228 225 #
229 226 # MAPFILE: ld mapfile for the build of kernel/unix.
230 227 # MODSTUBS: Module stubs source file.
231 228 # GENCONST_SRC: genconst.c
232 229 # OFFSETS: offsets.in
233 230 # PLATFORM_OFFSETS: Platform specific mach_offsets.in
234 231 # FDOFFSETS: fd_offsets.in
235 232 #
236 233 MAPFILE = $(UTSBASE)/sun4/conf/Mapfile
237 234 MODSTUBS = $(UTSBASE)/sparc/ml/modstubs.s
238 235 GENCONST_SRC = $(UTSBASE)/sun4/ml/genconst.c
239 236 OFFSETS = $(UTSBASE)/sun4/ml/offsets.in
240 237 PLATFORM_OFFSETS = $(UTSBASE)/sun4u/ml/mach_offsets.in
241 238 FDOFFSETS = $(UTSBASE)/sun/io/fd_offsets.in
242 239
243 240 #
244 241 # Define the actual specific platforms
245 242 #
246 243
247 244 MACHINE_DEFS = -D$(PLATFORM) -D_MACHDEP -DSFMMU
248 245
249 246 #
250 247 # Software workarounds for hardware "features"
251 248 #
252 249
253 250 include $(UTSBASE)/$(PLATFORM)/Makefile.workarounds
254 251
255 252 #
256 253 # Debugging level
257 254 #
258 255 # Special knowledge of which special debugging options effect which
259 256 # file is used to optimize the build if these flags are changed.
260 257 #
261 258 # XXX: The above could possibly be done for more flags and files, but
262 259 # is left as an experiment to the interested reader. Be forewarned,
263 260 # that excessive use could lead to maintenance difficulties.
264 261 #
265 262 # Note: kslice can be enabled for the sun4u, but is disabled by default
266 263 # in all cases.
267 264 #
268 265
269 266 DEBUG_DEFS_OBJ64 =
270 267 DEBUG_DEFS_DBG64 = -DDEBUG
271 268 DEBUG_DEFS = $(DEBUG_DEFS_$(BUILD_TYPE))
272 269
273 270 DEBUG_COND_OBJ64 = $(POUND_SIGN)
274 271 DEBUG_COND_DBG64 =
275 272 IF_DEBUG_OBJ = $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
276 273
277 274 $(IF_DEBUG_OBJ)trap.o := DEBUG_DEFS += -DTRAPDEBUG
278 275 $(IF_DEBUG_OBJ)mach_trap.o := DEBUG_DEFS += -DTRAPDEBUG
279 276 $(IF_DEBUG_OBJ)syscall_trap.o := DEBUG_DEFS += -DSYSCALLTRACE
280 277 $(IF_DEBUG_OBJ)clock.o := DEBUG_DEFS += -DKSLICE=0
281 278
282 279 IF_TRAPTRACE_OBJ = $(IF_DEBUG_OBJ)
283 280 # comment this out for a non-debug kernel with TRAPTRACE
284 281 #IF_TRAPTRACE_OBJ = $(OBJS_DIR)/
285 282
286 283 $(IF_TRAPTRACE_OBJ)mach_locore.o := DEBUG_DEFS += -DTRAPTRACE
287 284 $(IF_TRAPTRACE_OBJ)mlsetup.o := DEBUG_DEFS += -DTRAPTRACE
288 285 $(IF_TRAPTRACE_OBJ)syscall_trap.o := DEBUG_DEFS += -DTRAPTRACE
289 286 $(IF_TRAPTRACE_OBJ)startup.o := DEBUG_DEFS += -DTRAPTRACE
290 287 $(IF_TRAPTRACE_OBJ)mach_startup.o := DEBUG_DEFS += -DTRAPTRACE
291 288 $(IF_TRAPTRACE_OBJ)mp_startup.o := DEBUG_DEFS += -DTRAPTRACE
292 289 $(IF_TRAPTRACE_OBJ)cpu_states.o := DEBUG_DEFS += -DTRAPTRACE
293 290 $(IF_TRAPTRACE_OBJ)mach_cpu_states.o := DEBUG_DEFS += -DTRAPTRACE
294 291 $(IF_TRAPTRACE_OBJ)interrupt.o := DEBUG_DEFS += -DTRAPTRACE
295 292 $(IF_TRAPTRACE_OBJ)mach_interrupt.o := DEBUG_DEFS += -DTRAPTRACE
296 293 $(IF_TRAPTRACE_OBJ)sfmmu_asm.o := DEBUG_DEFS += -DTRAPTRACE
297 294 $(IF_TRAPTRACE_OBJ)trap_table.o := DEBUG_DEFS += -DTRAPTRACE
298 295 $(IF_TRAPTRACE_OBJ)xc.o := DEBUG_DEFS += -DTRAPTRACE
299 296 $(IF_TRAPTRACE_OBJ)mach_xc.o := DEBUG_DEFS += -DTRAPTRACE
300 297 $(IF_TRAPTRACE_OBJ)wbuf.o := DEBUG_DEFS += -DTRAPTRACE
301 298 $(IF_TRAPTRACE_OBJ)trap.o := DEBUG_DEFS += -DTRAPTRACE
302 299 $(IF_TRAPTRACE_OBJ)mach_trap.o := DEBUG_DEFS += -DTRAPTRACE
303 300 $(IF_TRAPTRACE_OBJ)x_call.o := DEBUG_DEFS += -DTRAPTRACE
304 301 $(IF_TRAPTRACE_OBJ)spitfire_asm.o := DEBUG_DEFS += -DTRAPTRACE
305 302 $(IF_TRAPTRACE_OBJ)us3_common_asm.o := DEBUG_DEFS += -DTRAPTRACE
306 303 $(IF_TRAPTRACE_OBJ)us3_cheetah_asm.o := DEBUG_DEFS += -DTRAPTRACE
307 304 $(IF_TRAPTRACE_OBJ)us3_cheetahplus_asm.o := DEBUG_DEFS += -DTRAPTRACE
308 305 $(IF_TRAPTRACE_OBJ)us3_jalapeno_asm.o := DEBUG_DEFS += -DTRAPTRACE
309 306 $(IF_TRAPTRACE_OBJ)opl_olympus_asm.o := DEBUG_DEFS += -DTRAPTRACE
310 307
311 308 # Comment these out if you don't want dispatcher lock statistics.
312 309
313 310 #$(IF_DEBUG_OBJ)lock_prim.o := DEBUG_DEFS += -DDISP_LOCK_STATS
314 311 #$(IF_DEBUG_OBJ)disp.o := DEBUG_DEFS += -DDISP_LOCK_STATS
315 312
316 313 # Comment these out if you don't want dispatcher debugging
317 314
318 315 #$(IF_DEBUG_OBJ)lock_prim.o := DEBUG_DEFS += -DDISP_DEBUG
319 316
320 317 #
321 318 # Collect the preprocessor definitions to be associated with *all*
322 319 # files.
323 320 #
324 321 ALL_DEFS = $(MACHINE_DEFS) $(WORKAROUND_DEFS) $(DEBUG_DEFS) \
325 322 $(OPTION_DEFS)
326 323 GENCONST_DEFS = $(MACHINE_DEFS) $(OPTION_DEFS)
327 324
328 325 #
329 326 # ----- TRANSITIONAL SECTION --------------------------------------------------
330 327 #
331 328
332 329 #
333 330 # Not everything which *should* be a module is a module yet. The
334 331 # following is a list of such objects which are currently part of
335 332 # the base kernel but should soon become kmods.
336 333 #
337 334 MACH_NOT_YET_KMODS = $(AUTOCONF_OBJS)
338 335
339 336 #
340 337 # ----- END OF TRANSITIONAL SECTION -------------------------------------------
341 338 #
342 339
343 340 #
344 341 # The kernels modules which are "implementation architecture"
345 342 # specific for this machine are enumerated below. Note that most
346 343 # of these modules must exist (in one form or another) for each
347 344 # architecture.
348 345 #
349 346 # Common Drivers (usually pseudo drivers) (/kernel/drv):
350 347 #
351 348
352 349 #
353 350 # Machine Specific Driver Modules (/kernel/drv):
354 351 #
355 352 # XXX: How many of these are really machine specific?
356 353 #
357 354 DRV_KMODS += bbc_beep
358 355 DRV_KMODS += cpc
359 356 DRV_KMODS += fd
360 357 DRV_KMODS += rootnex sbusmem upa64s zs zsh
361 358 DRV_KMODS += sbus
362 359 DRV_KMODS += pcisch pcipsy simba
363 360 DRV_KMODS += px
364 361 DRV_KMODS += ebus
365 362 DRV_KMODS += su
366 363 DRV_KMODS += tod
367 364 DRV_KMODS += power
368 365 DRV_KMODS += epic
369 366 DRV_KMODS += grbeep
370 367 DRV_KMODS += pcf8584 max1617 seeprom tda8444 pca9556
371 368 DRV_KMODS += ics951601 adm1031
372 369 DRV_KMODS += lm75 ltc1427 pcf8591 pcf8574 ssc050 ssc100
373 370 DRV_KMODS += pic16f819
374 371 DRV_KMODS += pic16f747
375 372 DRV_KMODS += adm1026
376 373 DRV_KMODS += us
377 374 DRV_KMODS += ppm schppm jbusppm
378 375 DRV_KMODS += mc-us3
379 376 DRV_KMODS += mc-us3i
380 377 DRV_KMODS += smbus
381 378 DRV_KMODS += db21554
382 379 DRV_KMODS += gpio_87317
383 380 DRV_KMODS += isadma
384 381 DRV_KMODS += sbbc
385 382 DRV_KMODS += pmubus
386 383 DRV_KMODS += pmugpio
387 384 DRV_KMODS += pmc
388 385 DRV_KMODS += trapstat
389 386 DRV_KMODS += rmc_comm
390 387 DRV_KMODS += rmcadm
391 388 DRV_KMODS += rmclomv
392 389 DRV_KMODS += sf
393 390 DRV_KMODS += nxge
394 391 DRV_KMODS += i2bsc
395 392 DRV_KMODS += mem_cache
396 393
397 394 #
398 395 # Exec Class Modules (/kernel/exec):
399 396 #
400 397 EXEC_KMODS +=
401 398
402 399 #
403 400 # Scheduling Class Modules (/kernel/sched):
404 401 #
405 402 SCHED_KMODS +=
406 403
407 404 #
408 405 # File System Modules (/kernel/fs):
409 406 #
410 407 FS_KMODS +=
411 408
412 409 #
413 410 # 'System' Modules (/kernel/sys):
414 411 #
415 412 SYS_KMODS +=
416 413
417 414 #
418 415 # 'User' Modules (/kernel/misc):
419 416 #
420 417 MISC_KMODS += bignum
421 418 MISC_KMODS += obpsym bootdev vis cpr platmod md5 sha1 i2c_svc
422 419 MISC_KMODS += sbd
423 420
424 421 MISC_KMODS += opl_cfg
425 422 MISC_KMODS += gptwo_cpu gptwocfg
426 423 MISC_KMODS += pcie
427 424
428 425 #
429 426 # Brand modules
430 427 #
431 428 BRAND_KMODS += sn1_brand s10_brand
432 429
433 430 #
434 431 # Software Cryptographic Providers (/kernel/crypto):
435 432 #
436 433 CRYPTO_KMODS += aes
437 434 CRYPTO_KMODS += arcfour
438 435 CRYPTO_KMODS += des
439 436
440 437 #
441 438 # generic-unix module (/kernel/genunix):
442 439 #
443 440 GENUNIX_KMODS += genunix
444 441
445 442 # 'User' "Modules" excluded from the Full Kernel lint target:
446 443 #
447 444
448 445 #
449 446 # Modules eXcluded from the product:
450 447 #
451 448 XMODS +=
452 449
453 450 #
454 451 # cpu modules
455 452 #
456 453 CPU_KMODS += cheetah cheetahplus jalapeno serrano spitfire hummingbird
457 454
458 455 #
459 456 # sun4u 'TOD' Modules (/platform/.../kernel/tod):
460 457 #
461 458 TOD_KMODS += todds1287 todds1337 todmostek
462 459 TOD_KMODS += todm5819 todblade todbq4802 todsg todopl
463 460 TOD_KMODS += todm5819p_rmc
464 461
465 462 #
466 463 # Performance Counter BackEnd Modules (/usr/kernel/pcbe):
467 464 #
468 465 PCBE_KMODS += us234_pcbe
469 466 PCBE_KMODS += opl_pcbe
↓ open down ↓ |
275 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX