3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# CDDL HEADER START
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# The contents of this file are subject to the terms of the
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Common Development and Distribution License (the "License").
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# You may not use this file except in compliance with the License.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# or http://www.opensolaris.org/os/licensing.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# See the License for the specific language governing permissions
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# and limitations under the License.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# When distributing Covered Code, include this CDDL HEADER in each
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# If applicable, add the following below this CDDL HEADER, with the
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# fields enclosed by brackets "[]" replaced with your own identifying
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# information: Portions Copyright [yyyy] [name of copyright owner]
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# CDDL HEADER END
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Use is subject to license terms.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#ident "%Z%%M% %I% %E% SMI"
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Global definitions for sun4u implementation specific modules.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Define the name of this implementation.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Define directories.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevelROOT_LW2PLUS_DIR = $(ROOT_PLAT_DIR)/SUNW,Netra-T4
3db86aab554edbb4244c8d1a1c90f152eee768afstevelROOT_LW2PLUS_MOD_DIR = $(ROOT_LW2PLUS_DIR)/kernel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevelROOT_LW2PLUS_DRV_DIR_32 = $(ROOT_LW2PLUS_MOD_DIR)/drv
3db86aab554edbb4244c8d1a1c90f152eee768afstevelROOT_LW2PLUS_DRV_DIR_64 = $(ROOT_LW2PLUS_MOD_DIR)/drv/$(SUBDIR64)
3db86aab554edbb4244c8d1a1c90f152eee768afstevelROOT_LW2PLUS_DRV_DIR = $(ROOT_LW2PLUS_DRV_DIR_$(CLASS))
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevelROOT_LW2PLUS_MISC_DIR_32 = $(ROOT_LW2PLUS_MOD_DIR)/misc
3db86aab554edbb4244c8d1a1c90f152eee768afstevelROOT_LW2PLUS_MISC_DIR_64 = $(ROOT_LW2PLUS_MOD_DIR)/misc/$(SUBDIR64)
3db86aab554edbb4244c8d1a1c90f152eee768afstevelROOT_LW2PLUS_MISC_DIR = $(ROOT_LW2PLUS_MISC_DIR_$(CLASS))
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevelROOT_LW2PLUS_CRYPTO_DIR_32 = $(ROOT_LW2PLUS_MOD_DIR)/crypto
3db86aab554edbb4244c8d1a1c90f152eee768afstevelROOT_LW2PLUS_CRYPTO_DIR_64 = $(ROOT_LW2PLUS_CRYPTO_DIR_32)/$(SUBDIR64)
3db86aab554edbb4244c8d1a1c90f152eee768afstevelROOT_LW2PLUS_CRYPTO_DIR = $(ROOT_LW2PLUS_CRYPTO_DIR_$(CLASS))
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevelUSR_LW2PLUS_DIR = $(USR_PLAT_DIR)/SUNW,Netra-T4
3db86aab554edbb4244c8d1a1c90f152eee768afstevelUSR_LW2PLUS_INC_DIR = $(USR_LW2PLUS_DIR)/include
3db86aab554edbb4244c8d1a1c90f152eee768afstevelUSR_LW2PLUS_ISYS_DIR = $(USR_LW2PLUS_INC_DIR)/sys
3db86aab554edbb4244c8d1a1c90f152eee768afstevelUSR_LW2PLUS_SBIN_DIR = $(USR_LW2PLUS_DIR)/sbin
3db86aab554edbb4244c8d1a1c90f152eee768afstevelUSR_LW2PLUS_LIB_DIR = $(USR_LW2PLUS_DIR)/lib
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevelLW2PLUS_LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/lw2plus/lint-libs/$(OBJS_DIR)
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Define modules.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevelLW2PLUS_KMODS = lombus
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Include the makefiles which define build rule templates, the
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# collection of files per module, and a few specific flags. Note
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# that order is significant, just as with an include path. The
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# first build rule template which matches the files name will be
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# used. By including these in order from most machine dependent
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# to most machine independent, we allow a machine dependent file
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# to be used in preference over a machine independent version
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# (Such as a machine specific optimization, which preserves the
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# interfaces.)
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Links to UltraSparc III crypto modules
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevelLW2PLUS_CRYPTO_LINKS = aes
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevelinclude $(UTSBASE)/sun4u/lw2plus/Makefile.files
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Include common rules.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevelinclude $(UTSBASE)/sun4u/Makefile.sun4u
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Everybody needs to know how to build modstubs.o and to locate unix.o
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevelUNIX_DIR = $(UTSBASE)/$(PLATFORM)/littleneck/unix
3db86aab554edbb4244c8d1a1c90f152eee768afstevelMODSTUBS_DIR = $(UNIX_DIR)
3db86aab554edbb4244c8d1a1c90f152eee768afstevelDSF_DIR = $(UTSBASE)/$(PLATFORM)/littleneck/genassym
3db86aab554edbb4244c8d1a1c90f152eee768afstevelLINTS_DIR = $(OBJS_DIR)
3db86aab554edbb4244c8d1a1c90f152eee768afstevelLINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/lw2plus/lint-libs/$(OBJS_DIR)
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Define the actual specific platforms
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevelMACHINE_DEFS = -D$(PLATFORM) -D_MACHDEP -DSFMMU -DMP
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Define platform specific values
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#MACHINE_DEFS += -DNCPU=554
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#MACHINE_DEFS += -DMAX_UPA=1024
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#MACHINE_DEFS += -DIGN_SIZE=10
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Max IOSRAM TOC major version number supported
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#MACHINE_DEFS += -DMAX_IOSRAM_TOC_VER=0x1
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Define for inline pre-processing since
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# cpp not smart about v9 yet.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevelCPP_DEFS_32 =
3db86aab554edbb4244c8d1a1c90f152eee768afstevelCPP_DEFS_64 = -D__sparcv9
3db86aab554edbb4244c8d1a1c90f152eee768afstevelCPP_DEFS = $(CPP_DEFS_$(CLASS))
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg#
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# For now, disable these lint checks; maintainers should endeavor
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# to investigate and remove these for maximum lint coverage.
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# Please do not carry these forward to new Makefiles.
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg#
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg