5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright 2010 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 #
26 # This makefile contains the common definitions for the sun4v unix
27 # and all sun4v implementation architecture dependent modules.
28 #
29
30 #
31 # Machine type (implementation architecture):
32 #
33 PLATFORM = sun4v
34 LINKED_PLATFORMS += SUNW,Sun-Fire-T1000
35 LINKED_PLATFORMS += SUNW,SPARC-Enterprise-T5120
36 LINKED_PLATFORMS += SUNW,SPARC-Enterprise-T5220
37 LINKED_PLATFORMS += SUNW,T5140
38 LINKED_PLATFORMS += SUNW,T5240
39 LINKED_PLATFORMS += SUNW,T5440
40 LINKED_PLATFORMS += SUNW,SPARC-Enterprise-T1000
41 LINKED_PLATFORMS += SUNW,Sun-Blade-T6300
42 LINKED_PLATFORMS += SUNW,Sun-Blade-T6320
43 LINKED_PLATFORMS += SUNW,Netra-CP3260
44 LINKED_PLATFORMS += SUNW,Netra-T5220
233 include $(UTSBASE)/$(PLATFORM)/Makefile.workarounds
234
235 #
236 # Debugging level
237 #
238 # Special knowledge of which special debugging options effect which
239 # file is used to optimize the build if these flags are changed.
240 #
241 # XXX: The above could possibly be done for more flags and files, but
242 # is left as an experiment to the interested reader. Be forewarned,
243 # that excessive use could lead to maintenance difficulties.
244 #
245 # Note: kslice can be enabled for the sun4v, but is disabled by default
246 # in all cases.
247 #
248
249 DEBUG_DEFS_OBJ64 =
250 DEBUG_DEFS_DBG64 = -DDEBUG
251 DEBUG_DEFS = $(DEBUG_DEFS_$(BUILD_TYPE))
252
253 DEBUG_COND_OBJ64 :sh = echo \\043
254 DEBUG_COND_DBG64 =
255 IF_DEBUG_OBJ = $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
256
257 $(IF_DEBUG_OBJ)trap.o := DEBUG_DEFS += -DTRAPDEBUG
258 $(IF_DEBUG_OBJ)mach_trap.o := DEBUG_DEFS += -DTRAPDEBUG
259 $(IF_DEBUG_OBJ)syscall_trap.o := DEBUG_DEFS += -DSYSCALLTRACE
260 $(IF_DEBUG_OBJ)clock.o := DEBUG_DEFS += -DKSLICE=0
261
262 IF_TRAPTRACE_OBJ = $(IF_DEBUG_OBJ)
263 # comment this out for a non-debug kernel with TRAPTRACE
264 #IF_TRAPTRACE_OBJ = $(OBJS_DIR)/
265
266 $(IF_TRAPTRACE_OBJ)mach_locore.o := DEBUG_DEFS += -DTRAPTRACE
267 $(IF_TRAPTRACE_OBJ)mlsetup.o := DEBUG_DEFS += -DTRAPTRACE
268 $(IF_TRAPTRACE_OBJ)syscall_trap.o := DEBUG_DEFS += -DTRAPTRACE
269 $(IF_TRAPTRACE_OBJ)startup.o := DEBUG_DEFS += -DTRAPTRACE
270 $(IF_TRAPTRACE_OBJ)mach_startup.o := DEBUG_DEFS += -DTRAPTRACE
271 $(IF_TRAPTRACE_OBJ)mp_startup.o := DEBUG_DEFS += -DTRAPTRACE
272 $(IF_TRAPTRACE_OBJ)cpu_states.o := DEBUG_DEFS += -DTRAPTRACE
273 $(IF_TRAPTRACE_OBJ)mach_cpu_states.o := DEBUG_DEFS += -DTRAPTRACE
|
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright 2010 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 # Copyright (c) 2013 Andrew Stormont. All rights reserved.
26 #
27 # This makefile contains the common definitions for the sun4v unix
28 # and all sun4v implementation architecture dependent modules.
29 #
30
31 #
32 # Machine type (implementation architecture):
33 #
34 PLATFORM = sun4v
35 LINKED_PLATFORMS += SUNW,Sun-Fire-T1000
36 LINKED_PLATFORMS += SUNW,SPARC-Enterprise-T5120
37 LINKED_PLATFORMS += SUNW,SPARC-Enterprise-T5220
38 LINKED_PLATFORMS += SUNW,T5140
39 LINKED_PLATFORMS += SUNW,T5240
40 LINKED_PLATFORMS += SUNW,T5440
41 LINKED_PLATFORMS += SUNW,SPARC-Enterprise-T1000
42 LINKED_PLATFORMS += SUNW,Sun-Blade-T6300
43 LINKED_PLATFORMS += SUNW,Sun-Blade-T6320
44 LINKED_PLATFORMS += SUNW,Netra-CP3260
45 LINKED_PLATFORMS += SUNW,Netra-T5220
234 include $(UTSBASE)/$(PLATFORM)/Makefile.workarounds
235
236 #
237 # Debugging level
238 #
239 # Special knowledge of which special debugging options effect which
240 # file is used to optimize the build if these flags are changed.
241 #
242 # XXX: The above could possibly be done for more flags and files, but
243 # is left as an experiment to the interested reader. Be forewarned,
244 # that excessive use could lead to maintenance difficulties.
245 #
246 # Note: kslice can be enabled for the sun4v, but is disabled by default
247 # in all cases.
248 #
249
250 DEBUG_DEFS_OBJ64 =
251 DEBUG_DEFS_DBG64 = -DDEBUG
252 DEBUG_DEFS = $(DEBUG_DEFS_$(BUILD_TYPE))
253
254 DEBUG_COND_OBJ64 = $(POUND_SIGN)
255 DEBUG_COND_DBG64 =
256 IF_DEBUG_OBJ = $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
257
258 $(IF_DEBUG_OBJ)trap.o := DEBUG_DEFS += -DTRAPDEBUG
259 $(IF_DEBUG_OBJ)mach_trap.o := DEBUG_DEFS += -DTRAPDEBUG
260 $(IF_DEBUG_OBJ)syscall_trap.o := DEBUG_DEFS += -DSYSCALLTRACE
261 $(IF_DEBUG_OBJ)clock.o := DEBUG_DEFS += -DKSLICE=0
262
263 IF_TRAPTRACE_OBJ = $(IF_DEBUG_OBJ)
264 # comment this out for a non-debug kernel with TRAPTRACE
265 #IF_TRAPTRACE_OBJ = $(OBJS_DIR)/
266
267 $(IF_TRAPTRACE_OBJ)mach_locore.o := DEBUG_DEFS += -DTRAPTRACE
268 $(IF_TRAPTRACE_OBJ)mlsetup.o := DEBUG_DEFS += -DTRAPTRACE
269 $(IF_TRAPTRACE_OBJ)syscall_trap.o := DEBUG_DEFS += -DTRAPTRACE
270 $(IF_TRAPTRACE_OBJ)startup.o := DEBUG_DEFS += -DTRAPTRACE
271 $(IF_TRAPTRACE_OBJ)mach_startup.o := DEBUG_DEFS += -DTRAPTRACE
272 $(IF_TRAPTRACE_OBJ)mp_startup.o := DEBUG_DEFS += -DTRAPTRACE
273 $(IF_TRAPTRACE_OBJ)cpu_states.o := DEBUG_DEFS += -DTRAPTRACE
274 $(IF_TRAPTRACE_OBJ)mach_cpu_states.o := DEBUG_DEFS += -DTRAPTRACE
|