Print this page
4027 remove CLOSED_BUILD
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/sd/Makefile
+++ new/usr/src/uts/intel/sd/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/intel/io/sd/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 sd
28 28 # kernel module.
29 29 #
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 = sd
41 41 OBJECTS = $(SD_OBJS:%=$(OBJS_DIR)/%)
42 42 LINTS = $(SD_OBJS:%.o=$(LINTS_DIR)/%.ln)
43 43 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
44 44 CONF_SRCDIR = $(UTSBASE)/intel/io/scsi/targets
45 45 WARLOCK_OUT = $(SD_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)/intel/Makefile.intel
53 53
54 54 #
55 55 # Define targets
56 56 #
57 57 ALL_TARGET = $(BINARY) $(CONFMOD)
58 58 LINT_TARGET = $(MODULE).lint
59 59 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
60 60
61 61 #
62 62 # Overrides.
63 63 #
64 64 DEBUG_FLGS =
65 65 DEBUG_DEFS += $(DEBUG_FLGS)
66 66
67 67 INC_PATH += -I$(UTSBASE)/intel/io/scsi/targets
68 68
69 69 #
70 70 # For now, disable these lint checks; maintainers should endeavor
71 71 # to investigate and remove these for maximum lint coverage.
72 72 # Please do not carry these forward to new Makefiles.
73 73 #
74 74 LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
75 75 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
76 76 LINTTAGS += -erroff=E_STATIC_UNUSED
77 77 LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
78 78 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
79 79
80 80 CERRWARN += -_gcc=-Wno-unused-variable
81 81 CERRWARN += -_gcc=-Wno-unused-function
82 82 CERRWARN += -_gcc=-Wno-unused-label
83 83 CERRWARN += -_gcc=-Wno-parentheses
84 84 CERRWARN += -_gcc=-Wno-type-limits
85 85 CERRWARN += -_gcc=-Wno-uninitialized
86 86
87 87 #
88 88 # Depends on scsi and cmlb
89 89 #
90 90 LDFLAGS += -dy -N misc/scsi -N misc/cmlb
91 91
92 92 #
93 93 # Default build targets.
94 94 #
95 95 .KEEP_STATE:
96 96
97 97 def: $(DEF_DEPS)
98 98
99 99 all: $(ALL_DEPS)
100 100
101 101 clean: $(CLEAN_DEPS)
102 102 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
103 103
104 104 clobber: $(CLOBBER_DEPS)
105 105 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
106 106
107 107 lint: $(LINT_DEPS)
108 108
109 109 modlintlib: $(MODLINTLIB_DEPS)
110 110
111 111 clean.lint: $(CLEAN_LINT_DEPS)
112 112
113 113 install: $(INSTALL_DEPS)
114 114
115 115 #
116 116 # Include common targets.
117 117 #
118 118 include $(UTSBASE)/intel/Makefile.targ
119 119
120 120
121 121 #
122 122 # Defines for local commands.
123 123 #
124 124 WARLOCK = warlock
125 125 WLCC = wlcc
126 126 TOUCH = touch
127 127 TEST = test
128 128
129 129 #
130 130 # Warlock targets
↓ open down ↓ |
130 lines elided |
↑ open up ↑ |
131 131 #
132 132 # Note that in warlock_with_{esp,isp} it is important to load sd.ll
133 133 # before {isp,esp}.ll; the reason is that both have _init/_info/_fini
134 134 # and warlock can only handle one extern function by a given name;
135 135 # any loaded after the first are ignored.
136 136
137 137 SCSI_FILES = $(SCSI_OBJS:%.o=-l ../scsi/%.ll)
138 138 CMLB_FILES = $(CMLB_OBJS:%.o=-l ../cmlb/%.ll)
139 139
140 140 WARLOCK_TARGETS = warlock_alone
141 -$(CLOSED_BUILD)WARLOCK_TARGETS += warlock_with_mpt warlock_with_glm
142 141
143 142 warlock: $(WARLOCK_TARGETS)
144 143
145 144 warlock_alone: $(WARLOCK_OK)
146 145
147 146 $(WARLOCK_OK): $(WLCMD_DIR)/sd.wlcmd $(WARLOCK_OUT) scsi_files \
148 147 warlock_ddi.files cmlb_files
149 148 $(WARLOCK) -c $(WLCMD_DIR)/sd.wlcmd $(WARLOCK_OUT) $(SCSI_FILES) \
150 149 $(CMLB_FILES) \
151 150 -l ../warlock/ddi_dki_impl.ll
152 151 $(TOUCH) $@
153 152
154 153 %.ll: $(UTSBASE)/common/io/scsi/targets/%.c
155 154 $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
156 155
157 -warlock_with_glm: $(WLCMD_DIR)/sd_with_glm.wlcmd $(WARLOCK_OUT) scsi_files \
158 - glm_files warlock_ddi.files cmlb_files
159 - $(WARLOCK) -c $(WLCMD_DIR)/sd_with_glm.wlcmd \
160 - $(WARLOCK_OUT) \
161 - $(CLOSED)/uts/intel/glm/*.ll \
162 - $(SCSI_FILES) $(CMLB_FILES) \
163 - -l ../warlock/ddi_dki_impl.ll
164 -
165 -warlock_with_mpt: $(WLCMD_DIR)/sd_with_mpt.wlcmd $(WARLOCK_OUT) scsi_files \
166 - mpt_files warlock_ddi.files cmlb_files
167 - $(WARLOCK) -c $(WLCMD_DIR)/sd_with_mpt.wlcmd \
168 - $(WARLOCK_OUT) \
169 - $(CLOSED)/uts/intel/mpt/*.ll \
170 - $(SCSI_FILES) $(CMLB_FILES) \
171 - -l ../warlock/ddi_dki_impl.ll
172 -
173 -glm_files:
174 - @cd $(CLOSED)/uts/intel/glm; pwd; $(MAKE) warlock
175 -
176 -mpt_files:
177 - @cd $(CLOSED)/uts/intel/mpt; pwd; $(MAKE) warlock
178 -
179 156 cmlb_files:
180 157 @cd ../cmlb; pwd; $(MAKE) warlock
181 158
182 159 scsi_files:
183 160 @cd ../scsi; pwd; $(MAKE) warlock
184 161
185 162 warlock_ddi.files:
186 163 @cd ../warlock; pwd; $(MAKE) warlock
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX