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