Print this page
4027 remove CLOSED_BUILD
4028 remove CLOSED_IS_PRESENT
4029 remove tonic build bits
Reviewed by: Andy Stormont <andyjstormont@gmail.com>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/sun4u/opl/Makefile.opl.shared
+++ new/usr/src/uts/sun4u/opl/Makefile.opl.shared
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 #
24 24 # Global definitions for sun4u opl implementation specific modules.
25 25 #
26 26 # uts/sun4u/opl/Makefile.opl
27 27 #
28 28
29 29 #
30 30 # Define directories.
31 31 #
32 32 #
33 33 #
34 34 ROOT_OPL_DIR = $(ROOT_PLAT_DIR)/SUNW,SPARC-Enterprise
35 35 ROOT_OPL_MOD_DIR = $(ROOT_OPL_DIR)/kernel
36 36 ROOT_OPL_KERN_DIR_32 = $(ROOT_OPL_MOD_DIR)
37 37 ROOT_OPL_KERN_DIR_64 = $(ROOT_OPL_MOD_DIR)/$(SUBDIR64)
38 38 ROOT_OPL_MISC_DIR_32 = $(ROOT_OPL_MOD_DIR)/misc
39 39 ROOT_OPL_MISC_DIR_64 = $(ROOT_OPL_MOD_DIR)/misc/$(SUBDIR64)
40 40 ROOT_OPL_DRV_DIR_32 = $(ROOT_OPL_MOD_DIR)/drv
41 41 ROOT_OPL_DRV_DIR_64 = $(ROOT_OPL_MOD_DIR)/drv/$(SUBDIR64)
42 42 ROOT_OPL_CPU_DIR_32 = $(ROOT_OPL_MOD_DIR)/cpu
43 43 ROOT_OPL_CPU_DIR_64 = $(ROOT_OPL_MOD_DIR)/cpu/$(SUBDIR64)
44 44 ROOT_OPL_CRYPTO_DIR_32 = $(ROOT_OPL_MOD_DIR)/crypto
45 45 ROOT_OPL_CRYPTO_DIR_64 = $(ROOT_OPL_MOD_DIR)/crypto/$(SUBDIR64)
46 46
47 47 ROOT_OPL_KERN_DIR = $(ROOT_OPL_KERN_DIR_$(CLASS))
48 48 ROOT_OPL_MISC_DIR = $(ROOT_OPL_MISC_DIR_$(CLASS))
49 49 ROOT_OPL_DRV_DIR = $(ROOT_OPL_DRV_DIR_$(CLASS))
50 50 ROOT_OPL_CPU_DIR = $(ROOT_OPL_CPU_DIR_$(CLASS))
51 51 ROOT_OPL_CRYPTO_DIR = $(ROOT_OPL_CRYPTO_DIR_$(CLASS))
52 52
53 53 ROOT_PLAT_MOD_DIRS += $(ROOT_OPL_MOD_DIR)
54 54 ROOT_PLAT_MISC_DIRS_32 += $(ROOT_OPL_MISC_DIR_32)
55 55
56 56 USR_OPL_DIR = $(USR_PLAT_DIR)/SUNW,SPARC-Enterprise
57 57 USR_OPL_LIB_DIR = $(USR_OPL_DIR)/lib
58 58 USR_OPL_SBIN_DIR = $(USR_OPL_DIR)/sbin
59 59 USR_OPL_SBIN_PRTDIAG = $(USR_OPL_SBIN_DIR)/prtdiag
60 60 USR_OPL_SBIN_FRUADM = $(USR_OPL_SBIN_DIR)/fruadm
61 61 USR_OPL_INC_DIR = $(USR_OPL_DIR)/include
62 62 USR_OPL_ISYS_DIR = $(USR_OPL_INC_DIR)/sys
63 63
64 64 OPL_LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/opl/lint-libs/$(OBJS_DIR)
65 65 OPLMSU_OPTION = options
66 66
67 67 #
68 68 # Define modules.
69 69 #
70 70 OPL_KMODS = platmod
71 71 OPL_KMODS += dm2s
72 72 OPL_KMODS += oplkmdrv
73 73 OPL_KMODS += pcicmu
74 74 OPL_KMODS += oplpanel
75 75 OPL_KMODS += dr .WAIT drmach
76 76 OPL_KMODS += oplmsu
77 77 OPL_KMODS += mc-opl
78 78
79 79 #
80 80 # CPU modules.
81 81 #
82 82 OPL_CPU_KMODS += olympus_c
83 83
84 84 # Links to OPL crypto modules
85 85 #
86 86 OPL_CRYPTO_LINKS = aes
87 87
88 88 #
89 89 # Include the makefiles which define build rule templates, the
90 90 # collection of files per module, and a few specific flags. Note
91 91 # that order is significant, just as with an include path. The
92 92 # first build rule template which matches the files name will be
93 93 # used. By including these in order from most machine dependent
94 94 # to most machine independent, we allow a machine dependent file
95 95 # to be used in preference over a machine independent version
96 96 # (Such as a machine specific optimization, which preserves the
97 97 # interfaces.)
↓ open down ↓ |
97 lines elided |
↑ open up ↑ |
98 98 #
99 99 include $(UTSBASE)/sun4u/ngdr/Makefile.files
100 100 include $(UTSTREE)/sun4u/opl/Makefile.files
101 101
102 102 #
103 103 # Include common rules.
104 104 #
105 105 include $(UTSTREE)/sun4u/Makefile.sun4u
106 106
107 107 #
108 -# Define closed modules (must come after Makefile.sun4u for CLOSED_BUILD).
109 -#
110 -$(CLOSED_BUILD)CLOSED_OPL_KMODS = scfd
111 -
112 -#
113 108 # Everybody needs to know how to build modstubs.o and to locate unix.o
114 109 #
115 110 UNIX_DIR = $(UTSBASE)/$(PLATFORM)/opl/unix
116 111 MODSTUBS_DIR = $(UNIX_DIR)
117 112 DSF_DIR = $(UTSBASE)/$(PLATFORM)/opl/genassym
118 113 LINTS_DIR = $(OBJS_DIR)
119 114 LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/opl/lint-libs/$(OBJS_DIR)
120 115
121 116 UNIX_O = $(UNIX_DIR)/$(OBJS_DIR)/unix.o
122 117
123 118 LINT_LIB = $(LINT_LIB_DIR)/llib-lunix.ln
124 119
125 120 #
126 121 # Define the actual specific platforms
127 122 #
128 123 MACHINE_DEFS = -D$(PLATFORM) -D_MACHDEP -DSFMMU -DMP
129 124 MACHINE_DEFS += -D_CPU_SIGNATURE
130 125
131 126 #
132 127 # Maximum CPUID = 01111 11 01 1 = 0x1FB (507)
133 128 # Maximum CHIPID = 1 01111 11 00 0 = 0x5F8 (1528)
134 129 #
135 130 MACHINE_DEFS += -DNCPU=512
136 131 MACHINE_DEFS += -DMAX_CPU_CHIPID=1529
137 132 MACHINE_DEFS += -DMAX_UPA=256
138 133 MACHINE_DEFS += -DIGN_SIZE=8
139 134 MACHINE_DEFS += -DMAX_MEM_NODES=16
140 135 #
141 136 # UTSB_PHYS will enable user TSB physical access for TL>0
142 137 #
143 138 MACHINE_DEFS += -DUTSB_PHYS
144 139 MACHINE_DEFS += -D_OPL
145 140 MACHINE_DEFS += -DOLYMPUS_SHARED_FTLB
146 141 MACHINE_DEFS += -D_CMP_NO_ERROR_STEERING -D_HW_MEMSCRUB_SUPPORT
147 142 MACHINE_DEFS += -DDO_CORELEVEL_LOADBAL
148 143 MACHINE_DEFS += -DITLB_32M_256M_SUPPORT
149 144 #
150 145 # OLYMPUS C cross-call erratas.
151 146 # - revision A can only deliver one xcall at a time.
152 147 # - revision B can dispatch xcalls to 31 (IDSR_BN_SETS) CPUs at a time,
153 148 # but it can not send more xcalls until all the pending xcalls are
154 149 # dispatched. In other words, all previous 31 xcall slots must be
155 150 # in non-busy state before further xcalls can be issued.
156 151 MACHINE_DEFS += -DOLYMPUS_C_REV_A_ERRATA_XCALL
157 152 MACHINE_DEFS += -DOLYMPUS_C_REV_B_ERRATA_XCALL
158 153 #
159 154 # OLYMPUS C Spurious interrupts
160 155 # - When an UE is detected in a interrupt packet,
161 156 # Olympus-C takes an interrupt_vector_trap (TT=0x60) while
162 157 # ASI_INTR_RECIEVE.BUSY is set to zero to indicate the existence
163 158 # of the error. Software will see this as a spurious interrupt since
164 159 # the interrupt busy bit is set to zero. SW will still need to
165 160 # explicitly clear the interrupt busy bit to reset the HW state.
166 161 # Failure to do so will result in the processor continuously taking
167 162 # an interrupt vector trap when PSTATE.IE is reset to one.
168 163 # Note that UE in interrupt packet is reported to the SP and handled
169 164 # accordingly. For the domain, the system should panic as it is not
170 165 # recoverable.
171 166 MACHINE_DEFS += -DCLEAR_INTR_BUSYBIT_ON_SPURIOUS
172 167
173 168 #
174 169 # For now, disable these lint checks; maintainers should endeavor
175 170 # to investigate and remove these for maximum lint coverage.
176 171 # Please do not carry these forward to new Makefiles.
177 172 #
178 173 LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
179 174 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
180 175 LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
181 176 LINTTAGS += -erroff=E_STATIC_UNUSED
182 177 LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
183 178 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
184 179
185 180 .KEEP_STATE:
↓ open down ↓ |
63 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX