Print this page
4027 remove CLOSED_BUILD
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/i86xpv/Makefile
+++ new/usr/src/uts/i86xpv/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
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 2007 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25 # Copyright 2013 Nexenta Systems, Inc. All rights reserved.
26 26 #
27 27 # This makefile drives the production of all implementation architecture
28 28 # dependent modules for the i86xpv architecture.
29 29 #
30 30
31 31 UTSBASE = ..
32 32
33 33 include Makefile.i86xpv
34 34
35 35 #
36 36 # The following are x86 specific (rather than i86pc) specific modules
37 37 # which are required for the i86pc kernel to completely lint. They are
↓ open down ↓ |
37 lines elided |
↑ open up ↑ |
38 38 # not involved in the build in any other way. In order to minimize
39 39 # build time, it is assumed that they are up to date.
40 40 #
41 41 INTEL_LIB_DIR = $(UTSBASE)/intel/lint-libs/$(OBJS_DIR)
42 42
43 43 INTEL_LINTS = genunix
44 44
45 45 LINT_LIBS = $(LINT_LIB) \
46 46 $(GENUNIX_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
47 47 $(PARALLEL_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
48 - $(CLOSED_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
49 48 $(INTEL_LINTS:%=$(INTEL_LIB_DIR)/llib-l%.ln)
50 49
51 50 #
52 51 #
53 52 #
54 53 def := TARGET= def
55 54 all := TARGET= all
56 55 install := TARGET= install
57 56 clean := TARGET= clean
58 57 clobber := TARGET= clobber
59 58 lint := TARGET= lint
60 59 lintlib := TARGET= lintlib
61 60 machmodlintlib := TARGET= modlintlib
62 61 modlist := TARGET= modlist
63 62 modlist modlist.intel := NO_STATE= -K $$MODSTATE$$$$
64 63 clean.lint := TARGET= clean.lint
65 64 check := TARGET= check
66 65
67 66 .KEEP_STATE:
68 67
69 -.PARALLEL: $(PARALLEL_KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) \
70 - modlist modlist.intel
68 +.PARALLEL: $(PARALLEL_KMODS) $(XMODS) modlist modlist.intel
71 69
72 70 INITIAL_TARGETS = \
73 71 genassym \
74 72 unix \
75 73 cpu/scripts
76 74
77 75 def all clean clobber clean.lint: setup genassym unix .WAIT \
78 - $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS)
76 + $(KMODS) $(XMODS)
79 77
80 78 install: install_platforms setup genassym unix .WAIT \
81 - $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS)
79 + $(KMODS) $(XMODS)
82 80
83 81 # list the modules under i86xpv.
84 -modlist: unix $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS)
82 +modlist: unix $(KMODS) $(XMODS)
85 83
86 84 # list the modules for Install -k i86xpv.
87 85 modlist.karch: modlist modlist.intel
88 86
89 87 modlist.intel:
90 88 @cd $(SRC)/uts/intel; pwd; $(MAKE) $(NO_STATE) modlist
91 89
92 90 lintlib: unix
93 91
94 -modlintlib: $(KMODS) $(CLOSED_KMODS)
92 +modlintlib: $(KMODS)
95 93
96 94 genassym unix $(KMODS): FRC
97 95 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
98 96
99 97 setup: FRC
100 98 @cd cpu/scripts; pwd; $(MAKE) $(TARGET)
101 99
102 100 $(XMODS): FRC
103 101 @if [ -f $@/Makefile ]; then \
104 102 cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
105 103 else \
106 104 true; \
107 105 fi
108 106
109 -$(CLOSED_KMODS): FRC
110 - cd $(CLOSED)/uts/i86xpv/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
111 -
112 -$(CLOSED_XMODS): FRC
113 - @if [ -f $(CLOSED)/uts/i86xpv/$@/Makefile ]; then \
114 - cd $(CLOSED)/uts/i86xpv/$@; pwd; \
115 - $(MAKE) $(NO_STATE) $(TARGET); \
116 - else \
117 - true; \
118 - fi
119 -
120 107 install_h check: FRC
121 108 @cd sys; pwd; $(MAKE) $(TARGET)
122 109
123 110 #
124 111 # Definitions for the /platform directory aliases.
125 112 # Currently none for i86xpv.
126 113 #
127 114 PLAT_LINKS =
128 115
129 116 #
130 117 # Make the /platform directories. This is hardwired here because
131 118 # the first stage of the project (KBI) only implements the userland
132 119 # changes, but the only reasonable place to record the aliases is
133 120 # here in kernel land.
134 121 #
135 122 install_platforms: $(ROOT_PSM_DIR) $(USR_PSM_DIR) \
136 123 $(ROOT_PLAT_LINKS) $(USR_PLAT_LINKS) \
137 124 $(OEM_USR_PLAT_LINKS)
138 125
139 126 #
140 127 # Full kernel lint target.
141 128 #
142 129 LINT_TARGET = globallint
143 130
144 131 # workaround for multiply defined errors
145 132 globallint := LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2
146 133
147 134 globallint:
148 135 @-$(ECHO) "\nFULL KERNEL: global crosschecks:"
149 136 @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
150 137
151 138 lint: lintlib .WAIT modlintlib .WAIT $(INTEL_LINTS) $(LINT_DEPS)
152 139
153 140 $(INTEL_LINTS): FRC
↓ open down ↓ |
24 lines elided |
↑ open up ↑ |
154 141 @cd $(UTSBASE)/intel/$@; pwd; $(MAKE) modlintlib
155 142
156 143 FRC:
157 144
158 145 include ../Makefile.targ
159 146
160 147 #
161 148 # Cross-reference customization: build a cross-reference over all of the
162 149 # i86pc-related directories.
163 150 #
164 -SHARED_XRDIRS = ../i86xpv ../i86pc ../intel ../common
165 -XRDIRS = $(SHARED_XRDIRS)
166 -CLOSED_XRDIRS1 = $(SHARED_XRDIRS:../%=../% ../../../closed/uts/%)
167 -CLOSED_XRDIRS2 = $(CLOSED_XRDIRS1:../../../closed/uts/i86pc=)
168 -$(CLOSED_BUILD)XRDIRS = $(CLOSED_XRDIRS2:../../../closed/uts/i86xpv=)
151 +XRDIRS = ../i86xpv ../i86pc ../intel ../common
169 152 XRPRUNE = sun4v sun4u sun4 sfmmu sparc
170 153
171 154 cscope.out tags: FRC
172 155 $(XREF) -x $@
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX