Makefile.blade.shared revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
2N/A#
2N/A#ident "%Z%%M% %I% %E% SMI"
2N/A#
2N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
2N/A# Use is subject to license terms.
2N/A#
2N/A# Global definitions for sun4u jbos-blade implementation specific modules.
2N/A#
2N/A
2N/A#
2N/A# Define directories.
2N/A#
2N/AROOT_BLADE_DIR = $(ROOT_PLAT_DIR)/SUNW,Serverblade1
2N/AROOT_BLADE_MOD_DIR = $(ROOT_BLADE_DIR)/kernel
2N/AROOT_BLADE_MISC_DIR_32 = $(ROOT_BLADE_DIR)/kernel/misc
2N/AROOT_BLADE_MISC_DIR_64 = $(ROOT_BLADE_MISC_DIR_32)/$(SUBDIR64)
2N/AROOT_BLADE_KERN_DIR_32 = $(ROOT_BLADE_MOD_DIR)
2N/AROOT_BLADE_KERN_DIR_64 = $(ROOT_BLADE_MOD_DIR)/$(SUBDIR64)
2N/AROOT_BLADE_DRV_DIR_32 = $(ROOT_BLADE_MOD_DIR)/drv
2N/AROOT_BLADE_DRV_DIR_64 = $(ROOT_BLADE_MOD_DIR)/drv/$(SUBDIR64)
2N/A
2N/AROOT_BLADE_KERN_DIR = $(ROOT_BLADE_KERN_DIR_$(CLASS))
2N/AROOT_BLADE_DRV_DIR = $(ROOT_BLADE_DRV_DIR_$(CLASS))
2N/AROOT_BLADE_MISC_DIR = $(ROOT_BLADE_MISC_DIR_$(CLASS))
2N/A
2N/AROOT_PLAT_MOD_DIRS += $(ROOT_BLADE_MOD_DIR)
2N/AROOT_PLAT_MISC_DIRS += $(ROOT_BLADE_MISC_DIR)
2N/A
2N/A
2N/AUSR_SUN4U_PLAT_DIR = $(USR_PLAT_DIR)/sun4u
2N/AUSR_BLADE_DIR = $(USR_PLAT_DIR)/SUNW,Serverblade1
2N/AUSR_BLADE_INC_DIR = $(USR_BLADE_DIR)/include
2N/AUSR_BLADE_ISYS_DIR = $(USR_BLADE_INC_DIR)/sys
2N/AUSR_BLADE_SBIN_DIR = $(USR_BLADE_DIR)/sbin
2N/AUSR_BLADE_LIB_DIR = $(USR_BLADE_DIR)/lib
2N/A
2N/A
2N/ABLADE_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/blade/lint-libs/$(OBJS_DIR)
2N/A
2N/A
2N/A# Define Objects
2N/A#
2N/ABLADE_OBJS = blade.o
2N/A
2N/A#
2N/A# Option conf file
2N/ABLADE_OPTION = options
2N/A
2N/A#
2N/A# Include the makefiles which define build rule templates, the
2N/A# collection of files per module, and a few specific flags. Note
2N/A# that order is significant, just as with an include path. The
2N/A# first build rule template which matches the files name will be
2N/A# used. By including these in order from most machine dependent
2N/A# to most machine independent, we allow a machine dependent file
2N/A# to be used in preference over a machine independent version
2N/A# (Such as a machine specific optimization, which preserves the
2N/A# interfaces.)
2N/A#
2N/A
2N/Ainclude $(UTSTREE)/sun4u/blade/Makefile.files
2N/A
2N/A#
2N/A# Include common rules.
2N/A#
2N/Ainclude $(UTSTREE)/sun4u/Makefile.sun4u
2N/A
2N/A#
2N/A# Define modules (must come after Makefile.sun4u, for CLOSED_BUILD).
2N/A#
2N/ABLADE_KMODS = platmod
2N/A$(CLOSED_BUILD)CLOSED_BLADE_KMODS += bscbus
2N/A$(CLOSED_BUILD)CLOSED_BLADE_KMODS += bscv
2N/A
2N/ALINTS_DIR = $(OBJS_DIR)
2N/ALINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/blade/lint-libs/$(OBJS_DIR)
2N/ALINT_LIB= $(UTSBASE)/$(PLATFORM)/lint-libs/$(OBJS_DIR)/llib-lunix.ln
2N/AGEN_LINT_LIB= $(UTSBASE)/$(PLATFORM)/lint-libs/$(OBJS_DIR)/llib-lgenunix.ln
2N/A
2N/A
2N/A#
2N/A# Define the actual specific platforms
2N/A#
2N/AMACHINE_DEFS += -D$(PLATFORM) -D_MACHDEP -DSFMMU
2N/A
2N/A#
2N/A# Define for inline pre-processing since
2N/A# cpp not smart about v9 yet.
2N/A#
2N/A#CPP_DEFS_32 =
2N/A#CPP_DEFS_64 = -D__sparcv9
2N/A#CPP_DEFS = $(CPP_DEFS_$(CLASS))
2N/A
2N/A#
2N/A# For now, disable these lint checks; maintainers should endeavor
2N/A# to investigate and remove these for maximum lint coverage.
2N/A# Please do not carry these forward to new Makefiles.
2N/A#
2N/ALINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
2N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
2N/ALINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
2N/ALINTTAGS += -erroff=E_STATIC_UNUSED
2N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
2N/ALINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
2N/A