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/usbvc/Makefile
+++ new/usr/src/uts/intel/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 # This makefile drives the production of the usbvc driver kernel module.
29 31 #
30 32
31 33 #
32 34 # Path to the base of the uts directory tree (usually /usr/src/uts).
33 35 #
34 36 UTSBASE = ../..
35 37
36 38 #
37 39 # Define the module and object file sets.
38 40 #
39 41 MODULE = usbvc
40 42 OBJECTS = $(USBVC_OBJS:%=$(OBJS_DIR)/%)
41 43 LINTS = $(USBVC_OBJS:%.o=$(LINTS_DIR)/%.ln)
42 44 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
43 45 WARLOCK_OUT = $(USBVC_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)/intel/Makefile.intel
51 53
52 54 #
53 55 # Define targets
54 56 #
55 57 ALL_TARGET = $(BINARY)
56 58 LINT_TARGET = $(MODULE).lint
57 59 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
58 60
59 61 #
60 62 # Override defaults to build a unique, local modstubs.o.
61 63 #
62 64 MODSTUBS_DIR = $(OBJS_DIR)
63 65 CLEANFILES += $(MODSTUBS_O)
64 66
65 67 #
66 68 # depends on misc/usba
67 69 #
68 70 LDFLAGS += -dy -Nmisc/usba
69 71
70 72 #
71 73 # Disable this because it is necessary for this driver
72 74 # and it is surely safe
73 75 #
74 76 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
75 77
76 78 CERRWARN += -_gcc=-Wno-uninitialized
77 79
78 80 #
79 81 # Default build targets.
80 82 #
81 83 .KEEP_STATE:
82 84
83 85 def: $(DEF_DEPS)
84 86
85 87 all: $(ALL_DEPS)
86 88
87 89 clean: $(CLEAN_DEPS)
88 90 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
89 91
90 92 clobber: $(CLOBBER_DEPS)
91 93 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
92 94
93 95 lint: $(LINT_DEPS)
94 96
95 97 modlintlib: $(MODLINTLIB_DEPS)
96 98
97 99 clean.lint: $(CLEAN_LINT_DEPS)
98 100
99 101 install: $(INSTALL_DEPS)
100 102
101 103 #
102 104 # Include common targets.
103 105 #
104 106 include $(UTSBASE)/intel/Makefile.targ
105 107
106 108 #
↓ open down ↓ |
71 lines elided |
↑ open up ↑ |
107 109 # Defines for local commands.
108 110 #
109 111 WARLOCK = warlock
110 112 WLCC = wlcc
111 113 TOUCH = touch
112 114 TEST = test
113 115
114 116 #
115 117 # lock_lint rules
116 118 #
117 -USBA_FILES = $(USBA_WITHOUT_WUSB_OBJS:%.o=../usba/%.ll)
119 +USBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
118 120 UHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
119 121 OHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
120 122 EHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
121 123
122 124 warlock: $(WARLOCK_OK) warlock_with_usba
123 125
124 126 $(WARLOCK_OK): $(WARLOCK_OUT) $(WLCMD_DIR)/usbvc.wlcmd warlock_ddi.files
125 127 $(WARLOCK) -c $(WLCMD_DIR)/usbvc.wlcmd $(WARLOCK_OUT) \
126 128 -l ../warlock/ddi_dki_impl.ll
127 129 $(TOUCH) $@
128 130
129 131 %.ll: $(UTSBASE)/common/io/usb/clients/video/usbvc/%.c \
130 132 $(UTSBASE)/common/sys/usb/clients/video/usbvc/usbvc_var.h
131 133 $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
132 134
133 135 warlock_with_usba: $(WLCMD_DIR)/usbvc_with_usba.wlcmd $(WARLOCK_OUT) \
134 136 usba_files ohci_files ehci_files uhci_files warlock_ddi.files
135 137 $(WARLOCK) -c $(WLCMD_DIR)/usbvc_with_usba.wlcmd \
136 138 $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
137 139 $(WARLOCK_OUT) \
138 140 -l ../warlock/ddi_dki_impl.ll
139 141
140 142 usba_files:
141 143 @cd ../usba;pwd; $(MAKE) warlock
142 144
143 145 ohci_files:
144 146 @cd ../ohci;pwd; $(MAKE) warlock
145 147
146 148 uhci_files:
147 149 @cd ../uhci;pwd; $(MAKE) warlock
148 150
149 151 ehci_files:
150 152 @cd ../ehci;pwd; $(MAKE) warlock
151 153
152 154 warlock_ddi.files:
153 155 cd ../warlock; pwd; $(MAKE) warlock
↓ open down ↓ |
26 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX