Makefile.i86pc.shared revision dfb9e8d753e971e3a4136d19823ad919e3fd75c7
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# CDDL HEADER START
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# The contents of this file are subject to the terms of the
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# Common Development and Distribution License (the "License").
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# You may not use this file except in compliance with the License.
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# or http://www.opensolaris.org/os/licensing.
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# See the License for the specific language governing permissions
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# and limitations under the License.
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# When distributing Covered Code, include this CDDL HEADER in each
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# If applicable, add the following below this CDDL HEADER, with the
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# fields enclosed by brackets "[]" replaced with your own identifying
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# information: Portions Copyright [yyyy] [name of copyright owner]
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# CDDL HEADER END
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# uts/i86pc/Makefile.i86pc
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# Use is subject to license terms.
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# ident "%Z%%M% %I% %E% SMI"
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# This makefile contains the common definitions for the i86pc unix
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# and all i86pc implementation architecture dependent modules.
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# Machine type (implementation architecture):
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiPLATFORM = i86pc
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# Everybody needs to know how to build modstubs.o and to locate unix.o
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiUNIX_DIR = $(UTSBASE)/$(PLATFORM)/unix
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiGENLIB_DIR = $(UTSBASE)/intel/genunix
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiMODSTUBS_DIR = $(UNIX_DIR)
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDSF_DIR = $(UTSBASE)/$(PLATFORM)/genassym
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiLINTS_DIR = $(OBJS_DIR)
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiLINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/lint-libs/$(OBJS_DIR)
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiGEN_LINT_LIB_DIR = $(UTSBASE)/intel/lint-libs/$(OBJS_DIR)
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDTRACESTUBS_O = $(OBJS_DIR)/dtracestubs.o
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDTRACESTUBS = $(OBJS_DIR)/libdtracestubs.so
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiSYM_MOD = $(OBJS_DIR)/unix.sym
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiUNIX_O = $(UNIX_DIR)/$(OBJS_DIR)/unix.o
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiMODSTUBS_O = $(MODSTUBS_DIR)/$(OBJS_DIR)/modstubs.o
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiGENLIB = $(GENLIB_DIR)/$(OBJS_DIR)/libgenunix.so
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiLINT_LIB = $(LINT_LIB_DIR)/llib-lunix.ln
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiGEN_LINT_LIB = $(GEN_LINT_LIB_DIR)/llib-lgenunix.ln
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# Include the makefiles which define build rule templates, the
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# collection of files per module, and a few specific flags. Note
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# that order is significant, just as with an include path. The
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# first build rule template which matches the files name will be
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# used. By including these in order from most machine dependent
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# to most machine independent, we allow a machine dependent file
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# to be used in preference over a machine independent version
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# (Such as a machine specific optimization, which preserves the
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# interfaces.)
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchiinclude $(UTSTREE)/$(PLATFORM)/Makefile.files
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchiinclude $(UTSTREE)/intel/Makefile.files
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchiinclude $(UTSTREE)/common/Makefile.files
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# Include machine independent rules. Note that this does not imply
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# that the resulting module from rules in Makefile.uts is machine
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# independent. Only that the build rules are machine independent.
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchiinclude $(UTSBASE)/Makefile.uts
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# Define supported builds
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDEF_BUILDS = $(DEF_BUILDS64) $(DEF_BUILDS32)
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiALL_BUILDS = $(ALL_BUILDS64) $(ALL_BUILDS32)
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# x86 or amd64 inline templates
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiINLINES_32 = $(UTSBASE)/intel/ia32/ml/ia32.il
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiINLINES_64 = $(UTSBASE)/intel/amd64/ml/amd64.il
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiINLINES += $(INLINES_$(CLASS))
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# kernel-specific optimizations; override default in Makefile.master
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiCFLAGS_XARCH_32 = $(i386_CFLAGS)
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiCFLAGS_XARCH_64 = $(amd64_CFLAGS)
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiCFLAGS_XARCH = $(CFLAGS_XARCH_$(CLASS))
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiCOPTFLAG_32 = $(COPTFLAG)
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiCOPTFLAG_64 = $(COPTFLAG64)
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiCOPTIMIZE = $(COPTFLAG_$(CLASS))
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiCFLAGS = $(CFLAGS_XARCH)
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiCFLAGS += $(COPTIMIZE)
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiCFLAGS += $(INLINES) -D_ASM_INLINES
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiCFLAGS += $(CCMODE)
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiCFLAGS += $(SPACEFLAG)
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiCFLAGS += $(CCUNBOUND)
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiCFLAGS += $(CFLAGS_uts)
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiASFLAGS_XARCH_32 = $(i386_ASFLAGS)
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiASFLAGS_XARCH_64 = $(amd64_ASFLAGS)
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiASFLAGS_XARCH = $(ASFLAGS_XARCH_$(CLASS))
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiASFLAGS += $(ASFLAGS_XARCH)
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiAS_INC_PATH += -I$(DSF_DIR)/$(OBJS_DIR)
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# The following must be defined for all implementations:
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# MAPFILE: ld mapfile for the build of kernel/unix.
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# MODSTUBS: Module stubs source file.
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# GENASSYM_SRC: genassym.c
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiMAPFILE = $(UTSBASE)/$(PLATFORM)/conf/Mapfile
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiMODSTUBS = $(UTSBASE)/intel/ia32/ml/modstubs.s
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiGENASSYM_SRC = $(UTSBASE)/$(PLATFORM)/ml/genassym.c
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiOFFSETS_SRC = $(UTSBASE)/$(PLATFORM)/ml/offsets.in
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiPLATFORM_OFFSETS_32 = $(UTSBASE)/$(PLATFORM)/ml/mach_offsets.in
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiPLATFORM_OFFSETS_64 = $(UTSBASE)/intel/amd64/ml/mach_offsets.in
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiPLATFORM_OFFSETS_SRC = $(PLATFORM_OFFSETS_$(CLASS))
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# Define the actual specific platforms
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiMACHINE_DEFS = -D$(PLATFORM) -D_MACHDEP
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# Software workarounds for hardware "features"
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchiinclude $(UTSBASE)/$(PLATFORM)/Makefile.workarounds
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# Simulator flag
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchii386_SIMULATOR = -D_SIMULATOR_SUPPORT
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchiamd64_SIMULATOR = -D_SIMULATOR_SUPPORT
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiSIMULATOR = $($(MACH)_SIMULATOR)
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# Debugging level
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# Special knowledge of which special debugging options effect which
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# file is used to optimize the build if these flags are changed.
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# XXX: The above could possibly be done for more flags and files, but
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# is left as an experiment to the interested reader. Be forewarned,
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# that excessive use could lead to maintenance difficulties.
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDEBUG_DEFS_OBJ32 =
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDEBUG_DEFS_DBG32 = -DDEBUG
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDEBUG_DEFS_DBG32 += $(SIMULATOR)
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDEBUG_DEFS_OBJ64 =
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDEBUG_DEFS_DBG64 = -DDEBUG
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDEBUG_DEFS_DBG64 += $(SIMULATOR)
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDEBUG_DEFS = $(DEBUG_DEFS_$(BUILD_TYPE))
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDEBUG_COND_OBJ32 :sh = echo \\043
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDEBUG_COND_DBG32 =
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDEBUG_COND_OBJ64 :sh = echo \\043
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDEBUG_COND_DBG64 =
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiIF_DEBUG_OBJ = $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(IF_DEBUG_OBJ)trap.o := DEBUG_DEFS += -DTRAPDEBUG -DTRAPTRACE
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(IF_DEBUG_OBJ)syscall_asm.o := DEBUG_DEFS += -DSYSCALLTRACE -DTRAPTRACE
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(IF_DEBUG_OBJ)syscall_asm_amd64.o := DEBUG_DEFS += -DSYSCALLTRACE -DTRAPTRACE
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(IF_DEBUG_OBJ)fast_trap_asm.o := DEBUG_DEFS += -DTRAPTRACE
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(IF_DEBUG_OBJ)interrupt.o := DEBUG_DEFS += -DTRAPTRACE
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(IF_DEBUG_OBJ)locore.o := DEBUG_DEFS += -DTRAPTRACE
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(IF_DEBUG_OBJ)mp_startup.o := DEBUG_DEFS += -DTRAPTRACE
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(IF_DEBUG_OBJ)machdep.o := DEBUG_DEFS += -DTRAPTRACE
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(IF_DEBUG_OBJ)exception.o := DEBUG_DEFS += -DTRAPTRACE
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# Build `options'. These are historical and the need for these
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# was removed by the module technology.
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiOPTION_DEFS = -DC2_AUDIT
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# Collect the preprocessor definitions to be associated with *all*
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# files.
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiALL_DEFS = $(MACHINE_DEFS) $(WORKAROUND_DEFS) $(DEBUG_DEFS) \
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi $(OPTION_DEFS)
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiGENASSYM_DEFS = $(MACHINE_DEFS) $(OPTION_DEFS) \
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi -_gcc=-fno-eliminate-unused-debug-symbols \
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi -_gcc=-fno-eliminate-unused-debug-types
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# ----- TRANSITIONAL SECTION --------------------------------------------------
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# Not everything which *should* be a module is a module yet. The
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# following is a list of such objects which are currently part of
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# the base kernel but should soon become kmods.
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# XXX: $(KMACCT_OBJS) is neither in the MT kernel nor was it ever
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# made into a module. If it is made MT safe before being made
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# into a module, it should be added to this list. It was in
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# this list pre ON-4.0.
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiMACH_NOT_YET_KMODS = $(AUTOCONF_OBJS)
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# ----- END OF TRANSITIONAL SECTION -------------------------------------------
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# The kernels modules which are "implementation architecture"
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# specific for this machine are enumerated below. Note that most
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# of these modules must exist (in one form or another) for each
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# architecture.
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# Machine Specific Driver Modules (/kernel/drv)
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# DRV_KMODS are built both 32-bit and 64-bit
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# DRV_KMODS_32 are built only 32-bit
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# DRV_KMODS_64 are built only 64-bit
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# XXX: How many of these are really machine specific?
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDRV_KMODS += rootnex
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDRV_KMODS += isa
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDRV_KMODS += pci
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDRV_KMODS += pcie_pci
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDRV_KMODS += npe
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDRV_KMODS += fd
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDRV_KMODS += fdc
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDRV_KMODS += kb8042
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDRV_KMODS += pci-ide
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDRV_KMODS += audio810
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDRV_KMODS_32 += dnet
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDRV_KMODS += logi
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDRV_KMODS_32 += mscsi
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDRV_KMODS_32 += msm
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDRV_KMODS += pcplusmp
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDRV_KMODS += agpgart
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDRV_KMODS += agptarget
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDRV_KMODS += amd64_gart
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDRV_KMODS += cpc
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDRV_KMODS += mc-amd
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiDRV_KMODS += power
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(CLOSED_BUILD)CLOSED_DRV_KMODS += ata
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(CLOSED_BUILD)CLOSED_DRV_KMODS += audiovia823x
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(CLOSED_BUILD)CLOSED_DRV_KMODS += audioens
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(CLOSED_BUILD)CLOSED_DRV_KMODS += audioixp
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(CLOSED_BUILD)CLOSED_DRV_KMODS += bmc
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(CLOSED_BUILD)CLOSED_DRV_KMODS_32 += bscbus
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(CLOSED_BUILD)CLOSED_DRV_KMODS_32 += bscv
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(CLOSED_BUILD)CLOSED_DRV_KMODS += elxl
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(CLOSED_BUILD)CLOSED_DRV_KMODS += iprb
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(CLOSED_BUILD)CLOSED_DRV_KMODS += memtest
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(CLOSED_BUILD)CLOSED_DRV_KMODS_32 += ncrs
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(CLOSED_BUILD)CLOSED_DRV_KMODS += pcic
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(CLOSED_BUILD)CLOSED_DRV_KMODS += pcn
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(CLOSED_BUILD)CLOSED_DRV_KMODS += rtls
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(CLOSED_BUILD)CLOSED_DRV_KMODS_32 += sbpro
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# CPU Modules
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiCPU_KMODS += amd_opteron
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiCPU_KMODS += generic_cpu
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# Exec Class Modules (/kernel/exec):
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiEXEC_KMODS +=
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# Scheduling Class Modules (/kernel/sched):
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiSCHED_KMODS +=
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# File System Modules (/kernel/fs):
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiFS_KMODS +=
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# Streams Modules (/kernel/strmod):
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiSTRMOD_KMODS += vuid2ps2
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiSTRMOD_KMODS += vuid3ps2
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiSTRMOD_KMODS += vuidm3p
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiSTRMOD_KMODS += vuidm4p
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiSTRMOD_KMODS += vuidm5p
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# 'System' Modules (/kernel/sys):
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiSYS_KMODS +=
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# 'Misc' Modules (/kernel/misc):
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiMISC_KMODS += pci_autoconfig bootdev acpica pciehpc gfx_private
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# 'Mach' Modules (/kernel/mach):
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert MustacchiMACH_KMODS += uppc
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# Modules excluded from the product:
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi#
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi$(CLOSED_BUILD)CLOSED_XMODS += spwr
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi