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/usb_ac/Makefile
+++ new/usr/src/uts/intel/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/intel/usb_ac/Makefile
26 28 #
27 29 # This makefile drives the production of the usb_ac driver
28 30 # kernel module. Intel 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 = usb_ac
41 43 OBJECTS = $(USB_AC_OBJS:%=$(OBJS_DIR)/%)
42 44 LINTS = $(USB_AC_OBJS:%.o=$(LINTS_DIR)/%.ln)
43 45 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
44 46 CONF_SRCDIR = $(UTSBASE)/common/io/usb/clients/audio/usb_ac
45 47 WARLOCK_OUT = $(USB_AC_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)/intel/Makefile.intel
53 55
54 56 #
55 57 # Define targets
56 58 #
57 59 ALL_TARGET = $(BINARY) $(SRC_CONFILE)
58 60 LINT_TARGET = $(MODULE).lint
59 61 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
60 62
61 63 #
62 64 # Override defaults to build a unique, local modstubs.o.
63 65 #
64 66 MODSTUBS_DIR = $(OBJS_DIR)
65 67 CLEANFILES += $(MODSTUBS_O)
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 # depends on misc/usba
74 76 #
75 77 LDFLAGS += -dy -Nmisc/usba -Ndrv/audio
76 78
77 79 #
78 80 # Default build targets.
79 81 #
80 82 .KEEP_STATE:
81 83
82 84 def: $(DEF_DEPS)
83 85
84 86 all: $(ALL_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)/intel/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
121 123
122 124 #
123 125 # Warlock targets
124 126 #
125 127 warlock: $(WARLOCK_OK)
126 128
127 129 $(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files \
128 130 warlock_standalone warlock_usba.files warlock_with_usba
129 131 $(TOUCH) $(WARLOCK_OK)
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 ↓ |
32 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX