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