4 # Common Development and Distribution License (the "License").
5 # You may not use this file except in compliance with the License.
6 #
7 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8 # or http://www.opensolaris.org/os/licensing.
9 # See the License for the specific language governing permissions
10 # and limitations under the License.
11 #
12 # When distributing Covered Code, include this CDDL HEADER in each
13 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14 # If applicable, add the following below this CDDL HEADER, with the
15 # fields enclosed by brackets "[]" replaced with your own identifying
16 # information: Portions Copyright [yyyy] [name of copyright owner]
17 #
18 # CDDL HEADER END
19 #
20
21 #
22 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
23 # Copyright (c) 2013 Andrew Stormont. All rights reserved.
24 # Copyright 2019 Joyent, Inc.
25 # Copyright 2016 Garrett D'Amore <garrett@damore.org>
26 # Copyright 2018 Nexenta Systems, Inc.
27 # Copyright 2019 RackTop Systems
28 #
29
30 #
31 # This makefile contains the common definitions for all intel
32 # implementation architecture independent modules.
33 #
34
35 #
36 # Machine type (implementation architecture):
37 #
38 PLATFORM = i86pc
39
40 #
41 # Everybody needs to know how to build modstubs.o and to locate unix.o.
42 # Note that unix.o must currently be selected from among the possible
43 # "implementation architectures". Note further, that unix.o is only
157 DEBUG_DEFS_OBJ64 =
158 DEBUG_DEFS_DBG64 = -DDEBUG
159 DEBUG_DEFS = $(DEBUG_DEFS_$(BUILD_TYPE))
160
161 DEBUG_COND_OBJ32 = $(POUND_SIGN)
162 DEBUG_COND_DBG32 =
163 DEBUG_COND_OBJ64 = $(POUND_SIGN)
164 DEBUG_COND_DBG64 =
165 IF_DEBUG_OBJ = $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
166
167 $(IF_DEBUG_OBJ)syscall.o := DEBUG_DEFS += -DSYSCALLTRACE
168 $(IF_DEBUG_OBJ)clock.o := DEBUG_DEFS += -DKSLICE=1
169
170 #
171 # Collect the preprocessor definitions to be associated with *all*
172 # files.
173 #
174 ALL_DEFS = $(DEBUG_DEFS) $(OPTION_DEFS)
175
176 #
177 # The kernels modules which are "implementation architecture"
178 # specific for this machine are enumerated below. Note that most
179 # of these modules must exist (in one form or another) for each
180 # architecture.
181 #
182 # Common Drivers (usually pseudo drivers) (/kernel/drv)
183 # DRV_KMODS are built both 32-bit and 64-bit
184 # DRV_KMODS_32 are built only 32-bit
185 # DRV_KMODS_64 are built only 64-bit
186 #
187 DRV_KMODS += aac
188 DRV_KMODS += aggr
189 DRV_KMODS += ahci
190 DRV_KMODS += amr
191 DRV_KMODS += srn
192 DRV_KMODS += arn
193 DRV_KMODS += arp
194 DRV_KMODS += asy
195 DRV_KMODS += ata
196 DRV_KMODS += ath
|
4 # Common Development and Distribution License (the "License").
5 # You may not use this file except in compliance with the License.
6 #
7 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8 # or http://www.opensolaris.org/os/licensing.
9 # See the License for the specific language governing permissions
10 # and limitations under the License.
11 #
12 # When distributing Covered Code, include this CDDL HEADER in each
13 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14 # If applicable, add the following below this CDDL HEADER, with the
15 # fields enclosed by brackets "[]" replaced with your own identifying
16 # information: Portions Copyright [yyyy] [name of copyright owner]
17 #
18 # CDDL HEADER END
19 #
20
21 #
22 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
23 # Copyright (c) 2013 Andrew Stormont. All rights reserved.
24 # Copyright (c) 2014 by Delphix. All rights reserved.
25 # Copyright 2019 Joyent, Inc.
26 # Copyright 2016 Garrett D'Amore <garrett@damore.org>
27 # Copyright 2018 Nexenta Systems, Inc.
28 # Copyright 2019 RackTop Systems
29 #
30
31 #
32 # This makefile contains the common definitions for all intel
33 # implementation architecture independent modules.
34 #
35
36 #
37 # Machine type (implementation architecture):
38 #
39 PLATFORM = i86pc
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
158 DEBUG_DEFS_OBJ64 =
159 DEBUG_DEFS_DBG64 = -DDEBUG
160 DEBUG_DEFS = $(DEBUG_DEFS_$(BUILD_TYPE))
161
162 DEBUG_COND_OBJ32 = $(POUND_SIGN)
163 DEBUG_COND_DBG32 =
164 DEBUG_COND_OBJ64 = $(POUND_SIGN)
165 DEBUG_COND_DBG64 =
166 IF_DEBUG_OBJ = $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
167
168 $(IF_DEBUG_OBJ)syscall.o := DEBUG_DEFS += -DSYSCALLTRACE
169 $(IF_DEBUG_OBJ)clock.o := DEBUG_DEFS += -DKSLICE=1
170
171 #
172 # Collect the preprocessor definitions to be associated with *all*
173 # files.
174 #
175 ALL_DEFS = $(DEBUG_DEFS) $(OPTION_DEFS)
176
177 #
178 # TCP congestion control modules (/kernel/cc)
179 #
180 MISC_KMODS += cc
181 CC_KMODS += cc_newreno cc_cubic cc_sunreno
182
183 #
184 # The kernels modules which are "implementation architecture"
185 # specific for this machine are enumerated below. Note that most
186 # of these modules must exist (in one form or another) for each
187 # architecture.
188 #
189 # Common Drivers (usually pseudo drivers) (/kernel/drv)
190 # DRV_KMODS are built both 32-bit and 64-bit
191 # DRV_KMODS_32 are built only 32-bit
192 # DRV_KMODS_64 are built only 64-bit
193 #
194 DRV_KMODS += aac
195 DRV_KMODS += aggr
196 DRV_KMODS += ahci
197 DRV_KMODS += amr
198 DRV_KMODS += srn
199 DRV_KMODS += arn
200 DRV_KMODS += arp
201 DRV_KMODS += asy
202 DRV_KMODS += ata
203 DRV_KMODS += ath
|