Print this page
4027 remove CLOSED_BUILD
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/Makefile
+++ new/usr/src/uts/intel/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 # uts/intel/Makefile
22 22 #
23 23 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 #
25 25 # This makefile drives the production of all implementation architecture
↓ open down ↓ |
25 lines elided |
↑ open up ↑ |
26 26 # independent modules for Intel processors.
27 27
28 28 UTSBASE = ..
29 29
30 30 include Makefile.intel
31 31
32 32 LINT_KMODS_X1 = $(LINT_KMODS:nsmb=)
33 33 LINT_KMODS_X2 = $(LINT_KMODS_X1:smbfs=)
34 34 LINT_KMODLIBS = $(LINT_KMODS_X2:e1000g=)
35 35 LINT_LIBS = $(LINT_LIB) $(GEN_LINT_LIB) \
36 - $(LINT_KMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
37 - $(CLOSED_LINT_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
38 -
39 -$(CLOSED_BUILD)LINT_LIBS += $(SVVS_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
40 -$(CLOSED_BUILD)LINT_CLOSED_XMOD4 = $(CLOSED_XMODS:bnx=)
41 -$(CLOSED_BUILD)LINT_CLOSED_XMOD3 = $(LINT_CLOSED_XMOD4:bnxe=)
42 -$(CLOSED_BUILD)LINT_CLOSED_XMOD2 = $(LINT_CLOSED_XMOD3:lsimega=)
43 -$(CLOSED_BUILD)LINT_CLOSED_XMOD1 = $(LINT_CLOSED_XMOD2:adpu320=)
44 -$(CLOSED_BUILD)LINT_LIBS += $(LINT_XMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln)
36 + $(LINT_KMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln)
45 37
46 38 #
47 39 # dprov is delivered in the SUNWcryptoint package.
48 40 #
49 41 DRV_KMODS += dprov
50 42
51 43 #
52 44 #
53 45 def := TARGET= def
54 46 def.prereq := TARGET= def
55 47 all := TARGET= all
56 48 all.prereq := TARGET= all
57 49 install := TARGET= install
58 50 install.prereq := TARGET= all
59 51 clean := TARGET= clean
60 52 clobber := TARGET= clobber
61 53 lint := TARGET= lint
62 54 lint.prereq := TARGET= lint
↓ open down ↓ |
8 lines elided |
↑ open up ↑ |
63 55 modlintlib := TARGET= modlintlib
64 56 modlist := TARGET= modlist
65 57 modlist := NO_STATE= -K $$MODSTATE$$$$
66 58 clean.lint := TARGET= clean.lint
67 59 check := TARGET= check
68 60 install_h := TARGET= install_h
69 61 install_h.prereq := TARGET= install_h
70 62
71 63 .KEEP_STATE:
72 64
73 -.PARALLEL: $(PARALLEL_KMODS) $(CLOSED_KMODS) $(SVVS) $(XMODS) \
74 - $(CLOSED_XMODS) config $(LINT_DEPS)
65 +.PARALLEL: $(PARALLEL_KMODS) $(XMODS) config $(LINT_DEPS)
75 66
76 -def all install clean clobber modlist: $(KMODS) $(CLOSED_KMODS) \
77 - $(SVVS) $(XMODS) $(CLOSED_XMODS) config
67 +def all install clean clobber modlist: $(KMODS) $(XMODS) config
78 68
79 69
80 70 #
81 71 # Privilege constants
82 72 #
83 73 # NOTE: The rules for generating priv_const.c file are shared between all
84 74 # processor architectures and and should be kept in sync. If they are changed in
85 75 # this file make sure that sparc rules are updated as well.
86 76 #
87 77 PRIVS_C = $(SRC)/uts/common/os/priv_const.c
88 78
89 79 $(PRIVS_C): $(PRIVS_AWK) $(PRIVS_DEF)
90 80 $(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) cfile=$@
91 81
92 82 #
93 83 # Prerequisites
94 84 #
95 85 # The uts/Makefile defines build parallelism for x86 platforms such that i86pc,
96 86 # i86xpv and intel are all built in parallel. This requires building certain
97 87 # parts before the parallel build can start. The uts/Makefile appends the
98 88 # '.prereq' string to the original target and executes this Makefile to build
99 89 # any prerequisites needed before the full parallel build can start. After that
100 90 # make continues with normal targets.
101 91 #
102 92 # Any build prerequisites for x86 builds should be described here.
103 93 #
104 94 # genassym is used to build intel/dtrace and genunix, so it should be built
105 95 # first.
106 96 #
107 97 # priv_const.c is required to build genunix.
108 98 #
109 99 # genunix is used by everyone to ctf-merge with. Genunix is CTF-merged with
110 100 # intel/ip so as a side effect this dependency builds intel/ip as part of the
111 101 # prerequisites.
112 102 #
113 103 # intel/dtrace depends on i86pc/genassym, so we need to build both
114 104 # i86pc/genassym and intel/genassym.
115 105 #
116 106 all.prereq install.prereq def.prereq: genunix FRC
117 107 @cd ../i86pc/genassym; pwd; $(MAKE) $(@:%.prereq=%)
118 108
119 109 #
120 110 # i86pc lint libraries should be built first
121 111 #
↓ open down ↓ |
34 lines elided |
↑ open up ↑ |
122 112 lint.prereq: FRC
123 113 @cd ../i86pc; pwd; $(MAKE) $(NO_STATE) lint
124 114
125 115 #
126 116 # Nothing to do for any other prerequisite targets.
127 117 #
128 118 %.prereq:
129 119
130 120 genunix: $(PRIVS_C)
131 121
132 -modlintlib clean.lint: $(LINT_KMODS) $(CLOSED_LINT_KMODS) $(SVVS) \
133 - $(XMODS) $(CLOSED_XMODS)
122 +modlintlib clean.lint: $(LINT_KMODS) $(XMODS)
134 123
135 124 $(KMODS) $(SUBDIRS) config: FRC
136 125 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
137 126
138 -$(CLOSED_KMODS): FRC
139 - cd $(CLOSED)/uts/intel/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
140 -
141 127 $(XMODS): FRC
142 128 @if [ -f $@/Makefile ]; then \
143 129 cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
144 130 else \
145 131 true; \
146 132 fi
147 133
148 -$(SVVS) $(CLOSED_XMODS): FRC
149 - @if [ -f $(CLOSED)/uts/intel/$@/Makefile ]; then \
150 - cd $(CLOSED)/uts/intel/$@; pwd; \
151 - $(MAKE) $(NO_STATE) $(TARGET); \
152 - else \
153 - true; \
154 - fi
155 -
156 134 install_h check: FRC
157 135 @cd sys; pwd; $(MAKE) $(TARGET)
158 136 @cd asm; pwd; $(MAKE) $(TARGET)
159 137 @cd ia32/sys; pwd; $(MAKE) $(TARGET)
160 138 @cd amd64/sys; pwd; $(MAKE) $(TARGET)
161 139
162 140 #
163 141 # Work-around to disable acpica global crosscheck lint warnings
164 142 #
165 143 LGREP.intel = grep -v 'intel/io/acpica'
166 144
167 145 #
168 146 # Full kernel lint target.
169 147 #
170 148 LINT_TARGET = globallint
171 149
172 150 # workaround for multiply defined errors
173 151 globallint := LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2
174 152
175 153 globallint:
176 154 @pwd
177 155 @-$(ECHO) "\nFULL KERNEL: global crosschecks:"
178 156 @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.intel) | $(LGREP.2)
179 157
180 158 lint: modlintlib .WAIT $(LINT_DEPS)
181 159
182 160 include ../Makefile.targ
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX