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 (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2013 Andrew Stormont. All rights reserved.
25 # Copyright (c) 2015, Joyent, Inc. All rights reserved.
26 # Copyright 2016 Gary Mills
27 # Copyright 2016 Nexenta Systems, Inc.
28 #
29
30 #
31 # This makefile contains the common definitions for all sparc
32 # implementation architecture independent modules.
33 #
34
35 #
36 # Define supported builds
37 #
38 DEF_BUILDS = $(DEF_BUILDS64)
39 ALL_BUILDS = $(ALL_BUILDS64)
40
41 #
42 # Everybody needs to know how to build modstubs.o and to locate unix.o.
43 # Note that unix.o must currently be selected from among the possible
44 # "implementation architectures". Note further, that unix.o is only
184 DEBUG_DEFS = $(DEBUG_DEFS_$(BUILD_TYPE))
185
186 DEBUG_COND_OBJ32 = $(POUND_SIGN)
187 DEBUG_COND_DBG32 =
188 DEBUG_COND_OBJ64 = $(POUND_SIGN)
189 DEBUG_COND_DBG64 =
190 IF_DEBUG_OBJ = $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
191
192 $(IF_DEBUG_OBJ)syscall.o := DEBUG_DEFS += -DSYSCALLTRACE
193 $(IF_DEBUG_OBJ)clock.o := DEBUG_DEFS += -DKSLICE=1
194
195 # Comment these out if you don't want dispatcher lock statistics.
196
197 # $(IF_DEBUG_OBJ)disp_lock.o := DEBUG_DEFS += -DDISP_LOCK_STATS
198
199 #
200 # Collect the preprocessor definitions to be associated with *all*
201 # files.
202 #
203 ALL_DEFS = $(MACHINE_DEFS) $(DEBUG_DEFS) $(OPTION_DEFS)
204 #
205 #
206 # The kernels modules which are "implementation architecture"
207 # specific for this machine are enumerated below. Note that most
208 # of these modules must exist (in one form or another) for each
209 # architecture.
210 #
211 # Common Drivers (usually pseudo drivers) (/kernel/drv):
212 #
213 DRV_KMODS += aggr arp audio bl blkdev bofi clone cn conskbd consms cpuid
214 DRV_KMODS += crypto cryptoadm devinfo dump
215 DRV_KMODS += dtrace fasttrap fbt lockstat profile sdt systrace dcpc
216 DRV_KMODS += fssnap icmp icmp6 ip ip6 ipnet ipsecah
217 DRV_KMODS += ipsecesp iptun iwscn keysock kmdb kstat ksyms llc1
218 DRV_KMODS += lofi
219 DRV_KMODS += log logindmux kssl mm nca physmem pm poll pool
220 DRV_KMODS += pseudo ptc ptm pts ptsl ramdisk random rsm rts sad
221 DRV_KMODS += simnet softmac sppp sppptun sy sysevent sysmsg
222 DRV_KMODS += spdsock
223 DRV_KMODS += tcp tcp6 timerfd tl tnf ttymux udp udp6 wc winlock zcons zfd
224 DRV_KMODS += ippctl
225 DRV_KMODS += dld
|
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 (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2013 Andrew Stormont. All rights reserved.
25 # Copyright (c) 2015, 2017 by Delphix. All rights reserved.
26 # Copyright (c) 2015, Joyent, Inc. All rights reserved.
27 # Copyright 2016 Gary Mills
28 # Copyright 2016 Nexenta Systems, Inc.
29 #
30
31 #
32 # This makefile contains the common definitions for all sparc
33 # implementation architecture independent modules.
34 #
35
36 #
37 # Define supported builds
38 #
39 DEF_BUILDS = $(DEF_BUILDS64)
40 ALL_BUILDS = $(ALL_BUILDS64)
41
42 #
43 # Everybody needs to know how to build modstubs.o and to locate unix.o.
44 # Note that unix.o must currently be selected from among the possible
45 # "implementation architectures". Note further, that unix.o is only
185 DEBUG_DEFS = $(DEBUG_DEFS_$(BUILD_TYPE))
186
187 DEBUG_COND_OBJ32 = $(POUND_SIGN)
188 DEBUG_COND_DBG32 =
189 DEBUG_COND_OBJ64 = $(POUND_SIGN)
190 DEBUG_COND_DBG64 =
191 IF_DEBUG_OBJ = $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
192
193 $(IF_DEBUG_OBJ)syscall.o := DEBUG_DEFS += -DSYSCALLTRACE
194 $(IF_DEBUG_OBJ)clock.o := DEBUG_DEFS += -DKSLICE=1
195
196 # Comment these out if you don't want dispatcher lock statistics.
197
198 # $(IF_DEBUG_OBJ)disp_lock.o := DEBUG_DEFS += -DDISP_LOCK_STATS
199
200 #
201 # Collect the preprocessor definitions to be associated with *all*
202 # files.
203 #
204 ALL_DEFS = $(MACHINE_DEFS) $(DEBUG_DEFS) $(OPTION_DEFS)
205
206 #
207 # TCP congestion control modules (/kernel/cc)
208 #
209 CC_KMODS += cc_newreno cc_cubic cc_sunreno
210
211 #
212 #
213 # The kernels modules which are "implementation architecture"
214 # specific for this machine are enumerated below. Note that most
215 # of these modules must exist (in one form or another) for each
216 # architecture.
217 #
218 # Common Drivers (usually pseudo drivers) (/kernel/drv):
219 #
220 DRV_KMODS += aggr arp audio bl blkdev bofi clone cn conskbd consms cpuid
221 DRV_KMODS += crypto cryptoadm devinfo dump
222 DRV_KMODS += dtrace fasttrap fbt lockstat profile sdt systrace dcpc
223 DRV_KMODS += fssnap icmp icmp6 ip ip6 ipnet ipsecah
224 DRV_KMODS += ipsecesp iptun iwscn keysock kmdb kstat ksyms llc1
225 DRV_KMODS += lofi
226 DRV_KMODS += log logindmux kssl mm nca physmem pm poll pool
227 DRV_KMODS += pseudo ptc ptm pts ptsl ramdisk random rsm rts sad
228 DRV_KMODS += simnet softmac sppp sppptun sy sysevent sysmsg
229 DRV_KMODS += spdsock
230 DRV_KMODS += tcp tcp6 timerfd tl tnf ttymux udp udp6 wc winlock zcons zfd
231 DRV_KMODS += ippctl
232 DRV_KMODS += dld
|