xref: /titanic_50/usr/src/uts/sun4u/mpxu/Makefile.mpxu (revision 4f364e7c95ee7fd9d5bbeddc1940e92405bb0e72)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
23#
24
25#
26#	Global definitions for sun4u implementation specific modules.
27#
28
29#
30#	Define the name of this implementation.
31#
32
33#
34#	Define directories.
35#
36ROOT_MPXU_DIR	= $(ROOT_PLAT_DIR)/SUNW,Sun-Fire-V240
37ROOT_MPXU_MOD_DIR	= $(ROOT_MPXU_DIR)/kernel
38
39ROOT_MPXU_DRV_DIR_32	= $(ROOT_MPXU_MOD_DIR)/drv
40ROOT_MPXU_DRV_DIR_64	= $(ROOT_MPXU_MOD_DIR)/drv/$(SUBDIR64)
41ROOT_MPXU_DRV_DIR	= $(ROOT_MPXU_DRV_DIR_$(CLASS))
42
43ROOT_MPXU_MISC_DIR_32	= $(ROOT_MPXU_MOD_DIR)/misc
44ROOT_MPXU_MISC_DIR_64	= $(ROOT_MPXU_MOD_DIR)/misc/$(SUBDIR64)
45ROOT_MPXU_MISC_DIR	= $(ROOT_MPXU_MISC_DIR_$(CLASS))
46
47ROOT_MPXU_CRYPTO_DIR_32	= $(ROOT_MPXU_MOD_DIR)/crypto
48ROOT_MPXU_CRYPTO_DIR_64	= $(ROOT_MPXU_MOD_DIR)/crypto/$(SUBDIR64)
49ROOT_MPXU_CRYPTO_DIR	= $(ROOT_MPXU_CRYPTO_DIR_$(CLASS))
50
51USR_MPXU_DIR		= $(USR_PLAT_DIR)/SUNW,Sun-Fire-V240
52USR_MPXU_INC_DIR	= $(USR_MPXU_DIR)/include
53USR_MPXU_ISYS_DIR	= $(USR_MPXU_INC_DIR)/sys
54USR_MPXU_SBIN_DIR	= $(USR_MPXU_DIR)/sbin
55USR_MPXU_SBIN_PRTDIAG	= $(USR_MPXU_SBIN_DIR)/prtdiag
56USR_MPXU_SBIN_FRUADM	= $(USR_MPXU_SBIN_DIR)/fruadm
57USR_MPXU_LIB_DIR	= $(USR_MPXU_DIR)/lib
58
59MPXU_LINT_LIB_DIR	= $(UTSBASE)/$(PLATFORM)/mpxu/lint-libs/$(OBJS_DIR)
60
61#
62# Links to UltraSparc III crypto modules
63#
64MPXU_CRYPTO_LINKS	= aes
65
66#
67#       Include the makefiles which define build rule templates, the
68#       collection of files per module, and a few specific flags. Note
69#       that order is significant, just as with an include path. The
70#       first build rule template which matches the files name will be
71#       used. By including these in order from most machine dependent
72#       to most machine independent, we allow a machine dependent file
73#       to be used in preference over a machine independent version
74#       (Such as a machine specific optimization, which preserves the
75#       interfaces.)
76#
77
78include $(UTSBASE)/sun4u/mpxu/Makefile.files
79#
80#	Include common rules.
81#
82
83include $(UTSBASE)/sun4u/Makefile.sun4u
84
85#
86#	Define modules (must come after Makefile.sun4u).
87#
88MPXU_KMODS	= tsalarm
89
90MODSTUBS_DIR	= $(UNIX_DIR)
91LINTS_DIR	= $(OBJS_DIR)
92LINT_LIB_DIR	= $(UTSBASE)/$(PLATFORM)/mpxu/lint-libs/$(OBJS_DIR)
93
94#
95#       Define the actual specific platforms
96#
97MACHINE_DEFS	= -D$(PLATFORM) -D_MACHDEP -DSFMMU -DMP
98
99#
100#	Define platform specific values
101#
102#MACHINE_DEFS	+= -DNCPU=554
103#MACHINE_DEFS	+= -DMAX_UPA=1024
104#MACHINE_DEFS	+= -DIGN_SIZE=10
105# Max IOSRAM TOC major version number supported
106#MACHINE_DEFS	+= -DMAX_IOSRAM_TOC_VER=0x1
107
108#       Define for inline pre-processing since
109#       cpp not smart about v9 yet.
110#
111CPP_DEFS_32   =
112CPP_DEFS_64   = -D__sparcv9
113CPP_DEFS      = $(CPP_DEFS_$(CLASS))
114
115#
116# For now, disable these lint checks; maintainers should endeavor
117# to investigate and remove these for maximum lint coverage.
118# Please do not carry these forward to new Makefiles.
119#
120LINTTAGS	+= -erroff=E_SUSPICIOUS_COMPARISON
121LINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
122LINTTAGS	+= -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
123LINTTAGS	+= -erroff=E_STATIC_UNUSED
124LINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
125LINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
126