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/sparc/st/Makefile
+++ new/usr/src/uts/sparc/st/Makefile
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 # uts/sparc/st/Makefile
22 22 #
23 23 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 # Copyright (c) 2011 Bayard G. Bell. All rights reserved.
26 26 #
27 27 # This makefile drives the production of the st driver kernel module.
28 28 #
29 29 # sparc architecture dependent
30 30 #
31 31
32 32 #
33 33 # Path to the base of the uts directory tree (usually /usr/src/uts).
34 34 #
35 35 UTSBASE = ../..
36 36
37 37 #
38 38 # Define the module and object file sets.
39 39 #
40 40 MODULE = st
41 41 OBJECTS = $(ST_OBJS:%=$(OBJS_DIR)/%)
42 42 LINTS = $(ST_OBJS:%.o=$(LINTS_DIR)/%.ln)
43 43 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
44 44 CONF_SRCDIR = $(UTSBASE)/sun/io/scsi/targets
45 45 WARLOCK_OUT = $(ST_OBJS:%.o=%.ll)
46 46 WARLOCK_OK = $(MODULE).ok
47 47 WLCMD_DIR = $(UTSBASE)/common/io/warlock
48 48
49 49 #
50 50 # Include common rules.
51 51 #
52 52 include $(UTSBASE)/sparc/Makefile.sparc
53 53
54 54 #
55 55 # Define targets
56 56 #
57 57 ALL_TARGET = $(BINARY) $(SRC_CONFILE)
58 58 LINT_TARGET = $(MODULE).lint
59 59 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
60 60
61 61 #
62 62 # lint pass one enforcement
63 63 #
64 64 CFLAGS += $(CCVERBOSE)
65 65
66 66 #
67 67 # Define dependency on scsi
68 68 #
69 69 LDFLAGS += -dy -N misc/scsi
70 70
71 71 #
72 72 # For now, disable these lint checks; maintainers should endeavor
73 73 # to investigate and remove these for maximum lint coverage.
74 74 # Please do not carry these forward to new Makefiles.
75 75 #
76 76 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
77 77 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
78 78 LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
79 79
80 80 CERRWARN += -_gcc=-Wno-parentheses
81 81 CERRWARN += -_gcc=-Wno-switch
82 82 CERRWARN += -_gcc=-Wno-uninitialized
83 83
84 84 #
85 85 # Default build targets.
86 86 #
87 87 .KEEP_STATE:
88 88
89 89 all: $(ALL_DEPS)
90 90
91 91 def: $(DEF_DEPS)
92 92
93 93 clean: $(CLEAN_DEPS)
94 94 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
95 95
96 96 clobber: $(CLOBBER_DEPS)
97 97 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
98 98
99 99 lint: $(LINT_DEPS)
100 100
101 101 modlintlib: $(MODLINTLIB_DEPS)
102 102
103 103 clean.lint: $(CLEAN_LINT_DEPS)
104 104
105 105 install: $(INSTALL_DEPS)
106 106
107 107 # Include common targets.
108 108 #
109 109 include $(UTSBASE)/sparc/Makefile.targ
110 110
111 111 #
112 112 # Defines for local commands.
113 113 #
114 114 WARLOCK = warlock
115 115 WLCC = wlcc
116 116 TOUCH = touch
117 117 TEST = test
118 118
119 119 #
↓ open down ↓ |
119 lines elided |
↑ open up ↑ |
120 120 # Warlock targets
121 121 #
122 122 # Note that in warlock_with_{esp,isp} it is important to load st.ll
123 123 # before {isp,esp}.ll; the reason is that both have _init/_info/_fini
124 124 # and warlock can only handle one extern function by a given name;
125 125 # any loaded after the first are ignored.
126 126
127 127 SCSI_FILES = $(SCSI_OBJS:%.o=-l ../scsi/%.ll)
128 128
129 129 WARLOCK_TARGETS = warlock_alone warlock_with_esp warlock_with_fas
130 -$(CLOSED_BUILD)WARLOCK_TARGETS += warlock_with_isp warlock_with_glm
131 130
132 131 warlock: $(WARLOCK_TARGETS)
133 132
134 133 warlock_alone: $(WARLOCK_OK)
135 134
136 135 warlock_with_esp: $(WLCMD_DIR)/st_with_esp.wlcmd $(WARLOCK_OUT) scsi_files \
137 136 esp_files warlock_ddi.files
138 137 $(WARLOCK) -c $(WLCMD_DIR)/st_with_esp.wlcmd \
139 138 $(WARLOCK_OUT) ../esp/esp $(SCSI_FILES) \
140 139 -l ../warlock/ddi_dki_impl.ll
141 140
142 141 warlock_with_fas: $(WLCMD_DIR)/st_with_fas.wlcmd $(WARLOCK_OUT) scsi_files \
143 142 fas_files warlock_ddi.files
144 143 $(WARLOCK) -c $(WLCMD_DIR)/st_with_fas.wlcmd \
145 144 $(WARLOCK_OUT) \
146 145 ../fas/fas ../fas/fas_callbacks \
147 146 $(SCSI_FILES) \
148 147 -l ../warlock/ddi_dki_impl.ll
149 148
150 -warlock_with_isp: $(WLCMD_DIR)/st_with_isp.wlcmd $(WARLOCK_OUT) scsi_files \
151 - isp_files warlock_ddi.files
152 - $(WARLOCK) -c $(WLCMD_DIR)/st_with_isp.wlcmd \
153 - $(WARLOCK_OUT) $(CLOSED)/uts/sparc/isp/isp $(SCSI_FILES) \
154 - -l ../warlock/ddi_dki_impl.ll
155 -
156 -warlock_with_glm: $(WLCMD_DIR)/st_with_glm.wlcmd $(WARLOCK_OUT) scsi_files \
157 - glm_files warlock_ddi.files
158 - $(WARLOCK) -c $(WLCMD_DIR)/st_with_glm.wlcmd \
159 - $(WARLOCK_OUT) $(CLOSED)/uts/sparc/glm/glm $(SCSI_FILES) \
160 - -l ../warlock/ddi_dki_impl.ll
161 -
162 149 scsi_files:
163 150 @cd ../scsi; pwd; $(MAKE) warlock
164 151
165 152 esp_files:
166 153 @cd ../esp; pwd; $(MAKE) warlock
167 154
168 155 fas_files:
169 156 @cd ../fas; pwd; $(MAKE) warlock
170 157
171 -isp_files:
172 - @cd $(CLOSED)/uts/sparc/isp; pwd; $(MAKE) warlock
173 -
174 -glm_files:
175 - @cd $(CLOSED)/uts/sparc/glm; pwd; $(MAKE) warlock
176 -
177 158 st.ok: $(WLCMD_DIR)/st.wlcmd st.ll st_conf.ll scsi_files warlock_ddi.files
178 159 $(WARLOCK) -c $(WLCMD_DIR)/st.wlcmd $(WARLOCK_OUT) $(SCSI_FILES) \
179 160 -l ../warlock/ddi_dki_impl.ll
180 161 $(TOUCH) $@
181 162
182 163 %.ll: $(UTSBASE)/common/io/scsi/targets/%.c
183 164 $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
184 165
185 166 warlock_ddi.files:
186 167 @cd ../warlock; pwd; $(MAKE) warlock
187 168
188 169 scsi.files:
189 170 @cd ../scsi; pwd; $(MAKE) warlock
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX