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/usbvc/Makefile
+++ new/usr/src/uts/sparc/usbvc/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 #
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>
27 +#
26 28
27 29 #
28 30 # uts/sparc/usbvc/Makefile
29 31 # This makefile drives the production of the usbvc kernel driver.
30 32 #
31 33 # sparc architecture dependent
32 34 #
33 35
34 36 #
35 37 # Path to the base of the uts directory tree (usually /usr/src/uts).
36 38 #
37 39 UTSBASE = ../..
38 40
39 41 #
40 42 # Define the module and object file sets.
41 43 #
42 44 MODULE = usbvc
43 45 OBJECTS = $(USBVC_OBJS:%=$(OBJS_DIR)/%)
44 46 LINTS = $(USBVC_OBJS:%.o=$(LINTS_DIR)/%.ln)
45 47 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
46 48 WARLOCK_OUT = $(USBVC_OBJS:%.o=%.ll)
47 49 WARLOCK_OK = $(MODULE).ok
48 50 WLCMD_DIR = $(UTSBASE)/common/io/warlock
49 51
50 52 #
51 53 # Include common rules.
52 54 #
53 55 include $(UTSBASE)/sparc/Makefile.sparc
54 56
55 57 #
56 58 # lint pass one enforcement
57 59 #
58 60 CFLAGS += $(CCVERBOSE)
59 61
60 62 #
61 63 # depends on misc/usba
62 64 LDFLAGS += -dy -Nmisc/usba
63 65
64 66 #
65 67 # Define targets
66 68 #
67 69 ALL_TARGET = $(BINARY)
68 70 LINT_TARGET = $(MODULE).lint
69 71 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
70 72
71 73 CERRWARN += -_gcc=-Wno-uninitialized
72 74
73 75 #
74 76 # Disable this because it is necessary for this driver
75 77 # and it is surely safe
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 ↓ |
69 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 warlock: $(WARLOCK_OK) warlock_with_usba
121 123
122 124 $(WARLOCK_OK): $(WARLOCK_OUT) $(WLCMD_DIR)/usbvc.wlcmd warlock_ddi.files
123 125 $(WARLOCK) -c $(WLCMD_DIR)/usbvc.wlcmd $(WARLOCK_OUT) \
124 126 -l ../warlock/ddi_dki_impl.ll
125 127 $(TOUCH) $@
126 128
127 129 %.ll: $(UTSBASE)/common/io/usb/clients/video/usbvc/%.c \
128 130 $(UTSBASE)/common/sys/usb/clients/video/usbvc/usbvc_var.h
129 131 $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
130 132
131 133 warlock_with_usba: $(WLCMD_DIR)/usbvc_with_usba.wlcmd $(WARLOCK_OUT) \
132 134 usba_files ohci_files ehci_files uhci_files warlock_ddi.files
133 135 $(WARLOCK) -c $(WLCMD_DIR)/usbvc_with_usba.wlcmd \
134 136 $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
135 137 $(WARLOCK_OUT) \
136 138 -l ../warlock/ddi_dki_impl.ll
137 139
138 140 usba_files:
139 141 @cd ../usba;pwd; $(MAKE) warlock
140 142
141 143 uhci_files:
142 144 @cd ../uhci;pwd; $(MAKE) warlock
143 145
144 146 ohci_files:
145 147 @cd ../ohci;pwd; $(MAKE) warlock
146 148
147 149 ehci_files:
148 150 @cd ../ehci;pwd; $(MAKE) warlock
149 151
150 152 warlock_ddi.files:
151 153 cd ../warlock; pwd; $(MAKE) warlock
↓ open down ↓ |
26 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX