1*92d53ff1SJosef 'Jeff' Sipek# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*92d53ff1SJosef 'Jeff' Sipek# Common Development and Distribution License (the "License"). 6*92d53ff1SJosef 'Jeff' Sipek# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 21*92d53ff1SJosef 'Jeff' Sipek# 22*92d53ff1SJosef 'Jeff' Sipek# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 25*92d53ff1SJosef 'Jeff' Sipek# Global definitions for sun4u jbos-blade implementation specific modules. 267c478bd9Sstevel@tonic-gate# 277c478bd9Sstevel@tonic-gate 28*92d53ff1SJosef 'Jeff' Sipek# 29*92d53ff1SJosef 'Jeff' Sipek# Define directories. 30*92d53ff1SJosef 'Jeff' Sipek# 31*92d53ff1SJosef 'Jeff' SipekROOT_BLADE_DIR = $(ROOT_PLAT_DIR)/SUNW,Serverblade1 32*92d53ff1SJosef 'Jeff' SipekROOT_BLADE_MOD_DIR = $(ROOT_BLADE_DIR)/kernel 33*92d53ff1SJosef 'Jeff' SipekROOT_BLADE_MISC_DIR_32 = $(ROOT_BLADE_DIR)/kernel/misc 34*92d53ff1SJosef 'Jeff' SipekROOT_BLADE_MISC_DIR_64 = $(ROOT_BLADE_MISC_DIR_32)/$(SUBDIR64) 35*92d53ff1SJosef 'Jeff' SipekROOT_BLADE_KERN_DIR_32 = $(ROOT_BLADE_MOD_DIR) 36*92d53ff1SJosef 'Jeff' SipekROOT_BLADE_KERN_DIR_64 = $(ROOT_BLADE_MOD_DIR)/$(SUBDIR64) 37*92d53ff1SJosef 'Jeff' SipekROOT_BLADE_DRV_DIR_32 = $(ROOT_BLADE_MOD_DIR)/drv 38*92d53ff1SJosef 'Jeff' SipekROOT_BLADE_DRV_DIR_64 = $(ROOT_BLADE_MOD_DIR)/drv/$(SUBDIR64) 397c478bd9Sstevel@tonic-gate 40*92d53ff1SJosef 'Jeff' SipekROOT_BLADE_KERN_DIR = $(ROOT_BLADE_KERN_DIR_$(CLASS)) 41*92d53ff1SJosef 'Jeff' SipekROOT_BLADE_DRV_DIR = $(ROOT_BLADE_DRV_DIR_$(CLASS)) 42*92d53ff1SJosef 'Jeff' SipekROOT_BLADE_MISC_DIR = $(ROOT_BLADE_MISC_DIR_$(CLASS)) 43*92d53ff1SJosef 'Jeff' Sipek 44*92d53ff1SJosef 'Jeff' SipekROOT_PLAT_MOD_DIRS += $(ROOT_BLADE_MOD_DIR) 45*92d53ff1SJosef 'Jeff' SipekROOT_PLAT_MISC_DIRS += $(ROOT_BLADE_MISC_DIR) 46*92d53ff1SJosef 'Jeff' Sipek 47*92d53ff1SJosef 'Jeff' Sipek 48*92d53ff1SJosef 'Jeff' SipekUSR_SUN4U_PLAT_DIR = $(USR_PLAT_DIR)/sun4u 49*92d53ff1SJosef 'Jeff' SipekUSR_BLADE_DIR = $(USR_PLAT_DIR)/SUNW,Serverblade1 50*92d53ff1SJosef 'Jeff' SipekUSR_BLADE_INC_DIR = $(USR_BLADE_DIR)/include 51*92d53ff1SJosef 'Jeff' SipekUSR_BLADE_ISYS_DIR = $(USR_BLADE_INC_DIR)/sys 52*92d53ff1SJosef 'Jeff' SipekUSR_BLADE_SBIN_DIR = $(USR_BLADE_DIR)/sbin 53*92d53ff1SJosef 'Jeff' SipekUSR_BLADE_LIB_DIR = $(USR_BLADE_DIR)/lib 54*92d53ff1SJosef 'Jeff' Sipek 55*92d53ff1SJosef 'Jeff' Sipek 56*92d53ff1SJosef 'Jeff' SipekBLADE_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/blade/lint-libs/$(OBJS_DIR) 57*92d53ff1SJosef 'Jeff' Sipek 58*92d53ff1SJosef 'Jeff' Sipek 59*92d53ff1SJosef 'Jeff' Sipek# Define Objects 60*92d53ff1SJosef 'Jeff' Sipek# 61*92d53ff1SJosef 'Jeff' SipekBLADE_OBJS = blade.o 62*92d53ff1SJosef 'Jeff' Sipek 63*92d53ff1SJosef 'Jeff' Sipek# 64*92d53ff1SJosef 'Jeff' Sipek# Option conf file 65*92d53ff1SJosef 'Jeff' SipekBLADE_OPTION = options 66*92d53ff1SJosef 'Jeff' Sipek 67*92d53ff1SJosef 'Jeff' Sipek# 68*92d53ff1SJosef 'Jeff' Sipek# Include the makefiles which define build rule templates, the 69*92d53ff1SJosef 'Jeff' Sipek# collection of files per module, and a few specific flags. Note 70*92d53ff1SJosef 'Jeff' Sipek# that order is significant, just as with an include path. The 71*92d53ff1SJosef 'Jeff' Sipek# first build rule template which matches the files name will be 72*92d53ff1SJosef 'Jeff' Sipek# used. By including these in order from most machine dependent 73*92d53ff1SJosef 'Jeff' Sipek# to most machine independent, we allow a machine dependent file 74*92d53ff1SJosef 'Jeff' Sipek# to be used in preference over a machine independent version 75*92d53ff1SJosef 'Jeff' Sipek# (Such as a machine specific optimization, which preserves the 76*92d53ff1SJosef 'Jeff' Sipek# interfaces.) 77*92d53ff1SJosef 'Jeff' Sipek# 78*92d53ff1SJosef 'Jeff' Sipek 79*92d53ff1SJosef 'Jeff' Sipekinclude $(UTSBASE)/sun4u/blade/Makefile.files 80*92d53ff1SJosef 'Jeff' Sipek 81*92d53ff1SJosef 'Jeff' Sipek# 82*92d53ff1SJosef 'Jeff' Sipek# Include common rules. 83*92d53ff1SJosef 'Jeff' Sipek# 84*92d53ff1SJosef 'Jeff' Sipekinclude $(UTSBASE)/sun4u/Makefile.sun4u 85*92d53ff1SJosef 'Jeff' Sipek 86*92d53ff1SJosef 'Jeff' Sipek# 87*92d53ff1SJosef 'Jeff' Sipek# Define modules (must come after Makefile.sun4u). 88*92d53ff1SJosef 'Jeff' Sipek# 89*92d53ff1SJosef 'Jeff' SipekBLADE_KMODS = platmod 90*92d53ff1SJosef 'Jeff' SipekBLADE_KMODS += bscbus 91*92d53ff1SJosef 'Jeff' SipekBLADE_KMODS += bscv 92*92d53ff1SJosef 'Jeff' Sipek 93*92d53ff1SJosef 'Jeff' SipekLINTS_DIR = $(OBJS_DIR) 94*92d53ff1SJosef 'Jeff' SipekLINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/blade/lint-libs/$(OBJS_DIR) 95*92d53ff1SJosef 'Jeff' SipekLINT_LIB= $(UTSBASE)/$(PLATFORM)/lint-libs/$(OBJS_DIR)/llib-lunix.ln 96*92d53ff1SJosef 'Jeff' SipekGEN_LINT_LIB= $(UTSBASE)/$(PLATFORM)/lint-libs/$(OBJS_DIR)/llib-lgenunix.ln 97*92d53ff1SJosef 'Jeff' Sipek 98*92d53ff1SJosef 'Jeff' Sipek 99*92d53ff1SJosef 'Jeff' Sipek# 100*92d53ff1SJosef 'Jeff' Sipek# Define the actual specific platforms 101*92d53ff1SJosef 'Jeff' Sipek# 102*92d53ff1SJosef 'Jeff' SipekMACHINE_DEFS += -D$(PLATFORM) -D_MACHDEP -DSFMMU 103*92d53ff1SJosef 'Jeff' Sipek 104*92d53ff1SJosef 'Jeff' Sipek# 105*92d53ff1SJosef 'Jeff' Sipek# Define for inline pre-processing since 106*92d53ff1SJosef 'Jeff' Sipek# cpp not smart about v9 yet. 107*92d53ff1SJosef 'Jeff' Sipek# 108*92d53ff1SJosef 'Jeff' Sipek#CPP_DEFS_32 = 109*92d53ff1SJosef 'Jeff' Sipek#CPP_DEFS_64 = -D__sparcv9 110*92d53ff1SJosef 'Jeff' Sipek#CPP_DEFS = $(CPP_DEFS_$(CLASS)) 111*92d53ff1SJosef 'Jeff' Sipek 112*92d53ff1SJosef 'Jeff' Sipek# 113*92d53ff1SJosef 'Jeff' Sipek# For now, disable these lint checks; maintainers should endeavor 114*92d53ff1SJosef 'Jeff' Sipek# to investigate and remove these for maximum lint coverage. 115*92d53ff1SJosef 'Jeff' Sipek# Please do not carry these forward to new Makefiles. 116*92d53ff1SJosef 'Jeff' Sipek# 117*92d53ff1SJosef 'Jeff' SipekLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON 118*92d53ff1SJosef 'Jeff' SipekLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 119*92d53ff1SJosef 'Jeff' SipekLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED 120*92d53ff1SJosef 'Jeff' SipekLINTTAGS += -erroff=E_STATIC_UNUSED 121*92d53ff1SJosef 'Jeff' SipekLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 122*92d53ff1SJosef 'Jeff' SipekLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 123