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 2016 Joyent, Inc.
25 # Copyright 2016 Garrett D'Amore <garrett@damore.org>
26 # Copyright 2017 Nexenta Systems, Inc.
27 #
28
29 #
30 # This makefile contains the common definitions for all intel
31 # implementation architecture independent modules.
32 #
33
34 #
35 # Machine type (implementation architecture):
36 #
37 PLATFORM = i86pc
38
39 #
40 # Everybody needs to know how to build modstubs.o and to locate unix.o.
41 # Note that unix.o must currently be selected from among the possible
42 # "implementation architectures". Note further, that unix.o is only
43 # used as an optional error check for undefines so (theoretically)
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 # The kernels modules which are "implementation architecture"
179 # specific for this machine are enumerated below. Note that most
180 # of these modules must exist (in one form or another) for each
181 # architecture.
182 #
183 # Common Drivers (usually pseudo drivers) (/kernel/drv)
184 # DRV_KMODS are built both 32-bit and 64-bit
185 # DRV_KMODS_32 are built only 32-bit
186 # DRV_KMODS_64 are built only 64-bit
187 #
188 DRV_KMODS += aac
189 DRV_KMODS += aggr
190 DRV_KMODS += ahci
191 DRV_KMODS += amd64_gart
192 DRV_KMODS += amr
193 DRV_KMODS += agpgart
194 DRV_KMODS += srn
195 DRV_KMODS += agptarget
196 DRV_KMODS += arn
197 DRV_KMODS += arp
|
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 2016 Joyent, Inc.
26 # Copyright 2016 Garrett D'Amore <garrett@damore.org>
27 # Copyright 2017 Nexenta Systems, Inc.
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
44 # used as an optional error check for undefines so (theoretically)
159 DEBUG_DEFS_OBJ64 =
160 DEBUG_DEFS_DBG64 = -DDEBUG
161 DEBUG_DEFS = $(DEBUG_DEFS_$(BUILD_TYPE))
162
163 DEBUG_COND_OBJ32 = $(POUND_SIGN)
164 DEBUG_COND_DBG32 =
165 DEBUG_COND_OBJ64 = $(POUND_SIGN)
166 DEBUG_COND_DBG64 =
167 IF_DEBUG_OBJ = $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
168
169 $(IF_DEBUG_OBJ)syscall.o := DEBUG_DEFS += -DSYSCALLTRACE
170 $(IF_DEBUG_OBJ)clock.o := DEBUG_DEFS += -DKSLICE=1
171
172 #
173 # Collect the preprocessor definitions to be associated with *all*
174 # files.
175 #
176 ALL_DEFS = $(DEBUG_DEFS) $(OPTION_DEFS)
177
178 #
179 # TCP congestion control modules (/kernel/cc)
180 #
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 += amd64_gart
198 DRV_KMODS += amr
199 DRV_KMODS += agpgart
200 DRV_KMODS += srn
201 DRV_KMODS += agptarget
202 DRV_KMODS += arn
203 DRV_KMODS += arp
|