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