4265 remove INTERNAL_RELEASE_BUILD
[illumos-gate.git] / usr / src / uts / sun4u / starcat / Makefile.starcat.shared
blob15581dc1a46085d3e838f15442aa63c4afb6d076
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
22 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23 # Use is subject to license terms.
25 #ident  "%Z%%M% %I%     %E% SMI"
27 #       Global definitions for sun4u starcat implementation specific modules.
31 #       Define directories.
33 ROOT_STARCAT_DIR        = $(ROOT_PLAT_DIR)/SUNW,Sun-Fire-15000
34 ROOT_STARCAT_MOD_DIR    = $(ROOT_STARCAT_DIR)/kernel
35 ROOT_STARCAT_KERN_DIR_32 = $(ROOT_STARCAT_MOD_DIR)
36 ROOT_STARCAT_KERN_DIR_64 = $(ROOT_STARCAT_MOD_DIR)/$(SUBDIR64)
37 ROOT_STARCAT_MISC_DIR_32 = $(ROOT_STARCAT_MOD_DIR)/misc
38 ROOT_STARCAT_MISC_DIR_64 = $(ROOT_STARCAT_MOD_DIR)/misc/$(SUBDIR64)
39 ROOT_STARCAT_DRV_DIR_32 = $(ROOT_STARCAT_MOD_DIR)/drv
40 ROOT_STARCAT_DRV_DIR_64 = $(ROOT_STARCAT_MOD_DIR)/drv/$(SUBDIR64)
41 ROOT_STARCAT_CPU_DIR_32 = $(ROOT_STARCAT_MOD_DIR)/cpu
42 ROOT_STARCAT_CPU_DIR_64 = $(ROOT_STARCAT_MOD_DIR)/cpu/$(SUBDIR64)
43 ROOT_STARCAT_CRYPTO_DIR_32 = $(ROOT_STARCAT_MOD_DIR)/crypto
44 ROOT_STARCAT_CRYPTO_DIR_64 = $(ROOT_STARCAT_MOD_DIR)/crypto/$(SUBDIR64)
46 ROOT_STARCAT_KERN_DIR   = $(ROOT_STARCAT_KERN_DIR_$(CLASS))
47 ROOT_STARCAT_MISC_DIR   = $(ROOT_STARCAT_MISC_DIR_$(CLASS))
48 ROOT_STARCAT_DRV_DIR    = $(ROOT_STARCAT_DRV_DIR_$(CLASS))
49 ROOT_STARCAT_CPU_DIR    = $(ROOT_STARCAT_CPU_DIR_$(CLASS))
50 ROOT_STARCAT_CRYPTO_DIR = $(ROOT_STARCAT_CRYPTO_DIR_$(CLASS))
52 ROOT_PLAT_MOD_DIRS      += $(ROOT_STARCAT_MOD_DIR)
53 ROOT_PLAT_MISC_DIRS_32  += $(ROOT_STARCAT_MISC_DIR_32)
55 USR_STARCAT_DIR = $(USR_PLAT_DIR)/SUNW,Sun-Fire-15000
56 USR_STARCAT_LIB_DIR     = $(USR_STARCAT_DIR)/lib
57 USR_STARCAT_SBIN_DIR    = $(USR_STARCAT_DIR)/sbin
58 USR_STARCAT_INC_DIR     = $(USR_STARCAT_DIR)/include
59 USR_STARCAT_ISYS_DIR    = $(USR_STARCAT_INC_DIR)/sys
61 STARCAT_LINT_LIB_DIR    = $(UTSBASE)/$(PLATFORM)/starcat/lint-libs/$(OBJS_DIR)
64 #       Include the makefiles which define build rule templates, the
65 #       collection of files per module, and a few specific flags. Note
66 #       that order is significant, just as with an include path. The
67 #       first build rule template which matches the files name will be
68 #       used. By including these in order from most machine dependent
69 #       to most machine independent, we allow a machine dependent file
70 #       to be used in preference over a machine independent version
71 #       (Such as a machine specific optimization, which preserves the
72 #       interfaces.)
74 include $(UTSBASE)/sun4u/ngdr/Makefile.files
75 include $(UTSTREE)/sun4u/starcat/Makefile.files
78 #       Include common rules.
80 include $(UTSTREE)/sun4u/Makefile.sun4u
83 #       Define modules
85 STARCAT_KMODS   += axq
86 STARCAT_KMODS   += cvc
87 STARCAT_KMODS   += cvcredir
88 STARCAT_KMODS   += dman
89 STARCAT_KMODS   += dr
90 STARCAT_KMODS   += drmach
91 STARCAT_KMODS   += fcgp2
92 STARCAT_KMODS   += gptwo_pci
93 STARCAT_KMODS   += iosram
94 STARCAT_KMODS   += mboxsc
95 STARCAT_KMODS   += platmod
96 STARCAT_KMODS   += sc_gptwocfg
97 STARCAT_KMODS   += schpc
98 STARCAT_KMODS   += sckmdrv
99 STARCAT_KMODS   += scosmb
102 #       Define CPU modules.
104 STARCAT_CPU_KMODS       += cheetah cheetahplus
107 #       Links to UltraSparc III crypto modules
109 STARCAT_CRYPTO_LINKS    = aes
112 #       Everybody needs to know how to build modstubs.o and to locate unix.o
114 UNIX_DIR        = $(UTSBASE)/$(PLATFORM)/starcat/unix
115 MODSTUBS_DIR    = $(UNIX_DIR)
116 DSF_DIR         = $(UTSBASE)/$(PLATFORM)/starcat/genassym
117 LINTS_DIR       = $(OBJS_DIR)
118 LINT_LIB_DIR    = $(UTSBASE)/$(PLATFORM)/starcat/lint-libs/$(OBJS_DIR)
120 UNIX_O          = $(UNIX_DIR)/$(OBJS_DIR)/unix.o
122 LINT_LIB        = $(LINT_LIB_DIR)/llib-lunix.ln
125 #       Define the actual specific platforms
127 MACHINE_DEFS    = -D$(PLATFORM) -D_MACHDEP -DSFMMU -DMP -DMIXEDCPU_DR_SUPPORTED
128 MACHINE_DEFS    += -D_CPU_SIGNATURE
131 #       Define platform specific value
133 MACHINE_DEFS    += -DNCPU=558
134 MACHINE_DEFS    += -DMAX_CPU_CHIPID=554
135 MACHINE_DEFS    += -DMAX_UPA=1024
136 MACHINE_DEFS    += -DIGN_SIZE=10
137 MACHINE_DEFS    += -DMAX_MEM_NODES=18
140 #       Define for inline pre-processing since
141 #       cpp not smart about v9 yet.
142 #       It's not smart about __sparc either since it only predefines sparc.
143 CPP_DEFS_32     = -D__sparc
144 CPP_DEFS_64     = -D__sparc -D__sparcv9
145 CPP_DEFS        = $(CPP_DEFS_$(CLASS))
148 # For now, disable these lint checks; maintainers should endeavor
149 # to investigate and remove these for maximum lint coverage.
150 # Please do not carry these forward to new Makefiles.
152 LINTTAGS        += -erroff=E_SUSPICIOUS_COMPARISON
153 LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
154 LINTTAGS        += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
155 LINTTAGS        += -erroff=E_STATIC_UNUSED
156 LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW
157 LINTTAGS        += -erroff=E_ASSIGN_NARROW_CONV