13db86aabSstevel# 23db86aabSstevel# CDDL HEADER START 33db86aabSstevel# 43db86aabSstevel# The contents of this file are subject to the terms of the 53db86aabSstevel# Common Development and Distribution License (the "License"). 63db86aabSstevel# You may not use this file except in compliance with the License. 73db86aabSstevel# 83db86aabSstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 93db86aabSstevel# or http://www.opensolaris.org/os/licensing. 103db86aabSstevel# See the License for the specific language governing permissions 113db86aabSstevel# and limitations under the License. 123db86aabSstevel# 133db86aabSstevel# When distributing Covered Code, include this CDDL HEADER in each 143db86aabSstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 153db86aabSstevel# If applicable, add the following below this CDDL HEADER, with the 163db86aabSstevel# fields enclosed by brackets "[]" replaced with your own identifying 173db86aabSstevel# information: Portions Copyright [yyyy] [name of copyright owner] 183db86aabSstevel# 193db86aabSstevel# CDDL HEADER END 203db86aabSstevel# 213db86aabSstevel 223db86aabSstevel# 233db86aabSstevel# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 243db86aabSstevel# Use is subject to license terms. 253db86aabSstevel# 263db86aabSstevel#ident "%Z%%M% %I% %E% SMI" 273db86aabSstevel# 283db86aabSstevel 293db86aabSstevel# 303db86aabSstevel# Global definitions for sun4u implementation specific modules. 313db86aabSstevel# 323db86aabSstevel 333db86aabSstevel# 343db86aabSstevel# Define the name of this implementation. 353db86aabSstevel# 363db86aabSstevel 373db86aabSstevel# 383db86aabSstevel# Define directories. 393db86aabSstevel# 403db86aabSstevelROOT_LW2PLUS_DIR = $(ROOT_PLAT_DIR)/SUNW,Netra-T4 413db86aabSstevelROOT_LW2PLUS_MOD_DIR = $(ROOT_LW2PLUS_DIR)/kernel 423db86aabSstevel 433db86aabSstevelROOT_LW2PLUS_DRV_DIR_32 = $(ROOT_LW2PLUS_MOD_DIR)/drv 443db86aabSstevelROOT_LW2PLUS_DRV_DIR_64 = $(ROOT_LW2PLUS_MOD_DIR)/drv/$(SUBDIR64) 453db86aabSstevelROOT_LW2PLUS_DRV_DIR = $(ROOT_LW2PLUS_DRV_DIR_$(CLASS)) 463db86aabSstevel 473db86aabSstevelROOT_LW2PLUS_MISC_DIR_32 = $(ROOT_LW2PLUS_MOD_DIR)/misc 483db86aabSstevelROOT_LW2PLUS_MISC_DIR_64 = $(ROOT_LW2PLUS_MOD_DIR)/misc/$(SUBDIR64) 493db86aabSstevelROOT_LW2PLUS_MISC_DIR = $(ROOT_LW2PLUS_MISC_DIR_$(CLASS)) 503db86aabSstevel 513db86aabSstevelROOT_LW2PLUS_CRYPTO_DIR_32 = $(ROOT_LW2PLUS_MOD_DIR)/crypto 523db86aabSstevelROOT_LW2PLUS_CRYPTO_DIR_64 = $(ROOT_LW2PLUS_CRYPTO_DIR_32)/$(SUBDIR64) 533db86aabSstevelROOT_LW2PLUS_CRYPTO_DIR = $(ROOT_LW2PLUS_CRYPTO_DIR_$(CLASS)) 543db86aabSstevel 553db86aabSstevelUSR_LW2PLUS_DIR = $(USR_PLAT_DIR)/SUNW,Netra-T4 563db86aabSstevelUSR_LW2PLUS_INC_DIR = $(USR_LW2PLUS_DIR)/include 573db86aabSstevelUSR_LW2PLUS_ISYS_DIR = $(USR_LW2PLUS_INC_DIR)/sys 583db86aabSstevelUSR_LW2PLUS_SBIN_DIR = $(USR_LW2PLUS_DIR)/sbin 593db86aabSstevelUSR_LW2PLUS_LIB_DIR = $(USR_LW2PLUS_DIR)/lib 603db86aabSstevel 613db86aabSstevelLW2PLUS_LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/lw2plus/lint-libs/$(OBJS_DIR) 623db86aabSstevel 633db86aabSstevel# 643db86aabSstevel# Define modules. 653db86aabSstevel# 663db86aabSstevelLW2PLUS_KMODS = lombus 673db86aabSstevel# 683db86aabSstevel# Include the makefiles which define build rule templates, the 693db86aabSstevel# collection of files per module, and a few specific flags. Note 703db86aabSstevel# that order is significant, just as with an include path. The 713db86aabSstevel# first build rule template which matches the files name will be 723db86aabSstevel# used. By including these in order from most machine dependent 733db86aabSstevel# to most machine independent, we allow a machine dependent file 743db86aabSstevel# to be used in preference over a machine independent version 753db86aabSstevel# (Such as a machine specific optimization, which preserves the 763db86aabSstevel# interfaces.) 773db86aabSstevel# 783db86aabSstevel 793db86aabSstevel# 803db86aabSstevel# Links to UltraSparc III crypto modules 813db86aabSstevel# 823db86aabSstevelLW2PLUS_CRYPTO_LINKS = aes 833db86aabSstevel 843db86aabSstevelinclude $(UTSBASE)/sun4u/lw2plus/Makefile.files 853db86aabSstevel# 863db86aabSstevel# Include common rules. 873db86aabSstevel# 883db86aabSstevel 893db86aabSstevelinclude $(UTSBASE)/sun4u/Makefile.sun4u 903db86aabSstevel# 913db86aabSstevel# Everybody needs to know how to build modstubs.o and to locate unix.o 923db86aabSstevel# 933db86aabSstevelUNIX_DIR = $(UTSBASE)/$(PLATFORM)/littleneck/unix 943db86aabSstevelMODSTUBS_DIR = $(UNIX_DIR) 953db86aabSstevelDSF_DIR = $(UTSBASE)/$(PLATFORM)/littleneck/genassym 963db86aabSstevelLINTS_DIR = $(OBJS_DIR) 973db86aabSstevelLINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/lw2plus/lint-libs/$(OBJS_DIR) 983db86aabSstevel 993db86aabSstevel# 1003db86aabSstevel# Define the actual specific platforms 1013db86aabSstevel# 1023db86aabSstevelMACHINE_DEFS = -D$(PLATFORM) -D_MACHDEP -DSFMMU -DMP 1033db86aabSstevel 1043db86aabSstevel# 1053db86aabSstevel# Define platform specific values 1063db86aabSstevel# 1073db86aabSstevel#MACHINE_DEFS += -DNCPU=554 1083db86aabSstevel#MACHINE_DEFS += -DMAX_UPA=1024 1093db86aabSstevel#MACHINE_DEFS += -DIGN_SIZE=10 1103db86aabSstevel# Max IOSRAM TOC major version number supported 1113db86aabSstevel#MACHINE_DEFS += -DMAX_IOSRAM_TOC_VER=0x1 1123db86aabSstevel 1133db86aabSstevel# Define for inline pre-processing since 1143db86aabSstevel# cpp not smart about v9 yet. 1153db86aabSstevel# 1163db86aabSstevelCPP_DEFS_32 = 1173db86aabSstevelCPP_DEFS_64 = -D__sparcv9 1183db86aabSstevelCPP_DEFS = $(CPP_DEFS_$(CLASS)) 1193db86aabSstevel 120*bb25c06cSjg# 121*bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor 122*bb25c06cSjg# to investigate and remove these for maximum lint coverage. 123*bb25c06cSjg# Please do not carry these forward to new Makefiles. 124*bb25c06cSjg# 125*bb25c06cSjgLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON 126*bb25c06cSjgLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 127*bb25c06cSjgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 128*bb25c06cSjg 129