xref: /titanic_54/usr/src/uts/sparc/Makefile.sparc (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate#
2*7c478bd9Sstevel@tonic-gate# CDDL HEADER START
3*7c478bd9Sstevel@tonic-gate#
4*7c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5*7c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only
6*7c478bd9Sstevel@tonic-gate# (the "License").  You may not use this file except in compliance
7*7c478bd9Sstevel@tonic-gate# with the License.
8*7c478bd9Sstevel@tonic-gate#
9*7c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*7c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
11*7c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
12*7c478bd9Sstevel@tonic-gate# and limitations under the License.
13*7c478bd9Sstevel@tonic-gate#
14*7c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
15*7c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*7c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
17*7c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
18*7c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
19*7c478bd9Sstevel@tonic-gate#
20*7c478bd9Sstevel@tonic-gate# CDDL HEADER END
21*7c478bd9Sstevel@tonic-gate#
22*7c478bd9Sstevel@tonic-gate#
23*7c478bd9Sstevel@tonic-gate# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24*7c478bd9Sstevel@tonic-gate# Use is subject to license terms.
25*7c478bd9Sstevel@tonic-gate#
26*7c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
27*7c478bd9Sstevel@tonic-gate#
28*7c478bd9Sstevel@tonic-gate#	This makefile contains the common definitions for all sparc
29*7c478bd9Sstevel@tonic-gate#	implementation architecture independent modules.
30*7c478bd9Sstevel@tonic-gate#
31*7c478bd9Sstevel@tonic-gate
32*7c478bd9Sstevel@tonic-gate
33*7c478bd9Sstevel@tonic-gate#
34*7c478bd9Sstevel@tonic-gate#	Define supported builds
35*7c478bd9Sstevel@tonic-gate#
36*7c478bd9Sstevel@tonic-gateDEF_BUILDS	= $(DEF_BUILDS64)
37*7c478bd9Sstevel@tonic-gateALL_BUILDS	= $(ALL_BUILDS64)
38*7c478bd9Sstevel@tonic-gate
39*7c478bd9Sstevel@tonic-gate#
40*7c478bd9Sstevel@tonic-gate#	Everybody needs to know how to build modstubs.o and to locate unix.o.
41*7c478bd9Sstevel@tonic-gate#	Note that unix.o must currently be selected from among the possible
42*7c478bd9Sstevel@tonic-gate#	"implementation architectures". Note further, that unix.o is only
43*7c478bd9Sstevel@tonic-gate#	used as an optional error check for undefines so (theoretically)
44*7c478bd9Sstevel@tonic-gate#	any "implementation architectures" could be used. We choose sun4u
45*7c478bd9Sstevel@tonic-gate#	because it is the reference port.
46*7c478bd9Sstevel@tonic-gate#
47*7c478bd9Sstevel@tonic-gateUNIX_DIR	 = $(UTSBASE)/sun4u/unix
48*7c478bd9Sstevel@tonic-gateGENLIB_DIR	 = $(UTSBASE)/sun4u/genunix
49*7c478bd9Sstevel@tonic-gateIPDRV_DIR	 = $(UTSBASE)/sparc/ip
50*7c478bd9Sstevel@tonic-gateMODSTUBS_DIR	 = $(UNIX_DIR)
51*7c478bd9Sstevel@tonic-gateDSF_DIR		 = $(UNIX_DIR)
52*7c478bd9Sstevel@tonic-gateLINTS_DIR	 = $(OBJS_DIR)
53*7c478bd9Sstevel@tonic-gateLINT_LIB_DIR	 = $(UTSBASE)/sparc/lint-libs/$(OBJS_DIR)
54*7c478bd9Sstevel@tonic-gate
55*7c478bd9Sstevel@tonic-gateUNIX_O		 = $(UNIX_DIR)/$(OBJS_DIR)/unix.o
56*7c478bd9Sstevel@tonic-gateMODSTUBS_O	 = $(MODSTUBS_DIR)/$(OBJS_DIR)/modstubs.o
57*7c478bd9Sstevel@tonic-gateGENLIB		 = $(UTSBASE)/sun4u/lint-libs/$(OBJS_DIR)/libgenunix.so
58*7c478bd9Sstevel@tonic-gate
59*7c478bd9Sstevel@tonic-gateLINT_LIB_32	 = $(UTSBASE)/sun4u/lint-libs/$(OBJS_DIR)/llib-lunix.ln
60*7c478bd9Sstevel@tonic-gateGEN_LINT_LIB_32	 = $(UTSBASE)/sun4u/lint-libs/$(OBJS_DIR)/llib-lgenunix.ln
61*7c478bd9Sstevel@tonic-gate
62*7c478bd9Sstevel@tonic-gateLINT_LIB_64	 = $(UTSBASE)/sun4u/lint-libs/$(OBJS_DIR)/llib-lunix.ln
63*7c478bd9Sstevel@tonic-gateGEN_LINT_LIB_64	 = $(UTSBASE)/sun4u/lint-libs/$(OBJS_DIR)/llib-lgenunix.ln
64*7c478bd9Sstevel@tonic-gate
65*7c478bd9Sstevel@tonic-gateLINT_LIB	 = $(LINT_LIB_$(CLASS))
66*7c478bd9Sstevel@tonic-gateGEN_LINT_LIB	 = $(GEN_LINT_LIB_$(CLASS))
67*7c478bd9Sstevel@tonic-gate
68*7c478bd9Sstevel@tonic-gateLINT32_DIRS	 = $(LINT32_BUILDS:%=$(UTSBASE)/sparc/lint-libs/%)
69*7c478bd9Sstevel@tonic-gateLINT32_FILES	 = $(LINT32_DIRS:%=%/llib-l$(MODULE).ln)
70*7c478bd9Sstevel@tonic-gate
71*7c478bd9Sstevel@tonic-gateLINT64_DIRS	 = $(LINT64_BUILDS:%=$(UTSBASE)/sparc/lint-libs/%)
72*7c478bd9Sstevel@tonic-gateLINT64_FILES	 = $(LINT64_DIRS:%=%/llib-l$(MODULE).ln)
73*7c478bd9Sstevel@tonic-gate
74*7c478bd9Sstevel@tonic-gate#
75*7c478bd9Sstevel@tonic-gate#	Include the makefiles which define build rule templates, the
76*7c478bd9Sstevel@tonic-gate#	collection of files per module, and a few specific flags. Note
77*7c478bd9Sstevel@tonic-gate#	that order is significant, just as with an include path. The
78*7c478bd9Sstevel@tonic-gate#	first build rule template which matches the files name will be
79*7c478bd9Sstevel@tonic-gate#	used. By including these in order from most machine dependent
80*7c478bd9Sstevel@tonic-gate#	to most machine independent, we allow a machine dependent file
81*7c478bd9Sstevel@tonic-gate#	to be used in preference over a machine independent version
82*7c478bd9Sstevel@tonic-gate#	(Such as a machine specific optimization, which preserves the
83*7c478bd9Sstevel@tonic-gate#	interfaces.)
84*7c478bd9Sstevel@tonic-gate#
85*7c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/sparc/Makefile.files
86*7c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/sparc/v9/Makefile.files
87*7c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/sun/Makefile.files
88*7c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/common/Makefile.files
89*7c478bd9Sstevel@tonic-gate
90*7c478bd9Sstevel@tonic-gate#
91*7c478bd9Sstevel@tonic-gate#	Include machine independent rules. Note that this does not imply
92*7c478bd9Sstevel@tonic-gate#	that the resulting module from rules in Makefile.uts is	machine
93*7c478bd9Sstevel@tonic-gate#	independent. Only that the build rules are machine independent.
94*7c478bd9Sstevel@tonic-gate#
95*7c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/Makefile.uts
96*7c478bd9Sstevel@tonic-gate
97*7c478bd9Sstevel@tonic-gate#
98*7c478bd9Sstevel@tonic-gate#	machine specific optimization, override default in Makefile.master
99*7c478bd9Sstevel@tonic-gate#
100*7c478bd9Sstevel@tonic-gateXARCH_32	= -xarch=v8
101*7c478bd9Sstevel@tonic-gateXARCH_64	= -xarch=v9
102*7c478bd9Sstevel@tonic-gateXARCH		= $(XARCH_$(CLASS))
103*7c478bd9Sstevel@tonic-gate
104*7c478bd9Sstevel@tonic-gateCOPTIMIZE_32	= -xO3
105*7c478bd9Sstevel@tonic-gateCOPTIMIZE_64	= -xO3
106*7c478bd9Sstevel@tonic-gateCOPTIMIZE	= $(COPTIMIZE_$(CLASS))
107*7c478bd9Sstevel@tonic-gate
108*7c478bd9Sstevel@tonic-gateCCMODE		= -Xa
109*7c478bd9Sstevel@tonic-gate
110*7c478bd9Sstevel@tonic-gateCFLAGS_32	= -xcg92
111*7c478bd9Sstevel@tonic-gateCFLAGS_64	= -xchip=ultra $(CCABS32) $(CCREGSYM)
112*7c478bd9Sstevel@tonic-gateCFLAGS		= $(CFLAGS_$(CLASS))
113*7c478bd9Sstevel@tonic-gate
114*7c478bd9Sstevel@tonic-gateCFLAGS		+= $(XARCH)
115*7c478bd9Sstevel@tonic-gateCFLAGS		+= $(COPTIMIZE)
116*7c478bd9Sstevel@tonic-gateCFLAGS		+= $(EXTRA_CFLAGS)
117*7c478bd9Sstevel@tonic-gateCFLAGS		+= $(XAOPT)
118*7c478bd9Sstevel@tonic-gateCFLAGS		+= $(INLINES)
119*7c478bd9Sstevel@tonic-gateCFLAGS		+= $(CCMODE)
120*7c478bd9Sstevel@tonic-gateCFLAGS		+= $(SPACEFLAG)
121*7c478bd9Sstevel@tonic-gateCFLAGS		+= $(CERRWARN)
122*7c478bd9Sstevel@tonic-gateCFLAGS		+= $(CTF_FLAGS)
123*7c478bd9Sstevel@tonic-gateCFLAGS		+= $(C99MODE)
124*7c478bd9Sstevel@tonic-gateCFLAGS		+= $(CCUNBOUND)
125*7c478bd9Sstevel@tonic-gateCFLAGS		+= -xregs=no%float
126*7c478bd9Sstevel@tonic-gate
127*7c478bd9Sstevel@tonic-gateASFLAGS		+= $(XARCH)
128*7c478bd9Sstevel@tonic-gate
129*7c478bd9Sstevel@tonic-gateLINT_DEFS_32	=
130*7c478bd9Sstevel@tonic-gateLINT_DEFS_64	= -Xarch=v9
131*7c478bd9Sstevel@tonic-gateLINT_DEFS	+= $(LINT_DEFS_$(CLASS))
132*7c478bd9Sstevel@tonic-gate
133*7c478bd9Sstevel@tonic-gate#
134*7c478bd9Sstevel@tonic-gate#	The following must be defined for all implementations:
135*7c478bd9Sstevel@tonic-gate#
136*7c478bd9Sstevel@tonic-gate#	MODSTUBS:	Module stubs source file.
137*7c478bd9Sstevel@tonic-gate#
138*7c478bd9Sstevel@tonic-gateMODSTUBS	 = $(UTSBASE)/sparc/ml/modstubs.s
139*7c478bd9Sstevel@tonic-gate
140*7c478bd9Sstevel@tonic-gate#
141*7c478bd9Sstevel@tonic-gate#	Define the actual specific platforms - obviously none.
142*7c478bd9Sstevel@tonic-gate#
143*7c478bd9Sstevel@tonic-gateMACHINE_DEFS	 =
144*7c478bd9Sstevel@tonic-gate
145*7c478bd9Sstevel@tonic-gate#
146*7c478bd9Sstevel@tonic-gate#	Debugging level
147*7c478bd9Sstevel@tonic-gate#
148*7c478bd9Sstevel@tonic-gate#	Special knowledge of which special debugging options effect which
149*7c478bd9Sstevel@tonic-gate#	file is used to optimize the build if these flags are changed.
150*7c478bd9Sstevel@tonic-gate#
151*7c478bd9Sstevel@tonic-gate#	XXX: The above could possibly be done for more flags and files, but
152*7c478bd9Sstevel@tonic-gate#	     is left as an experiment to the interested reader. Be forewarned,
153*7c478bd9Sstevel@tonic-gate#	     that excessive use could lead to maintenance difficulties.
154*7c478bd9Sstevel@tonic-gate#
155*7c478bd9Sstevel@tonic-gateDEBUG_DEFS_OBJ32	=
156*7c478bd9Sstevel@tonic-gateDEBUG_DEFS_DBG32	= -DDEBUG
157*7c478bd9Sstevel@tonic-gateDEBUG_DEFS_OBJ64	=
158*7c478bd9Sstevel@tonic-gateDEBUG_DEFS_DBG64	= -DDEBUG
159*7c478bd9Sstevel@tonic-gateDEBUG_DEFS		= $(DEBUG_DEFS_$(BUILD_TYPE))
160*7c478bd9Sstevel@tonic-gate
161*7c478bd9Sstevel@tonic-gateDEBUG_COND_OBJ32	:sh = echo \\043
162*7c478bd9Sstevel@tonic-gateDEBUG_COND_DBG32	=
163*7c478bd9Sstevel@tonic-gateDEBUG_COND_OBJ64	:sh = echo \\043
164*7c478bd9Sstevel@tonic-gateDEBUG_COND_DBG64	=
165*7c478bd9Sstevel@tonic-gateIF_DEBUG_OBJ		= $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
166*7c478bd9Sstevel@tonic-gate
167*7c478bd9Sstevel@tonic-gate$(IF_DEBUG_OBJ)syscall.o	:=	DEBUG_DEFS	+= -DSYSCALLTRACE
168*7c478bd9Sstevel@tonic-gate$(IF_DEBUG_OBJ)clock.o		:=	DEBUG_DEFS	+= -DKSLICE=1
169*7c478bd9Sstevel@tonic-gate
170*7c478bd9Sstevel@tonic-gate# Comment these out if you don't want dispatcher lock statistics.
171*7c478bd9Sstevel@tonic-gate
172*7c478bd9Sstevel@tonic-gate# $(IF_DEBUG_OBJ)disp_lock.o	:= DEBUG_DEFS	+= -DDISP_LOCK_STATS
173*7c478bd9Sstevel@tonic-gate
174*7c478bd9Sstevel@tonic-gate#
175*7c478bd9Sstevel@tonic-gate# This rather strange collection of definitions ensures that lint sees
176*7c478bd9Sstevel@tonic-gate# 'struct cpu' containing a fully declared embedded 'struct machcpu'
177*7c478bd9Sstevel@tonic-gate#
178*7c478bd9Sstevel@tonic-gate# There's something deeply dissatisfying about this.
179*7c478bd9Sstevel@tonic-gate#
180*7c478bd9Sstevel@tonic-gateLINTMACHFLAGS = -D_MACHDEP -I../../sun4 -I../../$(PLATFORM) -I../../sfmmu
181*7c478bd9Sstevel@tonic-gate$(LINTS_DIR)/kcpc.ln	:=	LINTFLAGS += $(LINTMACHFLAGS)
182*7c478bd9Sstevel@tonic-gate$(LINTS_DIR)/kdi.ln	:=	LINTFLAGS += $(LINTMACHFLAGS)
183*7c478bd9Sstevel@tonic-gate$(LINTS_DIR)/msacct.ln	:=	LINTFLAGS += $(LINTMACHFLAGS)
184*7c478bd9Sstevel@tonic-gate$(LINTS_DIR)/thread.ln	:=	LINTFLAGS += $(LINTMACHFLAGS)
185*7c478bd9Sstevel@tonic-gate
186*7c478bd9Sstevel@tonic-gate#
187*7c478bd9Sstevel@tonic-gate#	Build `options'. These are mostly historical and the need for these
188*7c478bd9Sstevel@tonic-gate#	is largely removed by the module technology. However, the static
189*7c478bd9Sstevel@tonic-gate#	build will continue to require these.
190*7c478bd9Sstevel@tonic-gate#
191*7c478bd9Sstevel@tonic-gateOPTION_DEFS	 = -DC2_AUDIT
192*7c478bd9Sstevel@tonic-gate
193*7c478bd9Sstevel@tonic-gate#
194*7c478bd9Sstevel@tonic-gate#	Collect the preprocessor definitions to be associated with *all*
195*7c478bd9Sstevel@tonic-gate#	files.
196*7c478bd9Sstevel@tonic-gate#
197*7c478bd9Sstevel@tonic-gateALL_DEFS	 = $(MACHINE_DEFS) $(DEBUG_DEFS) $(OPTION_DEFS)
198*7c478bd9Sstevel@tonic-gate#
199*7c478bd9Sstevel@tonic-gate# ----- TRANSITIONAL SECTION --------------------------------------------------
200*7c478bd9Sstevel@tonic-gate#
201*7c478bd9Sstevel@tonic-gate
202*7c478bd9Sstevel@tonic-gate#
203*7c478bd9Sstevel@tonic-gate#	Not everything which *should* be a module is a module yet. The
204*7c478bd9Sstevel@tonic-gate#	following is a list of such objects which are currently part of
205*7c478bd9Sstevel@tonic-gate#	the base kernel but should soon become kmods.
206*7c478bd9Sstevel@tonic-gate#
207*7c478bd9Sstevel@tonic-gateNOT_YET_KMODS	 = $(OLDPTY_OBJS) $(PTY_OBJS) $(MOD_OBJS)
208*7c478bd9Sstevel@tonic-gate
209*7c478bd9Sstevel@tonic-gate#
210*7c478bd9Sstevel@tonic-gate# ----- END OF TRANSITIONAL SECTION -------------------------------------------
211*7c478bd9Sstevel@tonic-gate
212*7c478bd9Sstevel@tonic-gate#
213*7c478bd9Sstevel@tonic-gate#	The kernels modules which are "implementation architecture"
214*7c478bd9Sstevel@tonic-gate#	specific for this machine are enumerated below. Note that most
215*7c478bd9Sstevel@tonic-gate#	of these modules must exist (in one form or another) for each
216*7c478bd9Sstevel@tonic-gate#	architecture.
217*7c478bd9Sstevel@tonic-gate#
218*7c478bd9Sstevel@tonic-gate#	Common Drivers (usually pseudo drivers) (/kernel/drv):
219*7c478bd9Sstevel@tonic-gate#
220*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= aggr arp bl bofi clone cn conskbd consms cpuid
221*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= crypto cryptoadm devinfo dump
222*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= dtrace fasttrap fbt lockstat profile sdt systrace
223*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= fssnap glm icmp icmp6 ip ip6 ipsecah
224*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= ipsecesp isp iwscn keysock kmdb kstat ksyms llc1 llc2
225*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= lofi
226*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= log logindmux mm mpt nca pm poll pool
227*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= pseudo ptc ptm pts ptsl ramdisk random rsm rts sad se
228*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= spdsock sppp sppptun sy sysevent sysmsg
229*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= tcp tcp6 tl tnf ttymux udp udp6 vol wc winlock zcons
230*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= ippctl sctp sctp6
231*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= dld
232*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= ipf pfil
233*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= rpcib
234*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= vni
235*7c478bd9Sstevel@tonic-gate
236*7c478bd9Sstevel@tonic-gate#
237*7c478bd9Sstevel@tonic-gate#       Hardware Drivers in common space
238*7c478bd9Sstevel@tonic-gate#
239*7c478bd9Sstevel@tonic-gateDRV_KMODS       += ixgb
240*7c478bd9Sstevel@tonic-gate
241*7c478bd9Sstevel@tonic-gate#
242*7c478bd9Sstevel@tonic-gate#	Machine Specific Driver Modules (/kernel/drv):
243*7c478bd9Sstevel@tonic-gate#
244*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= audiovia823x audio810 audiocs audioens audiots dbri
245*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= bge bpp eri esp fas hme
246*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= openeepr options sd ses sgen st
247*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= ssd socal
248*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= ecpp
249*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= uata dad ifp
250*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= hid hubd ehci ohci uhci usb_mid scsa2usb usbprn ugen
251*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= usbser usbser_edge
252*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= usb_as usb_ac
253*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= usbskel
254*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= hci1394 av1394 scsa1394
255*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= sbp2
256*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= scsi_vhci
257*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= ib ibd
258*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= xge
259*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= chxge
260*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= pci_pci px_pci
261*7c478bd9Sstevel@tonic-gate
262*7c478bd9Sstevel@tonic-gate#
263*7c478bd9Sstevel@tonic-gate#	I/O framework test drivers
264*7c478bd9Sstevel@tonic-gate#
265*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= pshot
266*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= gen_drv
267*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= tvhci tphci tclient
268*7c478bd9Sstevel@tonic-gate
269*7c478bd9Sstevel@tonic-gate#
270*7c478bd9Sstevel@tonic-gate# PCMCIA specific module(s)
271*7c478bd9Sstevel@tonic-gate#
272*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= pem stp4020 pcs pcic
273*7c478bd9Sstevel@tonic-gateMISC_KMODS	+= busra dada pcmcia
274*7c478bd9Sstevel@tonic-gateDRV_KMODS	+= pcata pcelx pcmem pcram pcser
275*7c478bd9Sstevel@tonic-gate
276*7c478bd9Sstevel@tonic-gate# Add lvm
277*7c478bd9Sstevel@tonic-gate#
278*7c478bd9Sstevel@tonic-gateDRV_KMODS       += md
279*7c478bd9Sstevel@tonic-gateMISC_KMODS      += md_mirror md_stripe md_hotspares md_raid md_trans md_notify
280*7c478bd9Sstevel@tonic-gateMISC_KMODS      += md_sp
281*7c478bd9Sstevel@tonic-gate
282*7c478bd9Sstevel@tonic-gate#
283*7c478bd9Sstevel@tonic-gate#	Exec Class Modules (/kernel/exec):
284*7c478bd9Sstevel@tonic-gate#
285*7c478bd9Sstevel@tonic-gateEXEC_KMODS	+= aoutexec elfexec intpexec javaexec
286*7c478bd9Sstevel@tonic-gate
287*7c478bd9Sstevel@tonic-gate#
288*7c478bd9Sstevel@tonic-gate#	Scheduling Class Modules (/kernel/sched):
289*7c478bd9Sstevel@tonic-gate#
290*7c478bd9Sstevel@tonic-gateSCHED_KMODS	+= RT TS RT_DPTBL TS_DPTBL IA FSS FX FX_DPTBL
291*7c478bd9Sstevel@tonic-gate
292*7c478bd9Sstevel@tonic-gate#
293*7c478bd9Sstevel@tonic-gate#	File System Modules (/kernel/fs):
294*7c478bd9Sstevel@tonic-gate#
295*7c478bd9Sstevel@tonic-gateFS_KMODS	+= devfs fdfs fifofs hsfs lofs namefs nfs pcfs tmpfs
296*7c478bd9Sstevel@tonic-gateFS_KMODS	+= specfs udfs ufs autofs cachefs procfs sockfs mntfs
297*7c478bd9Sstevel@tonic-gateFS_KMODS	+= ctfs objfs
298*7c478bd9Sstevel@tonic-gate
299*7c478bd9Sstevel@tonic-gate#
300*7c478bd9Sstevel@tonic-gate#	Streams Modules (/kernel/strmod):
301*7c478bd9Sstevel@tonic-gate#
302*7c478bd9Sstevel@tonic-gateSTRMOD_KMODS	+= 6to4tun atun bufmod connld dedump ldterm ms pckt pfmod
303*7c478bd9Sstevel@tonic-gateSTRMOD_KMODS	+= pipemod ptem redirmod rpcmod rlmod telmod timod
304*7c478bd9Sstevel@tonic-gateSTRMOD_KMODS	+= spppasyn spppcomp
305*7c478bd9Sstevel@tonic-gateSTRMOD_KMODS	+= tirdwr ttcompat tun
306*7c478bd9Sstevel@tonic-gateSTRMOD_KMODS	+= usbkbm usbms usb_ah
307*7c478bd9Sstevel@tonic-gateSTRMOD_KMODS	+= drcompat
308*7c478bd9Sstevel@tonic-gateSTRMOD_KMODS	+= nattymod
309*7c478bd9Sstevel@tonic-gateSTRMOD_KMODS	+= cryptmod
310*7c478bd9Sstevel@tonic-gate
311*7c478bd9Sstevel@tonic-gate#
312*7c478bd9Sstevel@tonic-gate#	'System' Modules (/kernel/sys):
313*7c478bd9Sstevel@tonic-gate#
314*7c478bd9Sstevel@tonic-gateSYS_KMODS	+= c2audit
315*7c478bd9Sstevel@tonic-gateSYS_KMODS	+= exacctsys
316*7c478bd9Sstevel@tonic-gateSYS_KMODS	+= inst_sync kaio msgsys semsys shmsys sysacct pipe
317*7c478bd9Sstevel@tonic-gateSYS_KMODS	+= doorfs pset acctctl portfs
318*7c478bd9Sstevel@tonic-gate
319*7c478bd9Sstevel@tonic-gate#
320*7c478bd9Sstevel@tonic-gate#	'User' Modules (/kernel/misc):
321*7c478bd9Sstevel@tonic-gate#
322*7c478bd9Sstevel@tonic-gateMISC_KMODS	+= amsrc1 amsrc2 audiosup diaudio mixer
323*7c478bd9Sstevel@tonic-gateMISC_KMODS	+= consconfig gld ipc nfs_dlboot nfssrv scsi
324*7c478bd9Sstevel@tonic-gateMISC_KMODS	+= strplumb swapgeneric klmmod klmops tlimod
325*7c478bd9Sstevel@tonic-gateMISC_KMODS	+= krtld
326*7c478bd9Sstevel@tonic-gateMISC_KMODS	+= rpcsec rpcsec_gss kgssapi kmech_dummy
327*7c478bd9Sstevel@tonic-gateMISC_KMODS	+= kmech_krb5
328*7c478bd9Sstevel@tonic-gateMISC_KMODS	+= fssnap_if
329*7c478bd9Sstevel@tonic-gateMISC_KMODS	+= hidparser kbtrans usba usba10
330*7c478bd9Sstevel@tonic-gateMISC_KMODS	+= s1394
331*7c478bd9Sstevel@tonic-gateMISC_KMODS	+= hpcsvc pcicfg pcihp
332*7c478bd9Sstevel@tonic-gateMISC_KMODS	+= rsmops
333*7c478bd9Sstevel@tonic-gateMISC_KMODS	+= phx
334*7c478bd9Sstevel@tonic-gateMISC_KMODS	+= kcf
335*7c478bd9Sstevel@tonic-gateMISC_KMODS	+= ibcm
336*7c478bd9Sstevel@tonic-gateMISC_KMODS	+= ibdm
337*7c478bd9Sstevel@tonic-gateMISC_KMODS	+= ibmf
338*7c478bd9Sstevel@tonic-gateMISC_KMODS	+= ibtl
339*7c478bd9Sstevel@tonic-gateMISC_KMODS	+= ctf
340*7c478bd9Sstevel@tonic-gateMISC_KMODS	+= zmod
341*7c478bd9Sstevel@tonic-gateMISC_KMODS	+= mac dls ght
342*7c478bd9Sstevel@tonic-gate
343*7c478bd9Sstevel@tonic-gate#
344*7c478bd9Sstevel@tonic-gate#	Software Cryptographic Providers (/kernel/crypto):
345*7c478bd9Sstevel@tonic-gate#
346*7c478bd9Sstevel@tonic-gateCRYPTO_KMODS	+= aes
347*7c478bd9Sstevel@tonic-gateCRYPTO_KMODS	+= arcfour
348*7c478bd9Sstevel@tonic-gateCRYPTO_KMODS	+= blowfish
349*7c478bd9Sstevel@tonic-gateCRYPTO_KMODS	+= des
350*7c478bd9Sstevel@tonic-gateCRYPTO_KMODS	+= md5
351*7c478bd9Sstevel@tonic-gateCRYPTO_KMODS	+= rsa
352*7c478bd9Sstevel@tonic-gateCRYPTO_KMODS	+= sha1
353*7c478bd9Sstevel@tonic-gateCRYPTO_KMODS	+= sha2
354*7c478bd9Sstevel@tonic-gateCRYPTO_KMODS	+= swrand
355*7c478bd9Sstevel@tonic-gate
356*7c478bd9Sstevel@tonic-gate#
357*7c478bd9Sstevel@tonic-gate# IP Policy Modules (/kernel/ipp):
358*7c478bd9Sstevel@tonic-gate#
359*7c478bd9Sstevel@tonic-gateIPP_KMODS	+= dlcosmk
360*7c478bd9Sstevel@tonic-gateIPP_KMODS	+= flowacct
361*7c478bd9Sstevel@tonic-gateIPP_KMODS	+= ipgpc
362*7c478bd9Sstevel@tonic-gateIPP_KMODS	+= dscpmk
363*7c478bd9Sstevel@tonic-gateIPP_KMODS	+= tokenmt
364*7c478bd9Sstevel@tonic-gateIPP_KMODS	+= tswtclmt
365*7c478bd9Sstevel@tonic-gate
366*7c478bd9Sstevel@tonic-gate#
367*7c478bd9Sstevel@tonic-gate# 'Dacf' modules (/kernel/dacf)
368*7c478bd9Sstevel@tonic-gateDACF_KMODS	+= consconfig_dacf
369*7c478bd9Sstevel@tonic-gate
370*7c478bd9Sstevel@tonic-gate#
371*7c478bd9Sstevel@tonic-gate#	SVVS Testing Modules (/kernel/strmod):
372*7c478bd9Sstevel@tonic-gate#
373*7c478bd9Sstevel@tonic-gate#	These are streams and driver modules which are not to be
374*7c478bd9Sstevel@tonic-gate#	delivered with a released system. However, during development
375*7c478bd9Sstevel@tonic-gate#	it is convenient to build and install the SVVS kernel modules.
376*7c478bd9Sstevel@tonic-gate#
377*7c478bd9Sstevel@tonic-gateSVVS_KMODS	+= lmodb lmode lmodr lmodt lo tidg tivc tmux
378*7c478bd9Sstevel@tonic-gate
379*7c478bd9Sstevel@tonic-gateSVVS		+= svvs
380*7c478bd9Sstevel@tonic-gate
381*7c478bd9Sstevel@tonic-gate#
382*7c478bd9Sstevel@tonic-gate#	Modules eXcluded from the product:
383*7c478bd9Sstevel@tonic-gate#
384*7c478bd9Sstevel@tonic-gateXMODS		+= wsdrv tavor daplt
385*7c478bd9Sstevel@tonic-gate
386*7c478bd9Sstevel@tonic-gate#
387*7c478bd9Sstevel@tonic-gate#	'Dacf' Modules (/kernel/dacf):
388*7c478bd9Sstevel@tonic-gate#
389*7c478bd9Sstevel@tonic-gateDACF_KMODS	+= usb_ac_dacf
390