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.
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.
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]
22 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
27 # Global definitions for sun4u implementation specific modules.
31 # Define the name of this implementation.
37 ROOT_SERENGETI_DIR = $(ROOT_PLAT_DIR)/SUNW,Sun-Fire
38 ROOT_SERENGETI_MOD_DIR = $(ROOT_SERENGETI_DIR)/kernel
40 ROOT_SERENGETI_KERN_DIR_32 = $(ROOT_SERENGETI_MOD_DIR)
41 ROOT_SERENGETI_KERN_DIR_64 = $(ROOT_SERENGETI_MOD_DIR)/$(SUBDIR64)
42 ROOT_SERENGETI_KERN_DIR = $(ROOT_SERENGETI_KERN_DIR_$(CLASS))
44 ROOT_SERENGETI_CPU_DIR_32 = $(ROOT_SERENGETI_MOD_DIR)/cpu
45 ROOT_SERENGETI_CPU_DIR_64 = $(ROOT_SERENGETI_MOD_DIR)/cpu/$(SUBDIR64)
46 ROOT_SERENGETI_CPU_DIR = $(ROOT_SERENGETI_CPU_DIR_$(CLASS))
48 ROOT_SERENGETI_DRV_DIR_32 = $(ROOT_SERENGETI_MOD_DIR)/drv
49 ROOT_SERENGETI_DRV_DIR_64 = $(ROOT_SERENGETI_MOD_DIR)/drv/$(SUBDIR64)
50 ROOT_SERENGETI_DRV_DIR = $(ROOT_SERENGETI_DRV_DIR_$(CLASS))
52 ROOT_SERENGETI_MISC_DIR_32 = $(ROOT_SERENGETI_MOD_DIR)/misc
53 ROOT_SERENGETI_MISC_DIR_64 = $(ROOT_SERENGETI_MOD_DIR)/misc/$(SUBDIR64)
54 ROOT_SERENGETI_MISC_DIR = $(ROOT_SERENGETI_MISC_DIR_$(CLASS))
56 ROOT_SERENGETI_CRYPTO_DIR_32 = $(ROOT_SERENGETI_MOD_DIR)/crypto
57 ROOT_SERENGETI_CRYPTO_DIR_64 = $(ROOT_SERENGETI_MOD_DIR)/crypto/$(SUBDIR64)
58 ROOT_SERENGETI_CRYPTO_DIR = $(ROOT_SERENGETI_CRYPTO_DIR_$(CLASS))
60 ROOT_PLAT_MOD_DIRS += $(ROOT_SERENGETI_MOD_DIR)
61 ROOT_PLAT_MISC_DIRS_32 += $(ROOT_SERENGETI_MISC_DIR_32)
63 USR_SERENGETI_DIR = $(USR_PLAT_DIR)/SUNW,Sun-Fire
64 USR_SERENGETI_INC_DIR = $(USR_SERENGETI_DIR)/include
65 USR_SERENGETI_ISYS_DIR = $(USR_SERENGETI_INC_DIR)/sys
66 USR_SERENGETI_SBIN_DIR = $(USR_SERENGETI_DIR)/sbin
67 USR_SERENGETI_LIB_DIR = $(USR_SERENGETI_DIR)/lib
69 SERENGETI_LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/serengeti/lint-libs/$(OBJS_DIR)
72 # Include the makefiles which define build rule templates, the
73 # collection of files per module, and a few specific flags. Note
74 # that order is significant, just as with an include path. The
75 # first build rule template which matches the files name will be
76 # used. By including these in order from most machine dependent
77 # to most machine independent, we allow a machine dependent file
78 # to be used in preference over a machine independent version
79 # (Such as a machine specific optimization, which preserves the
84 # Links to UltraSparc III crypto modules
86 SERENGETI_CRYPTO_LINKS += aes
88 include $(UTSBASE)/sun4u/serengeti/Makefile.files
90 # Include common rules.
93 include $(UTSBASE)/sun4u/Makefile.sun4u
98 SERENGETI_KMODS = cheetah cheetahplus
99 SERENGETI_KMODS += platmod sbdp sgcn sghsc sgsbbc ssm
102 # Everybody needs to know how to build modstubs.o and to locate unix.o
104 UNIX_DIR = $(UTSBASE)/$(PLATFORM)/serengeti/unix
105 MODSTUBS_DIR = $(UNIX_DIR)
106 DSF_DIR = $(UTSBASE)/$(PLATFORM)/serengeti/genassym
107 LINTS_DIR = $(OBJS_DIR)
108 LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/serengeti/lint-libs/$(OBJS_DIR)
110 UNIX_O = $(UNIX_DIR)/$(OBJS_DIR)/unix.o
112 LINT_LIB = $(LINT_LIB_DIR)/llib-lunix.ln
115 # Define the actual specific platforms
117 MACHINE_DEFS = -D$(PLATFORM) -D_MACHDEP -DSFMMU -DMP -DMIXEDCPU_DR_SUPPORTED
120 # Define platform specific values
122 MACHINE_DEFS += -DNCPU=558
123 MACHINE_DEFS += -DMAX_CPU_CHIPID=554
124 MACHINE_DEFS += -DMAX_UPA=1024
125 MACHINE_DEFS += -DIGN_SIZE=10
126 MACHINE_DEFS += -DMAX_MEM_NODES=8
127 MACHINE_DEFS += -DLOCKED_DTLB_ENTRIES=6
128 # Max IOSRAM TOC major version number supported
129 MACHINE_DEFS += -DMAX_IOSRAM_TOC_VER=0x1
130 MACHINE_DEFS += -DC_OBP
132 # Define for inline pre-processing since
133 # cpp is not smart about v9 yet.
134 # It's not smart about __sparc either since it only predefines sparc.
135 CPP_DEFS_32 = -D__sparc
136 CPP_DEFS_64 = -D__sparc -D__sparcv9
137 CPP_DEFS = $(CPP_DEFS_$(CLASS))
140 # For now, disable these lint checks; maintainers should endeavor
141 # to investigate and remove these for maximum lint coverage.
142 # Please do not carry these forward to new Makefiles.
144 LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
145 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
146 LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
147 LINTTAGS += -erroff=E_STATIC_UNUSED
148 LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
149 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV