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/usb_ac/Makefile
+++ new/usr/src/uts/sparc/usb_ac/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/usb_ac/Makefile
26 28 #
27 29 # This makefile drives the production of the usb_ac driver
28 30 # kernel module. sparc architecture dependent
29 31 #
30 32 #
31 33 # Path to the base of the uts directory tree (usually /usr/src/uts).
32 34 #
33 35 UTSBASE = ../..
34 36
35 37 #
36 38 # Define the module and object file sets.
37 39 #
38 40 MODULE = usb_ac
39 41 OBJECTS = $(USB_AC_OBJS:%=$(OBJS_DIR)/%)
40 42 LINTS = $(USB_AC_OBJS:%.o=$(LINTS_DIR)/%.ln)
41 43 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
42 44 CONF_SRCDIR = $(UTSBASE)/common/io/usb/clients/audio/usb_ac
43 45 WARLOCK_OUT = $(USB_AC_OBJS:%.o=%.ll)
44 46 WARLOCK_OK = $(MODULE).ok
45 47 WLCMD_DIR = $(UTSBASE)/common/io/warlock
46 48
47 49 #
48 50 # Include common rules.
49 51 #
50 52 include $(UTSBASE)/sparc/Makefile.sparc
51 53
52 54 #
53 55 # lint pass one enforcement
54 56 #
55 57 CFLAGS += $(CCVERBOSE)
56 58
57 59 #
58 60 LDFLAGS += -dy -Nmisc/usba -Ndrv/audio
59 61
60 62 #
61 63 # Define targets
62 64 #
63 65 ALL_TARGET = $(BINARY) $(SRC_CONFILE)
64 66 LINT_TARGET = $(MODULE).lint
65 67 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
66 68
67 69 CERRWARN += -_gcc=-Wno-switch
68 70 CERRWARN += -_gcc=-Wno-type-limits
69 71 CERRWARN += -_gcc=-Wno-unused-label
70 72 CERRWARN += -_gcc=-Wno-uninitialized
71 73
72 74 #
73 75 # For now, disable these lint checks; maintainers should endeavor
74 76 # to investigate and remove these for maximum lint coverage.
75 77 # Please do not carry these forward to new Makefiles.
76 78 #
77 79 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
78 80
79 81 .KEEP_STATE:
80 82
81 83 all: $(ALL_DEPS)
82 84
83 85 def: $(DEF_DEPS)
84 86
85 87 clean: $(CLEAN_DEPS)
86 88 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
87 89
88 90 clobber: $(CLOBBER_DEPS)
89 91 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
90 92
91 93 lint: $(LINT_DEPS)
92 94
93 95 modlintlib: $(MODLINTLIB_DEPS)
94 96
95 97 clean.lint: $(CLEAN_LINT_DEPS)
96 98
97 99 install: $(INSTALL_DEPS)
98 100
99 101 #
100 102 # Include common targets.
101 103 #
102 104 include $(UTSBASE)/sparc/Makefile.targ
103 105
104 106 #
↓ open down ↓ |
70 lines elided |
↑ open up ↑ |
105 107 # Defines for local commands.
106 108 #
107 109 WARLOCK = warlock
108 110 WLCC = wlcc
109 111 TOUCH = touch
110 112 TEST = test
111 113
112 114 #
113 115 # lock_lint rules
114 116 #
115 -USBA_FILES = $(USBA_WITHOUT_WUSB_OBJS:%.o=../usba/%.ll)
117 +USBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
116 118 UHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
117 119 OHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
118 120 EHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
119 121
120 122
121 123 #
122 124 # Warlock targets
123 125 #
124 126 warlock: $(WARLOCK_OK)
125 127
126 128 $(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files \
127 129 warlock_standalone warlock_usba.files warlock_with_usba
128 130 $(TOUCH) $(WARLOCK_OK)
129 131
130 132
131 133 warlock_with_usba: $(WLCMD_DIR)/usb_ac_with_usba.wlcmd $(WARLOCK_OUT) \
132 134 warlock_ddi.files warlock_usba.files warlock_ohci.files \
133 135 warlock_ehci.files warlock_uhci.files
134 136 $(WARLOCK) -c $(WLCMD_DIR)/usb_ac_with_usba.wlcmd \
135 137 $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
136 138 $(WARLOCK_OUT) -l ../warlock/ddi_dki_impl.ll
137 139
138 140 warlock_standalone: $(WARLOCK_OUT) warlock_ddi.files $(WLCMD_DIR)/usb_ac.wlcmd
139 141 $(WARLOCK) -c $(WLCMD_DIR)/usb_ac.wlcmd $(WARLOCK_OUT) \
140 142 -l ../warlock/ddi_dki_impl.ll
141 143
142 144 %.ll: $(UTSBASE)/common/io/usb/clients/audio/usb_ac/%.c
143 145 $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
144 146
145 147 warlock_usba.files:
146 148 @cd ../usba;pwd; $(MAKE) warlock
147 149
148 150 warlock_ohci.files:
149 151 @cd ../ohci;pwd; $(MAKE) warlock
150 152
151 153 warlock_uhci.files:
152 154 @cd ../uhci;pwd; $(MAKE) warlock
153 155
154 156 warlock_ehci.files:
155 157 @cd ../ehci;pwd; $(MAKE) warlock
156 158
157 159 warlock_ddi.files:
158 160 @cd ../warlock; pwd; $(MAKE) warlock
↓ open down ↓ |
33 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX