xref: /titanic_50/usr/src/uts/sun4u/lw2plus/Makefile.lw2plus (revision c77a61a72b5ecdc507d6cf104142edd371a16c84)
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#
23# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29#
30#	Global definitions for sun4u implementation specific modules.
31#
32
33#
34#	Define the name of this implementation.
35#
36
37#
38#	Define directories.
39#
40ROOT_LW2PLUS_DIR	= $(ROOT_PLAT_DIR)/SUNW,Netra-T4
41ROOT_LW2PLUS_MOD_DIR	= $(ROOT_LW2PLUS_DIR)/kernel
42
43ROOT_LW2PLUS_DRV_DIR_32	= $(ROOT_LW2PLUS_MOD_DIR)/drv
44ROOT_LW2PLUS_DRV_DIR_64	= $(ROOT_LW2PLUS_MOD_DIR)/drv/$(SUBDIR64)
45ROOT_LW2PLUS_DRV_DIR	= $(ROOT_LW2PLUS_DRV_DIR_$(CLASS))
46
47ROOT_LW2PLUS_MISC_DIR_32	= $(ROOT_LW2PLUS_MOD_DIR)/misc
48ROOT_LW2PLUS_MISC_DIR_64	= $(ROOT_LW2PLUS_MOD_DIR)/misc/$(SUBDIR64)
49ROOT_LW2PLUS_MISC_DIR	= $(ROOT_LW2PLUS_MISC_DIR_$(CLASS))
50
51ROOT_LW2PLUS_CRYPTO_DIR_32	= $(ROOT_LW2PLUS_MOD_DIR)/crypto
52ROOT_LW2PLUS_CRYPTO_DIR_64	= $(ROOT_LW2PLUS_CRYPTO_DIR_32)/$(SUBDIR64)
53ROOT_LW2PLUS_CRYPTO_DIR		= $(ROOT_LW2PLUS_CRYPTO_DIR_$(CLASS))
54
55USR_LW2PLUS_DIR		= $(USR_PLAT_DIR)/SUNW,Netra-T4
56USR_LW2PLUS_INC_DIR	= $(USR_LW2PLUS_DIR)/include
57USR_LW2PLUS_ISYS_DIR	= $(USR_LW2PLUS_INC_DIR)/sys
58USR_LW2PLUS_SBIN_DIR	= $(USR_LW2PLUS_DIR)/sbin
59USR_LW2PLUS_LIB_DIR	= $(USR_LW2PLUS_DIR)/lib
60
61LW2PLUS_LINT_LIB_DIR	= $(UTSBASE)/$(PLATFORM)/lw2plus/lint-libs/$(OBJS_DIR)
62
63#
64#	Define modules.
65#
66LW2PLUS_KMODS	= lombus
67#
68#       Include the makefiles which define build rule templates, the
69#       collection of files per module, and a few specific flags. Note
70#       that order is significant, just as with an include path. The
71#       first build rule template which matches the files name will be
72#       used. By including these in order from most machine dependent
73#       to most machine independent, we allow a machine dependent file
74#       to be used in preference over a machine independent version
75#       (Such as a machine specific optimization, which preserves the
76#       interfaces.)
77#
78
79#
80#	Links to UltraSparc III crypto modules
81#
82LW2PLUS_CRYPTO_LINKS	= aes
83
84include $(UTSBASE)/sun4u/lw2plus/Makefile.files
85#
86#	Include common rules.
87#
88
89include $(UTSBASE)/sun4u/Makefile.sun4u
90#
91#       Everybody needs to know how to build modstubs.o and to locate unix.o
92#
93UNIX_DIR	= $(UTSBASE)/$(PLATFORM)/littleneck/unix
94MODSTUBS_DIR	= $(UNIX_DIR)
95DSF_DIR		= $(UTSBASE)/$(PLATFORM)/littleneck/genassym
96LINTS_DIR	= $(OBJS_DIR)
97LINT_LIB_DIR	= $(UTSBASE)/$(PLATFORM)/lw2plus/lint-libs/$(OBJS_DIR)
98
99#
100#       Define the actual specific platforms
101#
102MACHINE_DEFS	= -D$(PLATFORM) -D_MACHDEP -DSFMMU -DMP
103
104#
105#	Define platform specific values
106#
107#MACHINE_DEFS	+= -DNCPU=554
108#MACHINE_DEFS	+= -DMAX_UPA=1024
109#MACHINE_DEFS	+= -DIGN_SIZE=10
110# Max IOSRAM TOC major version number supported
111#MACHINE_DEFS	+= -DMAX_IOSRAM_TOC_VER=0x1
112
113#       Define for inline pre-processing since
114#       cpp not smart about v9 yet.
115#
116CPP_DEFS_32   =
117CPP_DEFS_64   = -D__sparcv9
118CPP_DEFS      = $(CPP_DEFS_$(CLASS))
119
120#
121# For now, disable these lint checks; maintainers should endeavor
122# to investigate and remove these for maximum lint coverage.
123# Please do not carry these forward to new Makefiles.
124#
125LINTTAGS	+= -erroff=E_SUSPICIOUS_COMPARISON
126LINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
127LINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
128
129