Print this page
5832 EOF wireless usb (aka UWB)
Reviewed by: TBD
Reviewed by: TBD
Approved by: TBD
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/scsa2usb/Makefile
+++ new/usr/src/uts/intel/scsa2usb/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
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
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 # uts/intel/scsa2usb/Makefile
23 23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 +# Copyright 2014 Garrett D'Amore <garrett@damore.org>
26 27 #
27 28 # This makefile drives the production of the scsa2usb driver
28 29 # kernel module. intel architecture dependent
29 30 #
30 31
31 32 #
32 33 # Path to the base of the uts directory tree (usually /usr/src/uts).
33 34 #
34 35 UTSBASE = ../..
35 36
36 37 #
37 38 # Define the module and object file sets.
38 39 #
39 40 MODULE = scsa2usb
40 41 OBJECTS = $(SCSA2USB_OBJS:%=$(OBJS_DIR)/%)
41 42 LINTS = $(SCSA2USB_OBJS:%.o=$(LINTS_DIR)/%.ln)
42 43 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
43 44 CONF_SRCDIR = $(UTSBASE)/common/io/usb/scsa2usb
44 45 WARLOCK_OUT = $(SCSA2USB_OBJS:%.o=%.ll)
45 46 WARLOCK_OK = $(MODULE).ok
46 47 WLCMD_DIR = $(UTSBASE)/common/io/warlock
47 48
48 49 #
49 50 # Include common rules.
50 51 #
51 52 include $(UTSBASE)/intel/Makefile.intel
52 53
53 54 #
54 55 # Define targets
55 56 #
56 57 ALL_TARGET = $(BINARY) $(SRC_CONFILE)
57 58 LINT_TARGET = $(MODULE).lint
58 59 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
59 60
60 61 #
61 62 # Override defaults to build a unique, local modstubs.o.
62 63 #
63 64 MODSTUBS_DIR = $(OBJS_DIR)
64 65 CLEANFILES += $(MODSTUBS_O)
65 66
66 67 #
67 68 # depends on misc/usba misc/scsi
68 69 #
69 70 LDFLAGS += -dy -Nmisc/usba -Nmisc/scsi
70 71
71 72 #
72 73 # For now, disable these lint checks; maintainers should endeavor
73 74 # to investigate and remove these for maximum lint coverage.
74 75 # Please do not carry these forward to new Makefiles.
75 76 #
76 77 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
77 78
78 79 CERRWARN += -_gcc=-Wno-unused-label
79 80 CERRWARN += -_gcc=-Wno-uninitialized
80 81
81 82 #
82 83 # Default build targets.
83 84 #
84 85 .KEEP_STATE:
85 86
86 87 def: $(DEF_DEPS)
87 88
88 89 all: $(ALL_DEPS)
89 90
90 91 clean: $(CLEAN_DEPS)
91 92 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
92 93
93 94 clobber: $(CLOBBER_DEPS)
94 95 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
95 96
96 97 lint: $(LINT_DEPS)
97 98
98 99 modlintlib: $(MODLINTLIB_DEPS)
99 100
100 101 clean.lint: $(CLEAN_LINT_DEPS)
101 102
102 103 install: $(INSTALL_DEPS)
103 104
104 105 #
105 106 # Include common targets.
106 107 #
107 108 include $(UTSBASE)/intel/Makefile.targ
108 109
109 110 #
↓ open down ↓ |
74 lines elided |
↑ open up ↑ |
110 111 # Defines for local commands.
111 112 #
112 113 WARLOCK = warlock
113 114 WLCC = wlcc
114 115 TOUCH = touch
115 116 TEST = test
116 117
117 118 #
118 119 # lock_lint rules
119 120 #
120 -USBA_FILES = $(USBA_WITHOUT_WUSB_OBJS:%.o=../usba/%.ll)
121 +USBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
121 122 UHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
122 123 OHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
123 124 EHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
124 125 SD_FILES = $(SD_OBJS:%.o=../sd/%.ll)
125 126 ST_FILES = $(ST_OBJS:%.o=../st/%.ll)
126 127 SCSI_FILES = $(SCSI_OBJS:%.o= -l ../scsi/%.ll)
127 128 CMLB_FILES = $(CMLB_OBJS:%.o=-l ../cmlb/%.ll)
128 129
129 130 warlock: $(WARLOCK_OK) warlock_with_usba
130 131
131 132 $(WARLOCK_OK): $(WARLOCK_OUT) $(WLCMD_DIR)/scsa2usb.wlcmd warlock_ddi.files \
132 133 scsi.files
133 134 $(WARLOCK) -c $(WLCMD_DIR)/scsa2usb.wlcmd $(WARLOCK_OUT) \
134 135 ../warlock/scsi.ll \
135 136 $(SCSI_FILES) \
136 137 -l ../warlock/ddi_dki_impl.ll
137 138 $(TOUCH) $@
138 139
139 140 %.ll: $(UTSBASE)/common/io/usb/scsa2usb/%.c \
140 141 $(UTSBASE)/common/sys/usb/clients/mass_storage/usb_bulkonly.h \
141 142 $(UTSBASE)/common/sys/usb/clients/mass_storage/usb_cbi.h \
142 143 $(UTSBASE)/common/sys/usb/scsa2usb/scsa2usb.h
143 144 $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
144 145
145 146 warlock_with_usba: $(WLCMD_DIR)/scsa2usb_with_usba.wlcmd \
146 147 $(WARLOCK_OUT) usba_files \
147 148 ohci_files ehci_files uhci_files warlock_ddi.files sd.files st.files \
148 149 cmlb.files scsi.files
149 150 $(WARLOCK) -c $(WLCMD_DIR)/scsa2usb_with_usba.wlcmd \
150 151 $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
151 152 $(SD_FILES) \
152 153 $(ST_FILES) \
153 154 $(CMLB_FILES) \
154 155 $(SCSI_FILES) \
155 156 $(WARLOCK_OUT) \
156 157 -l ../warlock/ddi_dki_impl.ll
157 158
158 159 usba_files:
159 160 @cd ../usba;pwd; $(MAKE) warlock
160 161
161 162 uhci_files:
162 163 @cd ../uhci;pwd; $(MAKE) warlock
163 164
164 165 ohci_files:
165 166 @cd ../ohci;pwd; $(MAKE) warlock
166 167
167 168 ehci_files:
168 169 @cd ../ehci;pwd; $(MAKE) warlock
169 170
170 171 warlock_ddi.files:
171 172 @cd ../warlock; pwd; $(MAKE) warlock
172 173
173 174 scsi.files:
174 175 @cd ../scsi; pwd; $(MAKE) warlock
175 176
176 177 sd.files:
177 178 @cd ../sd; pwd; $(MAKE) warlock_alone
178 179
179 180 st.files:
180 181 @cd ../st; pwd; $(MAKE) warlock_alone
181 182
182 183 cmlb.files:
183 184 @cd ../cmlb; pwd; $(MAKE) warlock
↓ open down ↓ |
53 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX