Makefile.sun4u.shared revision 4135:69588295f961
167754Smsmith#
267754Smsmith# CDDL HEADER START
367754Smsmith#
467754Smsmith# The contents of this file are subject to the terms of the
567754Smsmith# Common Development and Distribution License (the "License").
667754Smsmith# You may not use this file except in compliance with the License.
767754Smsmith#
867754Smsmith# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
967754Smsmith# or http://www.opensolaris.org/os/licensing.
1067754Smsmith# See the License for the specific language governing permissions
1167754Smsmith# and limitations under the License.
12193267Sjkim#
1370243Smsmith# When distributing Covered Code, include this CDDL HEADER in each
1467754Smsmith# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1567754Smsmith# If applicable, add the following below this CDDL HEADER, with the
1667754Smsmith# fields enclosed by brackets "[]" replaced with your own identifying
1767754Smsmith# information: Portions Copyright [yyyy] [name of copyright owner]
1867754Smsmith#
1967754Smsmith# CDDL HEADER END
2067754Smsmith#
2167754Smsmith
2267754Smsmith#
2367754Smsmith# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
2467754Smsmith# Use is subject to license terms.
2567754Smsmith#
2667754Smsmith# ident	"%Z%%M%	%I%	%E% SMI"
2767754Smsmith#
2867754Smsmith#	This makefile contains the common definitions for the sun4u unix
2967754Smsmith#	and all sun4u implementation architecture dependent modules.
3067754Smsmith#
3167754Smsmith
3267754Smsmith#
3367754Smsmith#	Machine type (implementation architecture):
3467754Smsmith#
3567754SmsmithPLATFORM	 = sun4u
3667754SmsmithPROMIF		 = ieee1275
3767754SmsmithPSMBASE		 = $(UTSBASE)/../psm
3867754Smsmith
3967754Smsmith#
4067754Smsmith#	uname -m value
4167754Smsmith#
4267754SmsmithUNAME_M		= $(PLATFORM)
4367754Smsmith
4467754Smsmith#
4567754Smsmith# Definitions for the platform-specific /platform directories.
4667754Smsmith#
4767754Smsmith# PLATFORMS designates those sun4u machines which have no platform
4867754Smsmith# specific code.
4967754Smsmith#
5067754Smsmith# IMPLEMENTATIONS is used to designate sun4u machines which do have
5167754Smsmith# platform specific modules (perhaps including their own unix).  All
5267754Smsmith# code specific to a given implementation resides in the appropriately
5367754Smsmith# named subdirectory.   This requires these platforms to have their
5467754Smsmith# own Makefiles to define ROOT_PLAT_DIRS, USR_PLAT_DIRS, etc.
5567754Smsmith#
5667754Smsmith# So if we had an implementation named 'foo', we would need the following
5767754Smsmith# Makefiles in the foo subdirectory:
5867754Smsmith#
5967754Smsmith#	sun4u/foo/Makefile
6067754Smsmith#	sun4u/foo/Makefile.foo
6167754Smsmith#	sun4u/foo/Makefile.targ
6267754Smsmith#
6367754Smsmith
6467754Smsmith#
6567754Smsmith# /usr/platform/$(IMPLEMENTED_PLATFORM) is created as a directory that
6667754Smsmith# all the $(LINKED_PLATFORMS) link to.
6767754Smsmith#
6867754SmsmithIMPLEMENTED_PLATFORM	= SUNW,Ultra-2
6967754Smsmith
7067754SmsmithLINKED_PLATFORMS	+= SUNW,Ultra-30
7167754SmsmithLINKED_PLATFORMS	+= SUNW,Ultra-60
7267754Smsmith
7367754Smsmith#
7467754Smsmith# all PLATFORMS that do not belong in the $(IMPLEMENTATIONS) list
7567754Smsmith# ie. all desktop platforms
7667754Smsmith#
7767754SmsmithPLATFORMS                = $(IMPLEMENTED_PLATFORM)
7867754SmsmithPLATFORMS               += $(LINKED_PLATFORMS)
7967754Smsmith
8067754SmsmithROOT_PLAT_DIRS		= $(PLATFORMS:%=$(ROOT_PLAT_DIR)/%)
8167754SmsmithUSR_PLAT_DIRS		= $(PLATFORMS:%=$(USR_PLAT_DIR)/%)
8267754Smsmith
8367754SmsmithUSR_DESKTOP_DIR		= $(USR_PLAT_DIR)/$(IMPLEMENTED_PLATFORM)
8467754SmsmithUSR_DESKTOP_INC_DIR	= $(USR_DESKTOP_DIR)/include
8567754SmsmithUSR_DESKTOP_SBIN_DIR	= $(USR_DESKTOP_DIR)/sbin
8667754SmsmithUSR_DESKTOP_LIB_DIR	= $(USR_DESKTOP_DIR)/lib
8767754Smsmith
8867754Smsmith#
8967754Smsmith# Welcome to SPARC V9.
9067754Smsmith#
9167754Smsmith
9267754Smsmith#
9367754Smsmith#	Define supported builds
9467754Smsmith#
9567754SmsmithDEF_BUILDS	= $(DEF_BUILDS64)
9667754SmsmithALL_BUILDS	= $(ALL_BUILDS64)
9767754Smsmith
9867754Smsmith#
9967754Smsmith#	Everybody needs to know how to build modstubs.o and to locate unix.o
10067754Smsmith#
10167754SmsmithUNIX_DIR	 = $(UTSBASE)/$(PLATFORM)/unix
10267754SmsmithGENLIB_DIR	 = $(UTSBASE)/$(PLATFORM)/genunix
10367754SmsmithMODSTUBS_DIR	 = $(UNIX_DIR)
10467754SmsmithDSF_DIR		 = $(UTSBASE)/$(PLATFORM)/genassym
10567754SmsmithLINTS_DIR	 = $(OBJS_DIR)
10667754SmsmithLINT_LIB_DIR	 = $(UTSBASE)/$(PLATFORM)/lint-libs/$(OBJS_DIR)
10767754Smsmith 
10867754SmsmithDTRACESTUBS_O	 = $(OBJS_DIR)/dtracestubs.o
10967754SmsmithDTRACESTUBS	 = $(OBJS_DIR)/libdtracestubs.so
11067754Smsmith
11167754SmsmithUNIX_O		 = $(UNIX_DIR)/$(OBJS_DIR)/unix.o
11267754SmsmithMODSTUBS_O	 = $(MODSTUBS_DIR)/$(OBJS_DIR)/modstubs.o
11367754SmsmithGENLIB	 	 = $(GENLIB_DIR)/$(OBJS_DIR)/libgenunix.so
11467754Smsmith
11567754SmsmithLINT_LIB	 = $(LINT_LIB_DIR)/llib-lunix.ln
11667754SmsmithGEN_LINT_LIB	 = $(LINT_LIB_DIR)/llib-lgenunix.ln
11767754Smsmith
118193251SjkimLINT64_DIRS	 = $(LINT64_BUILDS:%=$(UTSBASE)/$(PLATFORM)/lint-libs/%)
119193267SjkimLINT64_FILES	 = $(LINT64_DIRS:%=%/llib-l$(MODULE).ln)
120193251Sjkim
12167754Smsmith#
12267754Smsmith#	cpu and platform modules need to know how to build their own symcheck module
12377424Smsmith#
12491116SmsmithPLATMOD		 = platmod
12567754SmsmithPLATLIB		 = $(PLAT_DIR)/$(OBJS_DIR)/libplatmod.so
126151937Sjkim
12767754SmsmithCPUNAME		 = cpu
128151937SjkimCPULIB		 = $(CPU_DIR)/$(OBJS_DIR)/libcpu.so
129151937Sjkim
130151937SjkimSYM_MOD		 = $(OBJS_DIR)/unix.sym
131151937Sjkim
132151937Sjkim#
13367754Smsmith#	Include the makefiles which define build rule templates, the
13467754Smsmith#	collection of files per module, and a few specific flags. Note
135117521Snjl#	that order is significant, just as with an include path. The
13667754Smsmith#	first build rule template which matches the files name will be
13767754Smsmith#	used. By including these in order from most machine dependent
13867754Smsmith#	to most machine independent, we allow a machine dependent file
13967754Smsmith#	to be used in preference over a machine independent version
14067754Smsmith#	(Such as a machine specific optimization, which preserves the
14167754Smsmith#	interfaces.)
142117521Snjl#
14367754Smsmithinclude $(UTSBASE)/sun4/Makefile.files
14467754Smsmithinclude $(UTSTREE)/$(PLATFORM)/Makefile.files
14567754Smsmithinclude $(UTSBASE)/sfmmu/Makefile.files
14692388Smsmithinclude $(UTSBASE)/sparc/v9/Makefile.files
147117521Snjlinclude $(UTSBASE)/sparc/Makefile.files
14891116Smsmithinclude $(UTSTREE)/sun/Makefile.files
14967754Smsmithinclude $(SRC)/psm/promif/$(PROMIF)/common/Makefile.files
150117521Snjlinclude $(SRC)/psm/promif/$(PROMIF)/$(PLATFORM)/Makefile.files
15191116Smsmithinclude $(UTSTREE)/common/Makefile.files
15267754Smsmith
15367754Smsmith#
154167802Sjkim#	Include machine independent rules. Note that this does not imply
15567754Smsmith#	that the resulting module from rules in Makefile.uts is	machine
15667754Smsmith#	independent. Only that the build rules are machine independent.
15767754Smsmith#
158114237Snjlinclude $(UTSBASE)/Makefile.uts
159114237Snjl
16067754Smsmith# These come after Makefile.uts (for CLOSED_BUILD).
16199679SiwasakiIMPLEMENTATIONS		 = tazmo .WAIT
16267754SmsmithIMPLEMENTATIONS		+= starfire .WAIT
163117521SnjlIMPLEMENTATIONS		+= javelin .WAIT
164117521SnjlIMPLEMENTATIONS		+= darwin .WAIT
16567754SmsmithIMPLEMENTATIONS		+= quasar .WAIT
16667754SmsmithIMPLEMENTATIONS		+= grover .WAIT
16767754SmsmithIMPLEMENTATIONS		+= enchilada .WAIT
16867754SmsmithIMPLEMENTATIONS		+= taco .WAIT
169117521SnjlIMPLEMENTATIONS		+= mpxu .WAIT
170117521SnjlIMPLEMENTATIONS		+= excalibur .WAIT
171117521SnjlIMPLEMENTATIONS		+= montecarlo .WAIT
172117521SnjlIMPLEMENTATIONS		+= serengeti .WAIT
173117521SnjlIMPLEMENTATIONS		+= littleneck .WAIT
174193267SjkimIMPLEMENTATIONS		+= starcat .WAIT
175151937SjkimIMPLEMENTATIONS		+= daktari .WAIT
176117521SnjlIMPLEMENTATIONS		+= cherrystone .WAIT
177117521SnjlIMPLEMENTATIONS		+= fjlite .WAIT
178117521SnjlIMPLEMENTATIONS		+= snowbird .WAIT
179117521SnjlIMPLEMENTATIONS		+= schumacher .WAIT
180117521SnjlIMPLEMENTATIONS		+= blade .WAIT
181117521SnjlIMPLEMENTATIONS		+= boston .WAIT
182117521SnjlIMPLEMENTATIONS		+= seattle .WAIT
183117521SnjlIMPLEMENTATIONS		+= chicago .WAIT
184117521SnjlIMPLEMENTATIONS		+= sunfire .WAIT
185117521SnjlIMPLEMENTATIONS		+= lw8 .WAIT
186117521SnjlIMPLEMENTATIONS		+= makaha .WAIT
187117521SnjlIMPLEMENTATIONS		+= opl .WAIT
188117521SnjlIMPLEMENTATIONS		+= lw2plus .WAIT
189117521SnjlIMPLEMENTATIONS		+= douglas .WAIT
190117521Snjl
191117521Snjl$(CLOSED_BUILD)CLOSED_IMPLEMENTATIONS	= chalupa .WAIT
192117521Snjl$(CLOSED_BUILD)CLOSED_IMPLEMENTATIONS	+= ents .WAIT
193117521Snjl
194117521Snjl#
195117521Snjl#	machine specific optimization, override default in Makefile.master
196117521Snjl#
197117521SnjlCC_XARCH	= -xarch=v9a
198117521SnjlAS_XARCH	= -xarch=v9a
199167802SjkimCOPTIMIZE	= -xO3
200117521SnjlCCMODE		= -Xa
201117521Snjl
202117521SnjlCFLAGS		= -xchip=ultra $(CCABS32) $(CCREGSYM)
203117521SnjlCFLAGS		+= $(CC_XARCH)
204117521SnjlCFLAGS		+= $(COPTIMIZE)
205117521SnjlCFLAGS		+= $(EXTRA_CFLAGS)
206117521SnjlCFLAGS		+= $(XAOPT)
207193267SjkimCFLAGS		+= $(INLINES) -D_ASM_INLINES
208193267SjkimCFLAGS		+= $(CCMODE)
209117521SnjlCFLAGS		+= $(SPACEFLAG)
21067754SmsmithCFLAGS		+= $(CERRWARN)
211151937SjkimCFLAGS		+= $(CTF_FLAGS)
21267754SmsmithCFLAGS		+= $(C99MODE)
21367754SmsmithCFLAGS		+= $(CCUNBOUND)
21467754SmsmithCFLAGS		+= $(CCSTATICSYM)
21567754SmsmithCFLAGS		+= $(IROPTFLAG)
21667754SmsmithCFLAGS		+= $(CGLOBALSTATIC)
21767754SmsmithCFLAGS		+= -xregs=no%float
21867754Smsmith
21967754SmsmithASFLAGS		+= $(AS_XARCH)
22067754Smsmith
22167754SmsmithAS_INC_PATH	+= -I$(DSF_DIR)/$(OBJS_DIR)
22267754Smsmith
22367754SmsmithLINT_KMODS	+= $(GENUNIX_KMODS)
22467754Smsmith
22567754SmsmithLINT_DEFS	= -Xarch=v9
22667754Smsmith
22767754Smsmith#
228151937Sjkim#	The following must be defined for all implementations:
229151937Sjkim#
23067754Smsmith#	MAPFILE:		ld mapfile for the build of kernel/unix.
23183174Smsmith#	MODSTUBS:		Module stubs source file.
23267754Smsmith#	GENCONST_SRC:		genconst.c
23367754Smsmith#	OFFSETS:		offsets.in
234167802Sjkim#	PLATFORM_OFFSETS:	Platform specific mach_offsets.in
23567754Smsmith#	FDOFFSETS:		fd_offsets.in
23667754Smsmith#
237167802SjkimMAPFILE		 = $(UTSBASE)/sun4/conf/Mapfile
238167802SjkimMODSTUBS	 = $(UTSBASE)/sparc/ml/modstubs.s
23983174SmsmithGENCONST_SRC	 = $(UTSBASE)/sun4/ml/genconst.c
24067754SmsmithOFFSETS		 = $(UTSBASE)/sun4/ml/offsets.in
24167754SmsmithPLATFORM_OFFSETS = $(UTSBASE)/sun4u/ml/mach_offsets.in
24267754SmsmithFDOFFSETS 	 = $(UTSBASE)/sun/io/fd_offsets.in
24367754Smsmith
24467754Smsmith#
24567754Smsmith#	Define the actual specific platforms
24667754Smsmith#
24767754Smsmith
24867754SmsmithMACHINE_DEFS	= -D$(PLATFORM) -D_MACHDEP -DSFMMU
24967754Smsmith
25067754Smsmith$(MPSAS_BUILD)MACHINE_DEFS      += -DMPSAS
25167754Smsmith
252193267Sjkim#
25391116Smsmith#	Software workarounds for hardware "features"
25467754Smsmith#
25591116Smsmith
256193267Sjkiminclude $(UTSBASE)/$(PLATFORM)/Makefile.workarounds
25791116Smsmith
25891116Smsmith#
25991116Smsmith#	Debugging level
26067754Smsmith#
26167754Smsmith#	Special knowledge of which special debugging options effect which
26267754Smsmith#	file is used to optimize the build if these flags are changed.
263151937Sjkim#
264151937Sjkim#	XXX: The above could possibly be done for more flags and files, but
26567754Smsmith#	     is left as an experiment to the interested reader. Be forewarned,
26699679Siwasaki#	     that excessive use could lead to maintenance difficulties.
26799679Siwasaki#
26899679Siwasaki#	Note: kslice can be enabled for the sun4u, but is disabled by default
269167802Sjkim#	      in all cases.
27067754Smsmith#
27183174Smsmith
27291116SmsmithDEBUG_DEFS_OBJ64	=
27367754SmsmithDEBUG_DEFS_DBG64	= -DDEBUG
274167802SjkimDEBUG_DEFS		= $(DEBUG_DEFS_$(BUILD_TYPE))
275167802Sjkim
27667754SmsmithDEBUG_COND_OBJ64	:sh = echo \\043
27799679SiwasakiDEBUG_COND_DBG64	= 
27867754SmsmithIF_DEBUG_OBJ		= $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
27967754Smsmith
28067754Smsmith$(IF_DEBUG_OBJ)trap.o		:=	DEBUG_DEFS	+= -DTRAPDEBUG
281$(IF_DEBUG_OBJ)mach_trap.o	:=	DEBUG_DEFS	+= -DTRAPDEBUG
282$(IF_DEBUG_OBJ)syscall_trap.o	:=	DEBUG_DEFS	+= -DSYSCALLTRACE
283$(IF_DEBUG_OBJ)clock.o		:=	DEBUG_DEFS	+= -DKSLICE=0
284
285IF_TRAPTRACE_OBJ = $(IF_DEBUG_OBJ)
286# comment this out for a non-debug kernel with TRAPTRACE
287#IF_TRAPTRACE_OBJ = $(OBJS_DIR)/
288
289$(IF_TRAPTRACE_OBJ)mach_locore.o	:=	DEBUG_DEFS	+= -DTRAPTRACE
290$(IF_TRAPTRACE_OBJ)mlsetup.o		:=	DEBUG_DEFS	+= -DTRAPTRACE
291$(IF_TRAPTRACE_OBJ)syscall_trap.o 	:=	DEBUG_DEFS	+= -DTRAPTRACE
292$(IF_TRAPTRACE_OBJ)startup.o		:=	DEBUG_DEFS	+= -DTRAPTRACE
293$(IF_TRAPTRACE_OBJ)mach_startup.o	:=	DEBUG_DEFS	+= -DTRAPTRACE
294$(IF_TRAPTRACE_OBJ)mp_startup.o		:=	DEBUG_DEFS	+= -DTRAPTRACE
295$(IF_TRAPTRACE_OBJ)cpu_states.o		:=	DEBUG_DEFS	+= -DTRAPTRACE
296$(IF_TRAPTRACE_OBJ)mach_cpu_states.o	:=	DEBUG_DEFS	+= -DTRAPTRACE
297$(IF_TRAPTRACE_OBJ)interrupt.o		:=	DEBUG_DEFS	+= -DTRAPTRACE
298$(IF_TRAPTRACE_OBJ)mach_interrupt.o	:=	DEBUG_DEFS	+= -DTRAPTRACE
299$(IF_TRAPTRACE_OBJ)sfmmu_asm.o		:=	DEBUG_DEFS	+= -DTRAPTRACE
300$(IF_TRAPTRACE_OBJ)trap_table.o		:=	DEBUG_DEFS	+= -DTRAPTRACE
301$(IF_TRAPTRACE_OBJ)xc.o			:=	DEBUG_DEFS	+= -DTRAPTRACE
302$(IF_TRAPTRACE_OBJ)mach_xc.o		:=	DEBUG_DEFS	+= -DTRAPTRACE
303$(IF_TRAPTRACE_OBJ)wbuf.o		:=	DEBUG_DEFS	+= -DTRAPTRACE
304$(IF_TRAPTRACE_OBJ)trap.o		:=	DEBUG_DEFS	+= -DTRAPTRACE
305$(IF_TRAPTRACE_OBJ)mach_trap.o		:=	DEBUG_DEFS	+= -DTRAPTRACE
306$(IF_TRAPTRACE_OBJ)x_call.o		:=	DEBUG_DEFS	+= -DTRAPTRACE
307$(IF_TRAPTRACE_OBJ)spitfire_asm.o	:=	DEBUG_DEFS	+= -DTRAPTRACE
308$(IF_TRAPTRACE_OBJ)us3_common_asm.o	:=	DEBUG_DEFS	+= -DTRAPTRACE
309$(IF_TRAPTRACE_OBJ)us3_cheetah_asm.o	:=	DEBUG_DEFS	+= -DTRAPTRACE
310$(IF_TRAPTRACE_OBJ)us3_cheetahplus_asm.o :=	DEBUG_DEFS	+= -DTRAPTRACE
311$(IF_TRAPTRACE_OBJ)us3_jalapeno_asm.o	:=	DEBUG_DEFS	+= -DTRAPTRACE
312$(IF_TRAPTRACE_OBJ)opl_olympus_asm.o	:=	DEBUG_DEFS	+= -DTRAPTRACE
313
314# Comment these out if you don't want dispatcher lock statistics.
315
316#$(IF_DEBUG_OBJ)lock_prim.o	:= DEBUG_DEFS	+= -DDISP_LOCK_STATS
317#$(IF_DEBUG_OBJ)disp.o		:= DEBUG_DEFS	+= -DDISP_LOCK_STATS
318
319# Comment these out if you don't want dispatcher debugging 
320
321#$(IF_DEBUG_OBJ)lock_prim.o	:= DEBUG_DEFS	+= -DDISP_DEBUG
322
323#
324#	Build `options'. These are mostly historical and the need for these
325#	is largely removed by the module technology. However, the static
326#	build will continue to require these.
327#
328OPTION_DEFS	 = -DC2_AUDIT
329
330#
331#	Collect the preprocessor definitions to be associated with *all*
332#	files.
333#
334ALL_DEFS	 = $(MACHINE_DEFS) $(WORKAROUND_DEFS) $(DEBUG_DEFS) \
335		   $(OPTION_DEFS)
336GENCONST_DEFS	 = $(MACHINE_DEFS) $(OPTION_DEFS)
337
338#
339# ----- TRANSITIONAL SECTION --------------------------------------------------
340#
341
342#
343#	Not everything which *should* be a module is a module yet. The
344#	following is a list of such objects which are currently part of
345#	the base kernel but should soon become kmods.
346#
347MACH_NOT_YET_KMODS	 = $(AUTOCONF_OBJS)
348
349#
350# ----- END OF TRANSITIONAL SECTION -------------------------------------------
351#
352
353#
354#	The kernels modules which are "implementation architecture"
355#	specific for this machine are enumerated below. Note that most
356#	of these modules must exist (in one form or another) for each
357#	architecture.
358#
359#	Common Drivers (usually pseudo drivers) (/kernel/drv):
360#
361
362#
363#	Machine Specific Driver Modules (/kernel/drv):
364#
365#	XXX: How many of these are really machine specific?
366#
367DRV_KMODS	+= bbc_beep
368DRV_KMODS	+= cgsix
369DRV_KMODS	+= cpc
370DRV_KMODS	+= dma fd
371DRV_KMODS	+= rootnex sbusmem upa64s zs zsh
372DRV_KMODS	+= sbus
373DRV_KMODS	+= pcisch pcipsy simba
374DRV_KMODS	+= px
375DRV_KMODS	+= fpc
376DRV_KMODS	+= ebus
377DRV_KMODS	+= su
378DRV_KMODS	+= tod
379DRV_KMODS	+= power
380DRV_KMODS	+= epic
381DRV_KMODS	+= grbeep
382DRV_KMODS	+= pcf8584 max1617 seeprom tda8444 pca9556
383DRV_KMODS	+= ics951601 adm1031
384DRV_KMODS	+= lm75 ltc1427 pcf8591 pcf8574 ssc050 ssc100
385DRV_KMODS	+= pic16f819
386DRV_KMODS	+= pic16f747
387DRV_KMODS	+= adm1026
388DRV_KMODS	+= us
389DRV_KMODS	+= ppm schppm jbusppm
390DRV_KMODS	+= mc-us3
391DRV_KMODS	+= mc-us3i
392DRV_KMODS       += smbus
393DRV_KMODS	+= db21554
394DRV_KMODS	+= gpio_87317
395DRV_KMODS	+= isadma
396DRV_KMODS	+= sbbc
397DRV_KMODS	+= pmubus
398DRV_KMODS	+= pmugpio
399DRV_KMODS	+= pmc
400DRV_KMODS	+= trapstat
401DRV_KMODS	+= dmfe
402DRV_KMODS	+= rmc_comm
403DRV_KMODS	+= rmcadm
404DRV_KMODS	+= rmclomv
405DRV_KMODS	+= wrsmd
406DRV_KMODS	+= sf
407DRV_KMODS	+= nxge
408DRV_KMODS	+= i2bsc 
409
410$(CLOSED_BUILD)CLOSED_DRV_KMODS	+= ctsmc
411$(CLOSED_BUILD)CLOSED_DRV_KMODS	+= m1535ppm
412$(CLOSED_BUILD)CLOSED_DRV_KMODS	+= memtest
413$(CLOSED_BUILD)CLOSED_DRV_KMODS	+= mi2cv
414$(CLOSED_BUILD)CLOSED_DRV_KMODS	+= scmi2c
415$(CLOSED_BUILD)CLOSED_DRV_KMODS	+= smbus_ara
416
417#
418#	Exec Class Modules (/kernel/exec):
419#
420EXEC_KMODS	+=
421
422#
423#	Scheduling Class Modules (/kernel/sched):
424#
425SCHED_KMODS	+=
426
427#
428#	File System Modules (/kernel/fs):
429#
430FS_KMODS	+=
431
432#
433#	Streams Modules (/kernel/strmod):
434#
435STRMOD_KMODS	+= kb
436
437#
438#	'System' Modules (/kernel/sys):
439#
440SYS_KMODS	+=
441
442#
443#	'User' Modules (/kernel/misc):
444#
445MISC_KMODS	+= obpsym bootdev vis cpr platmod md5 sha1 i2c_svc
446MISC_KMODS	+= sbd
447
448MISC_KMODS	+= opl_cfg
449MISC_KMODS	+= kmech_krb5
450MISC_KMODS	+= zuluvm
451MISC_KMODS	+= gptwo_cpu gptwocfg
452
453#
454#	Brand modules
455#
456BRAND_KMODS	+= sn1_brand
457
458#
459#	Software Cryptographic Providers (/kernel/crypto):
460#
461# Don't build some of these for OpenSolaris, since they will be
462# replaced by binaries that are signed by Sun RE.
463#
464$(CLOSED_BUILD)CRYPTO_KMODS	+= aes
465$(CLOSED_BUILD)CRYPTO_KMODS	+= arcfour
466$(CLOSED_BUILD)CRYPTO_KMODS	+= des
467CRYPTO_KMODS	+= rsa
468
469#
470#	generic-unix module (/kernel/genunix):
471#
472GENUNIX_KMODS	+= genunix
473
474#	'User' "Modules" excluded from the Full Kernel lint target:
475#
476$(CLOSED_BUILD)CLOSED_NLMISC_KMODS	+= forthdebug
477
478#
479#	Modules eXcluded from the product:
480#
481XMODS		+=
482
483#
484#	cpu modules
485#
486CPU_KMODS	+= cheetah cheetahplus jalapeno serrano spitfire hummingbird
487
488#
489#	sun4u 'TOD' Modules (/platform/.../kernel/tod):
490#
491TOD_KMODS	+= todds1287 todds1337 todmostek todstarfire 
492TOD_KMODS	+= todm5819 todblade todbq4802 todsg todopl
493TOD_KMODS	+= todm5819p_rmc todstarcat 
494
495$(CLOSED_BUILD)CLOSED_TOD_KMODS	+= todm5823
496
497#
498#	Performance Counter BackEnd Modules (/usr/kernel/pcbe):
499#
500PCBE_KMODS	+= us234_pcbe
501PCBE_KMODS	+= opl_pcbe
502