Print this page
4027 remove CLOSED_BUILD
4028 remove CLOSED_IS_PRESENT
4029 remove tonic build bits
Reviewed by: Andy Stormont <andyjstormont@gmail.com>
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 = \
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 I86PC_LINTS = dr drmach_acpi
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 install_h := TARGET= install_h
58 57 clean := TARGET= clean
59 58 clobber := TARGET= clobber
↓ open down ↓ |
3 lines elided |
↑ open up ↑ |
60 59 lint := TARGET= lint
61 60 lintlib := TARGET= lintlib
62 61 machmodlintlib := TARGET= modlintlib
63 62 modlist := TARGET= modlist
64 63 modlist modlist.intel := NO_STATE= -K $$MODSTATE$$$$
65 64 clean.lint := TARGET= clean.lint
66 65 check := TARGET= check
67 66
68 67 .KEEP_STATE:
69 68
70 -.PARALLEL: $(PARALLEL_KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) \
71 - modlist modlist.intel
69 +.PARALLEL: $(PARALLEL_KMODS) $(XMODS) modlist modlist.intel
72 70
73 71 INITIAL_TARGETS = \
74 72 genassym \
75 73 unix \
76 74 cpu/scripts
77 75
78 76 def all clean clobber clean.lint: setup genassym unix .WAIT \
79 - $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) $(IMPLEMENTATIONS)
77 + $(KMODS) $(XMODS) $(IMPLEMENTATIONS)
80 78
81 79 install: install_platforms setup genassym unix .WAIT \
82 - $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) $(IMPLEMENTATIONS)
80 + $(KMODS) $(XMODS) $(IMPLEMENTATIONS)
83 81
84 82 # Need to clean in here too because of lint.
85 83 clean: $(I86PC_LINTS)
86 84
87 85 # list the modules under i86pc.
88 -modlist: unix $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) \
89 - $(IMPLEMENTATIONS)
86 +modlist: unix $(KMODS) $(XMODS) $(IMPLEMENTATIONS)
90 87
91 88 # list the modules for Install -k i86pc.
92 89 modlist.karch: modlist modlist.intel
93 90
94 91 modlist.intel:
95 92 @cd $(SRC)/uts/intel; pwd; $(MAKE) $(NO_STATE) modlist
96 93
97 94 lintlib: unix
98 95
99 -modlintlib: $(KMODS) $(CLOSED_KMODS)
96 +modlintlib: $(KMODS)
100 97
101 98 genassym unix $(KMODS): FRC
102 99 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
103 100
104 101 setup: FRC
105 102 @cd cpu/scripts; pwd; $(MAKE) $(TARGET)
106 103
107 104 $(IMPLEMENTATIONS): FRC
108 105 @cd $@; pwd; THISIMPL=$@ $(MAKE) $(NO_STATE) $(TARGET)
109 106
110 107 $(XMODS): FRC
111 108 @if [ -f $@/Makefile ]; then \
112 109 cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
113 110 else \
114 111 true; \
115 112 fi
116 113
117 -$(CLOSED_KMODS): FRC
118 - cd $(CLOSED)/uts/i86pc/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
119 -
120 -$(CLOSED_XMODS): FRC
121 - @if [ -f $(CLOSED)/uts/i86pc/$@/Makefile ]; then \
122 - cd $(CLOSED)/uts/i86pc/$@; pwd; \
123 - $(MAKE) $(NO_STATE) $(TARGET); \
124 - else \
125 - true; \
126 - fi
127 -
128 114 install_h check: $(IMPLEMENTATIONS) FRC
129 115 @cd sys; pwd; $(MAKE) $(TARGET)
130 116
131 117 #
132 118 # Definitions for the /platform directory aliases.
133 119 # Currently none for i86pc.
134 120 #
135 121 PLAT_LINKS =
136 122
137 123 #
138 124 # Make the /platform directories. This is hardwired here because
139 125 # the first stage of the project (KBI) only implements the userland
140 126 # changes, but the only reasonable place to record the aliases is
141 127 # here in kernel land.
142 128 #
143 129 install_platforms: $(ROOT_PSM_DIR) $(USR_PSM_DIR) \
144 130 $(ROOT_PLAT_LINKS) $(USR_PLAT_LINKS) \
145 131 $(OEM_USR_PLAT_LINKS)
146 132
147 133 #
148 134 # Full kernel lint target.
149 135 #
150 136 LINT_TARGET = globallint
151 137
152 138 # workaround for multiply defined errors
153 139 globallint := LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2
154 140
155 141 globallint:
156 142 @-$(ECHO) "\nFULL KERNEL: global crosschecks:"
157 143 @-$(LINT) $(LINTFLAGS) $(LINT_LIB) $(LINT_LIBS) 2>&1 | $(LGREP.2)
158 144
159 145 lint: lintlib .WAIT modlintlib .WAIT $(INTEL_LINTS) $(LINT_DEPS) \
160 146 $(IMPLEMENTATIONS)
↓ open down ↓ |
23 lines elided |
↑ open up ↑ |
161 147
162 148 $(INTEL_LINTS): FRC
163 149 @cd $(UTSBASE)/intel/$@; pwd; $(MAKE) modlintlib
164 150
165 151 include ../Makefile.targ
166 152
167 153 #
168 154 # Cross-reference customization: build a cross-reference over all of the
169 155 # i86pc-related directories.
170 156 #
171 -XRDIRS = ../i86pc ../intel ../common
172 -$(CLOSED_BUILD)XRDIRS += ../../../closed/uts/intel ../../../closed/uts/common
157 +XRDIRS = ../i86pc ../intel ../common
173 158
174 159 XRPRUNE = sun4u sun4
175 160
176 161 cscope.out tags: FRC
177 162 $(XREF) -x $@
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX