author | jrose |
Wed, 23 Mar 2011 23:02:31 -0700 | |
changeset 8822 | 8145ab9f5f86 |
parent 8588 | 36e3e74be5ae |
child 8823 | 7cd28219a1e4 |
permissions | -rw-r--r-- |
2 | 1 |
# |
8822
8145ab9f5f86
7012648: move JSR 292 to package java.lang.invoke and adjust names
jrose
parents:
8588
diff
changeset
|
2 |
# Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. |
2 | 3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
# |
|
5 |
# This code is free software; you can redistribute it and/or modify it |
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
|
5506 | 7 |
# published by the Free Software Foundation. Oracle designates this |
2 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
2 | 10 |
# |
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
# accompanied this code). |
|
16 |
# |
|
17 |
# You should have received a copy of the GNU General Public License version |
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
# |
|
5506 | 21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
# or visit www.oracle.com if you need additional information or have any |
|
23 |
# questions. |
|
2 | 24 |
# |
25 |
||
26 |
include $(JDK_TOPDIR)/make/docs/CORE_PKGS.gmk |
|
27 |
include $(JDK_TOPDIR)/make/docs/NON_CORE_PKGS.gmk |
|
28 |
||
8013
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
29 |
# What jdk version are we building |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
30 |
THIS_JDK_VERSION := $(JDK_MAJOR_VERSION).$(JDK_MINOR_VERSION).$(JDK_MICRO_VERSION) |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
31 |
|
2 | 32 |
# |
33 |
# Perform release engineering tasks. |
|
34 |
# |
|
35 |
# images An image is what the product looks like when it is |
|
36 |
# installed. |
|
37 |
# |
|
38 |
||
39 |
IMAGE_BINDIR = bin |
|
40 |
||
41 |
# The compiler should not issue a "Sun Propietary" warning when compiling |
|
42 |
# classes in the com.sun.java.swing.plaf packages, since we've always |
|
43 |
# allowed, and even advocated, extending them (see bug 6476749). |
|
44 |
# |
|
45 |
# This approach is NOT to be used as a general purpose way to avoid such |
|
46 |
# compiler warnings for non-core packages. The correct way is to document |
|
47 |
# the packages in NON_CORE_PKGS.gmk, and include them in the NON_CORE_PKGS |
|
48 |
# definition. |
|
49 |
# |
|
50 |
# Swing has taken this approach only as a temporary measure to avoid |
|
51 |
# the compiler warnings until we can properly document these packages. |
|
52 |
# This is covered under 6491853. |
|
5593
b89c8108f831
6929507: Build error on file swing.plaf.synth.SynthUI
peterz
parents:
5381
diff
changeset
|
53 |
EXCLUDE_PROPWARN_PKGS = com.sun.java.swing.plaf.windows \ |
2 | 54 |
com.sun.java.swing.plaf.motif \ |
55 |
com.sun.java.swing.plaf.gtk |
|
56 |
||
5789
246b84dc50d9
6960789: com.sun.servicetag API needs to be added in ct.sym
mchung
parents:
5506
diff
changeset
|
57 |
# |
246b84dc50d9
6960789: com.sun.servicetag API needs to be added in ct.sym
mchung
parents:
5506
diff
changeset
|
58 |
# Include the exported private packages in ct.sym. |
246b84dc50d9
6960789: com.sun.servicetag API needs to be added in ct.sym
mchung
parents:
5506
diff
changeset
|
59 |
# This is an interim solution until the ct.sym is replaced |
8583
15dea0fdc2ea
7025631: Remove the modules build support from jdk 7
mchung
parents:
8461
diff
changeset
|
60 |
# with a new module system (being discussed for JDK 8). |
5789
246b84dc50d9
6960789: com.sun.servicetag API needs to be added in ct.sym
mchung
parents:
5506
diff
changeset
|
61 |
# |
8586
2ca53fa2d6e9
6908562: JFB Custom Revision Version Build/Makefile changes
asaha
parents:
8461
diff
changeset
|
62 |
EXPORTED_PRIVATE_PKGS = com.sun.servicetag \ |
2ca53fa2d6e9
6908562: JFB Custom Revision Version Build/Makefile changes
asaha
parents:
8461
diff
changeset
|
63 |
com.oracle.net |
5789
246b84dc50d9
6960789: com.sun.servicetag API needs to be added in ct.sym
mchung
parents:
5506
diff
changeset
|
64 |
|
2 | 65 |
# 64-bit solaris has a few special cases. We define the variable |
66 |
# SOLARIS64 for use in this Makefile to easily test those cases |
|
67 |
ifeq ($(PLATFORM), solaris) |
|
68 |
ifeq ($(ARCH_DATA_MODEL), 64) |
|
69 |
SOLARIS64 = true |
|
70 |
IMAGE_BINDIR = bin/$(ARCH) |
|
71 |
endif |
|
72 |
endif |
|
73 |
||
74 |
JTG_DOCS = $(JDK_TOPDIR)/src/solaris/doc |
|
75 |
||
76 |
# The base names of all the license and document files for the jdk and jre |
|
920
e455938eb00c
6734977: Fix build failure regarding the now deleted file jdk/README.html
ohair
parents:
715
diff
changeset
|
77 |
# (These files get placed in the jdk and jre install images) |
2 | 78 |
ifdef OPENJDK |
920
e455938eb00c
6734977: Fix build failure regarding the now deleted file jdk/README.html
ohair
parents:
715
diff
changeset
|
79 |
# Where to find these files |
e455938eb00c
6734977: Fix build failure regarding the now deleted file jdk/README.html
ohair
parents:
715
diff
changeset
|
80 |
SHARE_JDK_DOC_SRC = $(JDK_TOPDIR) |
e455938eb00c
6734977: Fix build failure regarding the now deleted file jdk/README.html
ohair
parents:
715
diff
changeset
|
81 |
SHARE_JRE_DOC_SRC = $(JDK_TOPDIR) |
2 | 82 |
# Same files for jdk and jre, no name changes |
8009
faa3179b2b38
6980024: Rebranding jre7/jdk7 License, Copyright, Readme
ohair
parents:
8008
diff
changeset
|
83 |
IMAGE_DOCLIST_JDK = LICENSE ASSEMBLY_EXCEPTION THIRD_PARTY_README |
faa3179b2b38
6980024: Rebranding jre7/jdk7 License, Copyright, Readme
ohair
parents:
8008
diff
changeset
|
84 |
IMAGE_DOCLIST_JRE = LICENSE ASSEMBLY_EXCEPTION THIRD_PARTY_README |
2 | 85 |
else |
920
e455938eb00c
6734977: Fix build failure regarding the now deleted file jdk/README.html
ohair
parents:
715
diff
changeset
|
86 |
# Where to find these files |
8586
2ca53fa2d6e9
6908562: JFB Custom Revision Version Build/Makefile changes
asaha
parents:
8461
diff
changeset
|
87 |
ifeq ($(J4B), true) |
2ca53fa2d6e9
6908562: JFB Custom Revision Version Build/Makefile changes
asaha
parents:
8461
diff
changeset
|
88 |
SHARE_JDK_DOC_SRC = $(CLOSED_SHARE_SRC)/doc/jdkfb |
2ca53fa2d6e9
6908562: JFB Custom Revision Version Build/Makefile changes
asaha
parents:
8461
diff
changeset
|
89 |
SHARE_JRE_DOC_SRC = $(CLOSED_SHARE_SRC)/doc/jrefb |
2ca53fa2d6e9
6908562: JFB Custom Revision Version Build/Makefile changes
asaha
parents:
8461
diff
changeset
|
90 |
else |
2ca53fa2d6e9
6908562: JFB Custom Revision Version Build/Makefile changes
asaha
parents:
8461
diff
changeset
|
91 |
SHARE_JDK_DOC_SRC = $(CLOSED_SHARE_SRC)/doc/jdk |
2ca53fa2d6e9
6908562: JFB Custom Revision Version Build/Makefile changes
asaha
parents:
8461
diff
changeset
|
92 |
SHARE_JRE_DOC_SRC = $(CLOSED_SHARE_SRC)/doc/jre |
2ca53fa2d6e9
6908562: JFB Custom Revision Version Build/Makefile changes
asaha
parents:
8461
diff
changeset
|
93 |
endif |
2ca53fa2d6e9
6908562: JFB Custom Revision Version Build/Makefile changes
asaha
parents:
8461
diff
changeset
|
94 |
|
8009
faa3179b2b38
6980024: Rebranding jre7/jdk7 License, Copyright, Readme
ohair
parents:
8008
diff
changeset
|
95 |
IMAGE_DOCLIST_JDK = COPYRIGHT README.html THIRDPARTYLICENSEREADME.txt |
faa3179b2b38
6980024: Rebranding jre7/jdk7 License, Copyright, Readme
ohair
parents:
8008
diff
changeset
|
96 |
IMAGE_DOCLIST_JRE = COPYRIGHT Welcome.html THIRDPARTYLICENSEREADME.txt |
2 | 97 |
ifeq ($(PLATFORM), windows) |
8009
faa3179b2b38
6980024: Rebranding jre7/jdk7 License, Copyright, Readme
ohair
parents:
8008
diff
changeset
|
98 |
IMAGE_DOCLIST_JRE += README.txt |
2 | 99 |
else |
8009
faa3179b2b38
6980024: Rebranding jre7/jdk7 License, Copyright, Readme
ohair
parents:
8008
diff
changeset
|
100 |
IMAGE_DOCLIST_JRE += README |
2 | 101 |
endif |
102 |
endif |
|
103 |
||
104 |
# Paths to these files we need |
|
8009
faa3179b2b38
6980024: Rebranding jre7/jdk7 License, Copyright, Readme
ohair
parents:
8008
diff
changeset
|
105 |
JDK_DOCFILES = $(IMAGE_DOCLIST_JDK:%=$(JDK_IMAGE_DIR)/%) |
faa3179b2b38
6980024: Rebranding jre7/jdk7 License, Copyright, Readme
ohair
parents:
8008
diff
changeset
|
106 |
JRE_DOCFILES = $(IMAGE_DOCLIST_JRE:%=$(JRE_IMAGE_DIR)/%) |
2 | 107 |
|
108 |
# absolute directory names: note, these must exist prior to build |
|
109 |
# time - they are created in the main Makefile. |
|
110 |
JRE_IMAGE_BINDIR = $(JRE_IMAGE_DIR)/bin |
|
111 |
||
112 |
MAINMANIFEST = $(JDK_TOPDIR)/make/tools/manifest.mf |
|
113 |
BEANMANIFEST = $(JDK_TOPDIR)/make/javax/swing/beaninfo/manifest |
|
114 |
||
115 |
# |
|
116 |
# Man pages |
|
117 |
# |
|
118 |
||
119 |
JRE_MAN_PAGES = \ |
|
120 |
java.1 \ |
|
121 |
keytool.1 \ |
|
122 |
orbd.1 \ |
|
123 |
pack200.1 \ |
|
124 |
policytool.1 \ |
|
125 |
rmid.1 \ |
|
126 |
rmiregistry.1 \ |
|
127 |
servertool.1 \ |
|
128 |
tnameserv.1 \ |
|
129 |
unpack200.1 |
|
130 |
||
8270 | 131 |
ifndef OPENJDK |
2 | 132 |
JRE_MAN_PAGES += javaws.1 |
133 |
endif |
|
134 |
||
135 |
JDK_MAN_PAGES = \ |
|
136 |
$(JRE_MAN_PAGES) \ |
|
137 |
appletviewer.1 \ |
|
138 |
apt.1 \ |
|
139 |
extcheck.1 \ |
|
140 |
idlj.1 \ |
|
141 |
jar.1 \ |
|
142 |
jarsigner.1 \ |
|
143 |
javac.1 \ |
|
144 |
javadoc.1 \ |
|
145 |
javah.1 \ |
|
146 |
javap.1 \ |
|
147 |
jconsole.1 \ |
|
148 |
jdb.1 \ |
|
149 |
jhat.1 \ |
|
150 |
jinfo.1 \ |
|
151 |
jmap.1 \ |
|
152 |
jps.1 \ |
|
153 |
jrunscript.1 \ |
|
154 |
jsadebugd.1 \ |
|
155 |
jstack.1 \ |
|
156 |
jstat.1 \ |
|
157 |
jstatd.1 \ |
|
158 |
native2ascii.1 \ |
|
159 |
rmic.1 \ |
|
160 |
schemagen.1 \ |
|
161 |
serialver.1 \ |
|
162 |
wsgen.1 \ |
|
163 |
wsimport.1 \ |
|
164 |
xjc.1 |
|
165 |
||
166 |
ifeq ($(PLATFORM), solaris) |
|
167 |
MANBASEDIRS=$(JDK_TOPDIR)/src/solaris/doc $(IMPORTDOCDIR) |
|
168 |
MAN1SUBDIR=sun/man/man1 |
|
169 |
endif # solaris |
|
170 |
||
171 |
ifeq ($(PLATFORM), linux) |
|
172 |
MANBASEDIRS=$(JDK_TOPDIR)/src/linux/doc $(IMPORTDOCDIR) |
|
173 |
MAN1SUBDIR=man |
|
174 |
JA_DIRNAME=ja_JP.$(JA_SOURCE_ENCODING) |
|
175 |
endif # linux |
|
176 |
||
177 |
define copy-man-pages |
|
178 |
$(MKDIR) -p $1/man/man1 |
|
179 |
for manbase in $(MANBASEDIRS:%=%/$(MAN1SUBDIR)) ; do \ |
|
180 |
for manpage in $2; do \ |
|
181 |
if [ -f $${manbase}/$${manpage} ] ; then \ |
|
182 |
$(CP) $${manbase}/$${manpage} $1/man/man1 ; \ |
|
183 |
for ja_encoding in $(JA_TARGET_ENCODINGS); do \ |
|
184 |
ja_dir="ja"; \ |
|
185 |
if [ "$${ja_encoding}" != "$(JA_SOURCE_ENCODING)" ]; then \ |
|
186 |
ja_dir="ja_JP.$${ja_encoding}"; \ |
|
187 |
fi; \ |
|
188 |
$(MKDIR) -p $1/man/$${ja_dir}/man1; \ |
|
189 |
$(CAT) $${manbase}/ja/$${manpage} \ |
|
190 |
| $(NATIVE2ASCII) -encoding $(JA_SOURCE_ENCODING) \ |
|
8013
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
191 |
| $(SED) 's/@@VERSION@@/$(THIS_JDK_VERSION)/g' \ |
2 | 192 |
| $(NATIVE2ASCII) -reverse -encoding $${ja_encoding} \ |
193 |
> $1/man/$${ja_dir}/man1/$${manpage}; \ |
|
194 |
done; \ |
|
195 |
fi; \ |
|
196 |
done; \ |
|
197 |
done |
|
198 |
$(java-vm-cleanup) |
|
199 |
if [ "$(JA_DIRNAME)" != "" ] ; then \ |
|
200 |
$(MV) $1/man/ja $1/man/$(JA_DIRNAME); \ |
|
201 |
$(CD) $1/man && $(LN) -s $(JA_DIRNAME) ja; \ |
|
202 |
fi |
|
203 |
endef |
|
204 |
||
205 |
# |
|
206 |
# Targets. |
|
207 |
# |
|
208 |
INITIAL_IMAGE_JRE=initial-image-jre |
|
209 |
INITIAL_IMAGE_JDK=initial-image-jdk |
|
210 |
ifeq ($(PLATFORM), solaris) |
|
211 |
ifeq ($(ARCH_DATA_MODEL), 64) |
|
212 |
INITIAL_IMAGE_JRE=initial-image-jre-sol64 |
|
213 |
INITIAL_IMAGE_JDK=initial-image-jdk-sol64 |
|
214 |
endif |
|
215 |
endif |
|
216 |
||
217 |
images images-clobber \ |
|
218 |
initial-image-jre initial-image-jdk \ |
|
219 |
initial-image-jre-sol64 initial-image-jdk-sol64 \ |
|
220 |
trim-image-jre trim-image-jdk \ |
|
8013
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
221 |
identify-image-jre identify-image-jdk \ |
2 | 222 |
process-image-jre process-image-jdk \ |
223 |
compare-image \ |
|
224 |
sec-files sec-files-win jgss-files :: |
|
225 |
@$(ECHO) ">>>Making "$@" @ `$(DATE)` ..." |
|
226 |
||
227 |
# Order is important here, trim jre after jdk image is created |
|
228 |
images:: sanity-images post-sanity-images \ |
|
229 |
$(INITIAL_IMAGE_JRE) $(INITIAL_IMAGE_JDK) \ |
|
230 |
trim-image-jre trim-image-jdk \ |
|
8013
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
231 |
identify-image-jre identify-image-jdk \ |
2 | 232 |
process-image-jre process-image-jdk sec-files sec-files-win jgss-files |
233 |
||
234 |
# Don't use these |
|
8013
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
235 |
image-jre:: initial-image-jre trim-image-jre identify-image-jre process-image-jre |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
236 |
image-jdk:: initial-image-jdk trim-image-jdk identify-image-jdk process-image-jdk |
2 | 237 |
|
238 |
# |
|
239 |
# Sources we ship in the SDK. |
|
240 |
# |
|
241 |
SOURCES = \ |
|
242 |
java/applet \ |
|
243 |
java/awt \ |
|
244 |
java/beans \ |
|
245 |
java/io \ |
|
246 |
java/lang \ |
|
247 |
java/math \ |
|
248 |
java/net \ |
|
249 |
java/nio \ |
|
250 |
java/rmi \ |
|
251 |
java/security \ |
|
252 |
java/sql \ |
|
253 |
java/text \ |
|
254 |
java/util \ |
|
255 |
com/sun/corba \ |
|
256 |
com/sun/image/codec/jpeg \ |
|
257 |
com/sun/imageio \ |
|
258 |
com/sun/java/swing \ |
|
259 |
com/sun/javadoc \ |
|
260 |
com/sun/jmx \ |
|
261 |
com/sun/mirror \ |
|
262 |
com/sun/source \ |
|
263 |
com/sun/naming \ |
|
264 |
com/sun/security/auth \ |
|
265 |
com/sun/security/jgss \ |
|
266 |
javax/accessibility \ |
|
267 |
javax/annotation \ |
|
268 |
javax/script \ |
|
269 |
javax/imageio \ |
|
270 |
javax/lang \ |
|
271 |
javax/management \ |
|
272 |
javax/naming \ |
|
273 |
javax/print \ |
|
274 |
javax/rmi \ |
|
275 |
javax/security \ |
|
276 |
javax/sound \ |
|
277 |
javax/sql \ |
|
278 |
javax/swing \ |
|
279 |
javax/tools \ |
|
280 |
javax/xml \ |
|
281 |
com/sun/org/apache \ |
|
282 |
com/sun/java_cup \ |
|
283 |
com/sun/jlex \ |
|
284 |
org/ietf \ |
|
285 |
org/omg \ |
|
286 |
org/w3c/dom \ |
|
287 |
org/xml/sax \ |
|
288 |
sunw |
|
289 |
# |
|
290 |
# Directories where sources may be found. If a file with the same path |
|
291 |
# name exists in more than one of these places, the one found last on this |
|
292 |
# list wins. |
|
293 |
# |
|
294 |
SOURCE_DIRS = $(SHARE_SRC)/classes $(PLATFORM_SRC)/classes |
|
295 |
SOURCE_DIRS += $(GENSRCDIR) |
|
296 |
SOURCE_DIRS += $(IMPORTSRCDIR) |
|
297 |
ifndef OPENJDK |
|
298 |
SOURCE_DIRS += $(CLOSED_SRC)/share/classes |
|
299 |
endif |
|
300 |
||
301 |
||
302 |
# |
|
303 |
# Specific files and directories that will be filtered out from above areas. |
|
304 |
# |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
3288
diff
changeset
|
305 |
SOURCE_FILTERs = $(SCM_DIRs) ',*' |
2 | 306 |
SOURCE_FILES_filter = $(SOURCE_FILTERs:%=-name % -prune -o) |
307 |
||
308 |
# |
|
309 |
# Bug 4249883 - excluding some unnecessary packages from com.sun.tools |
|
310 |
# |
|
311 |
# Bug 5008685 - exclude jconsole from sun/tools |
|
312 |
# |
|
313 |
TOOLS = \ |
|
314 |
META-INF/services/com.sun.jdi.connect.Connector \ |
|
315 |
META-INF/services/com.sun.jdi.connect.spi.TransportService \ |
|
316 |
sun/tools/asm \ |
|
317 |
sun/tools/jar \ |
|
318 |
sun/tools/java \ |
|
319 |
sun/tools/javac \ |
|
320 |
sun/tools/jps \ |
|
321 |
sun/tools/jstat \ |
|
322 |
sun/tools/jstatd \ |
|
323 |
sun/tools/native2ascii \ |
|
324 |
sun/tools/serialver \ |
|
325 |
sun/tools/tree \ |
|
326 |
sun/tools/util \ |
|
327 |
sun/security/tools/JarBASE64Encoder.class \ |
|
328 |
sun/security/tools/JarSigner.class \ |
|
329 |
sun/security/tools/JarSignerParameters.class \ |
|
330 |
sun/security/tools/JarSignerResources.class \ |
|
331 |
sun/security/tools/JarSignerResources_ja.class \ |
|
332 |
sun/security/tools/JarSignerResources_zh_CN.class \ |
|
333 |
sun/security/tools/SignatureFile\$$Block.class \ |
|
334 |
sun/security/tools/SignatureFile.class \ |
|
335 |
sun/security/tools/TimestampedSigner.class \ |
|
336 |
sun/rmi/rmic \ |
|
337 |
sun/applet \ |
|
338 |
sun/jvmstat \ |
|
339 |
com/sun/javadoc \ |
|
340 |
com/sun/jdi \ |
|
341 |
com/sun/jarsigner \ |
|
342 |
com/sun/mirror \ |
|
343 |
com/sun/source \ |
|
684 | 344 |
com/sun/tools/classfile \ |
2 | 345 |
com/sun/tools/doclets \ |
346 |
com/sun/tools/example/debug/expr \ |
|
347 |
com/sun/tools/example/debug/tty \ |
|
348 |
com/sun/tools/extcheck \ |
|
349 |
com/sun/tools/hat \ |
|
350 |
com/sun/tools/javac \ |
|
351 |
com/sun/tools/javadoc \ |
|
352 |
com/sun/tools/apt \ |
|
353 |
com/sun/tools/javah \ |
|
684 | 354 |
com/sun/tools/javap \ |
2 | 355 |
com/sun/tools/corba \ |
356 |
com/sun/tools/internal/xjc \ |
|
357 |
com/sun/tools/internal/ws \ |
|
358 |
META-INF/services/com.sun.mirror.apt.AnnotationProcessorFactory \ |
|
359 |
META-INF/services/com.sun.tools.xjc.Plugin \ |
|
360 |
com/sun/istack/internal/tools \ |
|
361 |
com/sun/istack/internal/ws \ |
|
362 |
com/sun/codemodel \ |
|
363 |
com/sun/tools/internal/jxc \ |
|
364 |
com/sun/xml/internal/rngom \ |
|
365 |
com/sun/xml/internal/xsom \ |
|
366 |
org/relaxng/datatype \ |
|
367 |
com/sun/xml/internal/dtdparser \ |
|
368 |
com/sun/tools/jdi \ |
|
369 |
com/sun/tools/script/shell \ |
|
370 |
META-INF/services/com.sun.tools.attach.spi.AttachProvider \ |
|
371 |
com/sun/tools/attach \ |
|
372 |
sun/tools/attach \ |
|
373 |
sun/tools/jstack \ |
|
374 |
sun/tools/jinfo \ |
|
375 |
sun/tools/jmap |
|
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
376 |
|
2 | 377 |
# classes that go into jsse.jar |
378 |
JSSE_CLASSES_DIRS = \ |
|
379 |
sun/security/provider/Sun.class \ |
|
380 |
sun/security/rsa/SunRsaSign.class \ |
|
381 |
sun/security/ssl \ |
|
382 |
com/sun/net/ssl/internal/ssl |
|
383 |
||
384 |
# files under $(OUTPUTDIR) that need to go into sec-bin.zip for builds |
|
385 |
# where the corresponding sources are not available |
|
386 |
SEC_FILES_DIRS = \ |
|
387 |
classes/javax/net \ |
|
388 |
classes/javax/security/cert \ |
|
389 |
classes/com/sun/net/ssl \ |
|
390 |
classes/com/sun/security/cert \ |
|
391 |
classes/sun/net/www/protocol/https \ |
|
392 |
classes/sun/security/pkcs12 \ |
|
393 |
classes/sun/security/ssl \ |
|
394 |
classes/sun/security/krb5/*.class \ |
|
395 |
classes/sun/security/krb5/internal/*.class \ |
|
396 |
classes/sun/security/krb5/internal/ccache \ |
|
397 |
classes/sun/security/krb5/internal/crypto \ |
|
398 |
classes/sun/security/krb5/internal/ktab \ |
|
399 |
classes/sun/security/krb5/internal/rcache \ |
|
400 |
classes/sun/security/krb5/internal/util \ |
|
401 |
classes/sun/security/jgss/spi/GSSContextSpi.class |
|
402 |
||
403 |
# files under $(OUTPUTDIR) that need to go into sec-windows-win.zip for builds |
|
404 |
# where the corresponding sources are not available |
|
405 |
SEC_FILES_WIN_DIRS = \ |
|
406 |
classes/sun/security/krb5/internal/tools |
|
407 |
||
408 |
# files under $(BINDIR) that need to go into jgss_files.zip for builds |
|
409 |
# where the corresponding sources are not available |
|
410 |
JGSS_FILES_DIRS = \ |
|
411 |
bin/w2k_lsa_auth.dll \ |
|
412 |
bin/w2k_lsa_auth.map \ |
|
413 |
bin/w2k_lsa_auth.pdb |
|
414 |
||
415 |
# The following get removed from the SDK image. |
|
416 |
NOTJDKTOOLS = \ |
|
417 |
java_vm |
|
418 |
||
419 |
# The following get removed from the JRE after the bulk-copy of BINDIR... |
|
420 |
NOTJRETOOLS = \ |
|
421 |
appletviewer$(EXE_SUFFIX) \ |
|
422 |
extcheck$(EXE_SUFFIX) \ |
|
423 |
idlj$(EXE_SUFFIX) \ |
|
424 |
jar$(EXE_SUFFIX) \ |
|
425 |
jarsigner$(EXE_SUFFIX) \ |
|
426 |
java-rmi.cgi \ |
|
427 |
javac$(EXE_SUFFIX) \ |
|
428 |
javadoc$(EXE_SUFFIX) \ |
|
429 |
apt$(EXE_SUFFIX) \ |
|
430 |
javah$(EXE_SUFFIX) \ |
|
431 |
javap$(EXE_SUFFIX) \ |
|
432 |
jdb$(EXE_SUFFIX) \ |
|
433 |
jps$(EXE_SUFFIX) \ |
|
434 |
jrunscript$(EXE_SUFFIX) \ |
|
435 |
jstat$(EXE_SUFFIX) \ |
|
436 |
jstatd$(EXE_SUFFIX) \ |
|
437 |
jstack$(EXE_SUFFIX) \ |
|
438 |
packagebean$(SCRIPT_SUFFIX) \ |
|
439 |
rmic$(EXE_SUFFIX) \ |
|
440 |
serialver$(EXE_SUFFIX) \ |
|
441 |
unregbean$(EXE_SUFFIX) \ |
|
442 |
jconsole$(EXE_SUFFIX) \ |
|
443 |
jinfo$(EXE_SUFFIX) \ |
|
444 |
jmap$(EXE_SUFFIX) \ |
|
445 |
native2ascii$(EXE_SUFFIX) \ |
|
446 |
xjc$(EXE_SUFFIX) \ |
|
447 |
wsgen$(EXE_SUFFIX) \ |
|
448 |
wsimport$(EXE_SUFFIX) \ |
|
449 |
schemagen$(EXE_SUFFIX) \ |
|
450 |
jsadebugd$(EXE_SUFFIX) \ |
|
451 |
jhat$(EXE_SUFFIX) |
|
452 |
||
453 |
# The following get removed from the JRE after the bulk-copy of LIBDIR... |
|
454 |
NOTJRELIBS = tools.jar \ |
|
455 |
jconsole.jar |
|
456 |
||
457 |
ifeq ($(INCLUDE_SA), true) |
|
458 |
NOTJRELIBS += sa-jdi.jar |
|
459 |
||
460 |
# The following get removed from the JRE after the bulk-copy of LIBDIR... |
|
461 |
NOTJRE_SHARED_LIBS = $(SALIB_NAME) |
|
462 |
else |
|
463 |
NOTJRE_SHARED_LIBS = |
|
464 |
endif |
|
465 |
||
466 |
# Attach library is JDK only |
|
467 |
NOTJRE_SHARED_LIBS += $(LIB_PREFIX)attach.$(LIBRARY_SUFFIX) |
|
468 |
||
469 |
# |
|
470 |
###### RULES |
|
471 |
||
472 |
# Processing license files from source area to image area |
|
473 |
# These will be modified to have the platform specific EOL chars. |
|
474 |
define process-doc-file |
|
475 |
$(prep-target) |
|
476 |
$(SED) 's/$$//g' $< > $@ |
|
477 |
$(CHMOD) 444 $@ |
|
478 |
endef |
|
479 |
||
480 |
# JDK files |
|
481 |
$(JDK_IMAGE_DIR)/%: $(SHARE_JDK_DOC_SRC)/% |
|
482 |
$(process-doc-file) |
|
483 |
||
484 |
# JRE files |
|
485 |
$(JRE_IMAGE_DIR)/%: $(SHARE_JRE_DOC_SRC)/% |
|
486 |
$(process-doc-file) |
|
8009
faa3179b2b38
6980024: Rebranding jre7/jdk7 License, Copyright, Readme
ohair
parents:
8008
diff
changeset
|
487 |
ifeq ($(PLATFORM), windows) |
faa3179b2b38
6980024: Rebranding jre7/jdk7 License, Copyright, Readme
ohair
parents:
8008
diff
changeset
|
488 |
$(JRE_IMAGE_DIR)/README.txt: $(SHARE_JRE_DOC_SRC)/README |
2 | 489 |
$(process-doc-file) |
490 |
endif |
|
491 |
||
492 |
# Differences tool |
|
493 |
DIRDIFF_JARFILE = $(BUILDTOOLJARDIR)/dirdiff.jar |
|
494 |
||
495 |
###################################################### |
|
496 |
# List of directories in classes directory that should NOT be in rt.jar |
|
497 |
###################################################### |
|
498 |
||
499 |
NOT_RT_JAR_LIST = $(ABS_TEMPDIR)/not_rt_jar.list |
|
500 |
||
501 |
$(NOT_RT_JAR_LIST): FRC |
|
502 |
$(prep-target) |
|
503 |
$(ECHO) "#\n" >> $@ |
|
504 |
$(ECHO) "# List of subdirectories not in include in rt.jar" >> $@ |
|
505 |
$(ECHO) "# Directories must contain trailing '/'." >> $@ |
|
506 |
$(ECHO) "com/sun/javadoc/" >> $@ |
|
507 |
$(ECHO) "com/sun/jdi/" >> $@ |
|
508 |
$(ECHO) "com/sun/jarsigner/" >> $@ |
|
509 |
$(ECHO) "com/sun/mirror/" >> $@ |
|
510 |
$(ECHO) "com/sun/source/" >> $@ |
|
511 |
$(ECHO) "com/sun/istack/internal/tools/" >> $@ |
|
512 |
$(ECHO) "com/sun/istack/internal/ws/" >> $@ |
|
513 |
$(ECHO) "META-INF/services/com.sun.jdi.connect.Connector" >> $@ |
|
514 |
$(ECHO) "META-INF/services/com.sun.jdi.connect.spi.TransportService" >> $@ |
|
515 |
$(ECHO) "META-INF/services/com.sun.mirror.apt.AnnotationProcessorFactory" >> $@ |
|
516 |
$(ECHO) "META-INF/services/com.sun.tools.xjc.Plugin" >> $@ |
|
517 |
$(ECHO) "com/sun/tools/" >> $@ |
|
518 |
$(ECHO) "sun/jvmstat/" >> $@ |
|
6111
48902dd9b4d7
6964313: Find sun/nio/cs/ext issue with CreateSymbols, then move sun/nio/cs/ext to charset.jar
sherman
parents:
5976
diff
changeset
|
519 |
$(ECHO) "sun/nio/cs/ext/" >> $@ |
48902dd9b4d7
6964313: Find sun/nio/cs/ext issue with CreateSymbols, then move sun/nio/cs/ext to charset.jar
sherman
parents:
5976
diff
changeset
|
520 |
$(ECHO) "sun/awt/HKSCS.class" >> $@ |
6532
46e43203603e
6971706: sun/nio/cs/ext/* classes are duplicated between rt.jar, charsets.jar, and localedata.jar
alanb
parents:
6111
diff
changeset
|
521 |
$(ECHO) "sun/awt/motif/X11GB2312\$$Decoder.class" >> $@ |
46e43203603e
6971706: sun/nio/cs/ext/* classes are duplicated between rt.jar, charsets.jar, and localedata.jar
alanb
parents:
6111
diff
changeset
|
522 |
$(ECHO) "sun/awt/motif/X11GB2312\$$Encoder.class" >> $@ |
6111
48902dd9b4d7
6964313: Find sun/nio/cs/ext issue with CreateSymbols, then move sun/nio/cs/ext to charset.jar
sherman
parents:
5976
diff
changeset
|
523 |
$(ECHO) "sun/awt/motif/X11GB2312.class" >> $@ |
6532
46e43203603e
6971706: sun/nio/cs/ext/* classes are duplicated between rt.jar, charsets.jar, and localedata.jar
alanb
parents:
6111
diff
changeset
|
524 |
$(ECHO) "sun/awt/motif/X11GBK\$$Encoder.class" >> $@ |
6111
48902dd9b4d7
6964313: Find sun/nio/cs/ext issue with CreateSymbols, then move sun/nio/cs/ext to charset.jar
sherman
parents:
5976
diff
changeset
|
525 |
$(ECHO) "sun/awt/motif/X11GBK.class" >> $@ |
6532
46e43203603e
6971706: sun/nio/cs/ext/* classes are duplicated between rt.jar, charsets.jar, and localedata.jar
alanb
parents:
6111
diff
changeset
|
526 |
$(ECHO) "sun/awt/motif/X11KSC5601\$$Decoder.class" >> $@ |
46e43203603e
6971706: sun/nio/cs/ext/* classes are duplicated between rt.jar, charsets.jar, and localedata.jar
alanb
parents:
6111
diff
changeset
|
527 |
$(ECHO) "sun/awt/motif/X11KSC5601\$$Encoder.class" >> $@ |
6111
48902dd9b4d7
6964313: Find sun/nio/cs/ext issue with CreateSymbols, then move sun/nio/cs/ext to charset.jar
sherman
parents:
5976
diff
changeset
|
528 |
$(ECHO) "sun/awt/motif/X11KSC5601.class" >> $@ |
2 | 529 |
$(ECHO) "sun/rmi/rmic/" >> $@ |
530 |
$(ECHO) "sun/tools/asm/" >> $@ |
|
531 |
$(ECHO) "sun/tools/java/" >> $@ |
|
532 |
$(ECHO) "sun/tools/javac/" >> $@ |
|
684 | 533 |
$(ECHO) "com/sun/tools/classfile/" >> $@ |
534 |
$(ECHO) "com/sun/tools/javap/" >> $@ |
|
2 | 535 |
$(ECHO) "sun/tools/jconsole/" >> $@ |
536 |
$(ECHO) "sun/tools/jps/" >> $@ |
|
537 |
$(ECHO) "sun/tools/jstat/" >> $@ |
|
538 |
$(ECHO) "sun/tools/jstatd/" >> $@ |
|
539 |
$(ECHO) "sun/tools/native2ascii/" >> $@ |
|
540 |
$(ECHO) "sun/tools/serialver/" >> $@ |
|
541 |
$(ECHO) "sun/tools/tree/" >> $@ |
|
542 |
$(ECHO) "sun/tools/util/" >> $@ |
|
543 |
$(ECHO) "sun/security/tools/JarBASE64Encoder.class" >> $@ |
|
544 |
$(ECHO) "sun/security/tools/JarSigner.class" >> $@ |
|
545 |
$(ECHO) "sun/security/tools/JarSignerParameters.class" >> $@ |
|
546 |
$(ECHO) "sun/security/tools/JarSignerResources.class" >> $@ |
|
547 |
$(ECHO) "sun/security/tools/JarSignerResources_ja.class" >> $@ |
|
548 |
$(ECHO) "sun/security/tools/JarSignerResources_zh_CN.class" >> $@ |
|
549 |
$(ECHO) "sun/security/tools/SignatureFile\$$Block.class" >> $@ |
|
550 |
$(ECHO) "sun/security/tools/SignatureFile.class" >> $@ |
|
551 |
$(ECHO) "sun/security/tools/TimestampedSigner.class" >> $@ |
|
552 |
$(ECHO) "sun/security/provider/Sun.class" >> $@ |
|
553 |
$(ECHO) "sun/security/rsa/SunRsaSign.class" >> $@ |
|
554 |
$(ECHO) "sun/security/ssl/" >> $@ |
|
555 |
$(ECHO) "com/sun/net/ssl/internal/ssl/" >> $@ |
|
556 |
$(ECHO) "javax/crypto/" >> $@ |
|
557 |
$(ECHO) "sun/security/internal/" >> $@ |
|
558 |
$(ECHO) "com/sun/crypto/provider/" >> $@ |
|
559 |
$(ECHO) "META-INF/services/com.sun.tools.attach.spi.AttachProvider" >> $@ |
|
560 |
$(ECHO) "com/sun/tools/attach/" >> $@ |
|
561 |
$(ECHO) "org/relaxng/datatype/" >> $@ |
|
562 |
$(ECHO) "com/sun/codemodel/" >> $@ |
|
563 |
$(ECHO) "com/sun/xml/internal/dtdparser/" >> $@ |
|
564 |
$(ECHO) "com/sun/xml/internal/rngom/" >> $@ |
|
565 |
$(ECHO) "com/sun/xml/internal/xsom/" >> $@ |
|
566 |
$(ECHO) "com/sun/tools/script/shell/" >> $@ |
|
567 |
$(ECHO) "sun/tools/attach/" >> $@ |
|
568 |
$(ECHO) "sun/tools/jstack/" >> $@ |
|
569 |
$(ECHO) "sun/tools/jinfo/" >> $@ |
|
570 |
$(ECHO) "sun/tools/jmap/" >> $@ |
|
571 |
||
572 |
||
573 |
# File order list for rt.jar |
|
574 |
# - sun.applet is included, till hotjava stops relying on it. |
|
575 |
# - sun.tools.jar is included, needs cleanup. |
|
576 |
# |
|
577 |
REORDER_TEMPDIR=$(ABS_TEMPDIR)/reorder |
|
578 |
TOTAL_JAR_FILELIST=$(REORDER_TEMPDIR)/file_list |
|
579 |
||
580 |
JARFILELISTS_TEMPDIR=$(ABS_TEMPDIR)/jarfilelists |
|
581 |
RT_JAR_FILELIST=$(JARFILELISTS_TEMPDIR)/rt_jar_list |
|
582 |
RES_JAR_FILELIST=$(JARFILELISTS_TEMPDIR)/resources_jar_list |
|
583 |
||
584 |
JARREORDER_JARFILE = $(ABS_BUILDTOOLJARDIR)/jarreorder.jar |
|
585 |
||
586 |
$(TOTAL_JAR_FILELIST): $(JARREORDER_JARFILE) $(NOT_RT_JAR_LIST) |
|
587 |
$(prep-target) |
|
588 |
$(RM) $@.temp |
|
589 |
($(CD) $(CLASSBINDIR) && \ |
|
590 |
$(BOOT_JAVA_CMD) -jar $(JARREORDER_JARFILE) \ |
|
591 |
-o $@.temp $(ABS_LIBDIR)/classlist $(NOT_RT_JAR_LIST) . ) |
|
592 |
$(MV) $@.temp $@ |
|
593 |
@($(CD) $(CLASSBINDIR) && $(java-vm-cleanup)) |
|
594 |
||
595 |
# Create the rt.jar file list & non-class files list |
|
596 |
||
597 |
JARSPLIT_JARFILE = $(BUILDTOOLJARDIR)/jarsplit.jar |
|
598 |
||
599 |
$(RT_JAR_FILELIST) + $(RES_JAR_FILELIST): \ |
|
600 |
$(TOTAL_JAR_FILELIST) $(JARSPLIT_JARFILE) |
|
601 |
@$(RM) $(RT_JAR_FILELIST) $(RES_JAR_FILELIST) |
|
602 |
$(MKDIR) -p $(JARFILELISTS_TEMPDIR) |
|
603 |
$(BOOT_JAVA_CMD) -jar $(JARSPLIT_JARFILE) \ |
|
604 |
$(TOTAL_JAR_FILELIST) \ |
|
605 |
-o $(RT_JAR_FILELIST) $(RES_JAR_FILELIST) |
|
606 |
@$(java-vm-cleanup) |
|
607 |
||
608 |
# Create the manifest file. |
|
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
609 |
JAR_MANIFEST_FILE=$(ABS_TEMPDIR)/manifest.tmp |
2 | 610 |
$(JAR_MANIFEST_FILE): $(MAINMANIFEST) $(BEANMANIFEST) |
611 |
$(prep-target) |
|
5552 | 612 |
$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \ |
613 |
-e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \ |
|
614 |
$(MAINMANIFEST) >> $@ |
|
2 | 615 |
$(ECHO) >> $@ |
616 |
$(CAT) $(BEANMANIFEST) >> $@ |
|
617 |
||
618 |
# Create resources.jar containing non-class files |
|
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
619 |
RESOURCES_JAR=$(ABS_TEMPDIR)/resources-orig.jar |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
620 |
$(RESOURCES_JAR): $(RES_JAR_FILELIST) $(JAR_MANIFEST_FILE) |
2 | 621 |
$(prep-target) |
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
622 |
$(CD) $(CLASSBINDIR) && \ |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
623 |
$(BOOT_JAR_CMD) c0mf $(JAR_MANIFEST_FILE) $@ \ |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
624 |
@$(RES_JAR_FILELIST) $(BOOT_JAR_JFLAGS) |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
625 |
@$(CD) $(CLASSBINDIR) && $(java-vm-cleanup) |
2 | 626 |
|
627 |
# Create jsse.jar containing SunJSSE implementation classes |
|
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
628 |
JSSE_JAR=$(ABS_TEMPDIR)/jsse-orig.jar |
2 | 629 |
$(JSSE_JAR): $(JAR_MANIFEST_FILE) |
630 |
$(prep-target) |
|
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
631 |
$(CD) $(CLASSBINDIR) && \ |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
632 |
$(BOOT_JAR_CMD) c0mf $(JAR_MANIFEST_FILE) $@ \ |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
633 |
$(JSSE_CLASSES_DIRS) $(BOOT_JAR_JFLAGS) |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
634 |
@$(CD) $(CLASSBINDIR) && $(java-vm-cleanup) |
2 | 635 |
|
636 |
# Create sec-bin.zip |
|
637 |
SEC_FILES_ZIP=$(ABS_TEMPDIR)/sec-bin.zip |
|
638 |
sec-files:: |
|
639 |
$(prep-target) |
|
640 |
$(RM) $(SEC_FILES_ZIP) |
|
641 |
$(CD) $(OUTPUTDIR) && \ |
|
642 |
$(ZIPEXE) -rq9 $(SEC_FILES_ZIP) $(SEC_FILES_DIRS) |
|
643 |
@$(java-vm-cleanup) |
|
644 |
||
645 |
# Create sec-windows-bin.zip |
|
646 |
SEC_FILES_WIN_ZIP=$(ABS_TEMPDIR)/sec-windows-bin.zip |
|
647 |
sec-files-win:: |
|
648 |
ifeq ($(PLATFORM), windows) |
|
649 |
$(prep-target) |
|
650 |
$(RM) $(SEC_FILES_WIN_ZIP) |
|
651 |
$(CD) $(OUTPUTDIR) && \ |
|
652 |
$(ZIPEXE) -rq9 $(SEC_FILES_WIN_ZIP) $(SEC_FILES_WIN_DIRS) |
|
653 |
@$(java-vm-cleanup) |
|
654 |
endif |
|
655 |
||
656 |
# Create JGSS files that contains the native Kerberos library |
|
657 |
JGSS_WIN32_FILES_ZIP=$(ABS_TEMPDIR)/jgss-windows-i586-bin.zip |
|
658 |
JGSS_WIN64_FILES_ZIP=$(ABS_TEMPDIR)/jgss-windows-x64-bin.zip |
|
659 |
jgss-files:: |
|
660 |
ifeq ($(PLATFORM), windows) |
|
661 |
$(prep-target) |
|
662 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
663 |
$(RM) $(JGSS_WIN32_FILES_ZIP) |
|
664 |
$(CD) $(OUTPUTDIR) && \ |
|
665 |
$(ZIPEXE) -rq9 $(JGSS_WIN32_FILES_ZIP) $(JGSS_FILES_DIRS) |
|
666 |
else |
|
667 |
$(RM) $(JGSS_WIN64_FILES_ZIP) |
|
668 |
$(CD) $(OUTPUTDIR) && \ |
|
669 |
$(ZIPEXE) -rq9 $(JGSS_WIN64_FILES_ZIP) $(JGSS_FILES_DIRS) |
|
670 |
endif |
|
671 |
@$(java-vm-cleanup) |
|
672 |
endif |
|
673 |
||
674 |
# Create rt.jar |
|
675 |
RT_JAR=$(ABS_TEMPDIR)/rt-orig.jar |
|
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
676 |
$(RT_JAR): $(RT_JAR_FILELIST) $(JAR_MANIFEST_FILE) |
2 | 677 |
$(prep-target) |
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
678 |
$(CD) $(CLASSBINDIR) && \ |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
679 |
$(BOOT_JAR_CMD) c0mf $(JAR_MANIFEST_FILE) $@ \ |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
680 |
@$(RT_JAR_FILELIST) $(BOOT_JAR_JFLAGS) |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
681 |
@$(CD) $(CLASSBINDIR) && $(java-vm-cleanup) |
2 | 682 |
|
683 |
# Meta-index construction to make core class loaders lazier |
|
684 |
||
685 |
BUILDMETAINDEX_JARFILE = $(ABS_BUILDTOOLJARDIR)/buildmetaindex.jar |
|
686 |
||
687 |
###################################################### |
|
688 |
# JRE Image |
|
689 |
###################################################### |
|
690 |
||
691 |
initial-image-jre-setup: |
|
692 |
$(RM) -r $(JRE_IMAGE_DIR) |
|
693 |
$(MKDIR) -p $(JRE_IMAGE_DIR) |
|
694 |
||
695 |
# 64-bit solaris jre image contains only the 64-bit add-on files. |
|
8009
faa3179b2b38
6980024: Rebranding jre7/jdk7 License, Copyright, Readme
ohair
parents:
8008
diff
changeset
|
696 |
initial-image-jre-sol64:: initial-image-jre-setup |
2 | 697 |
@# Use tar instead of cp to preserve the symbolic links |
698 |
for dir in bin lib ; do \ |
|
699 |
( $(CD) $(OUTPUTDIR) && \ |
|
700 |
$(TAR) cf - `$(FIND) $$dir -name '$(ARCH)' -print` | \ |
|
701 |
($(CD) $(JRE_IMAGE_DIR) && $(TAR) xf -) ) ; \ |
|
702 |
done |
|
703 |
@# Remove some files from the jre area |
|
704 |
for t in $(NOTJRETOOLS) ; do \ |
|
705 |
$(RM) $(JRE_IMAGE_DIR)/bin$(ISA_DIR)/$$t ; \ |
|
706 |
done |
|
707 |
for l in $(NOTJRELIBS) ; do \ |
|
708 |
$(RM) $(JRE_IMAGE_DIR)/lib/$$l ; \ |
|
709 |
done |
|
710 |
$(RM) `$(FIND) $(JRE_IMAGE_DIR)/lib -name 'orb.idl'` |
|
711 |
$(RM) `$(FIND) $(JRE_IMAGE_DIR)/lib -name 'ir.idl'` |
|
712 |
||
713 |
# Construct an initial jre image (initial jdk jre) no trimming or stripping |
|
5381
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
714 |
# See "initial-image-jdk-setup" for an explanation of the rm of |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
715 |
# drive names like C: |
2 | 716 |
initial-image-jre:: initial-image-jre-setup \ |
8009
faa3179b2b38
6980024: Rebranding jre7/jdk7 License, Copyright, Readme
ohair
parents:
8008
diff
changeset
|
717 |
$(JRE_DOCFILES) \ |
2 | 718 |
$(RT_JAR) $(RESOURCES_JAR) $(JSSE_JAR) \ |
719 |
$(BUILDMETAINDEX_JARFILE) |
|
720 |
@# Copy in bin directory |
|
721 |
$(CD) $(OUTPUTDIR) && $(FIND) bin -depth | $(CPIO) -pdum $(JRE_IMAGE_DIR) |
|
722 |
@# CTE plugin security change require new empty directory lib/applet |
|
723 |
$(MKDIR) -p $(JRE_IMAGE_DIR)/lib/applet |
|
724 |
@# Copy in lib directory |
|
725 |
$(CD) $(OUTPUTDIR) && $(FIND) lib -depth | $(CPIO) -pdum $(JRE_IMAGE_DIR) |
|
5381
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
726 |
ifeq ($(USING_CYGWIN),true) |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
727 |
$(RM) -rf $(JRE_IMAGE_DIR)/[A-Za-z]: |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
728 |
$(RM) -rf $(OUTPUTDIR)/[A-Za-z]: |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
729 |
endif |
2 | 730 |
@# Make sure all directories are read/execute for everyone |
731 |
$(CHMOD) a+rx `$(FIND) $(JRE_IMAGE_DIR) -type d` |
|
732 |
@# Remove some files from the jre area |
|
733 |
for t in $(NOTJRETOOLS) ; do \ |
|
734 |
$(RM) $(JRE_IMAGE_DIR)/bin$(ISA_DIR)/$$t ; \ |
|
735 |
done |
|
736 |
for l in $(NOTJRELIBS) ; do \ |
|
737 |
$(RM) $(JRE_IMAGE_DIR)/lib/$$l ; \ |
|
738 |
done |
|
739 |
@# Remove orb.idl and ir.idl from jre |
|
740 |
$(FIND) $(JRE_IMAGE_DIR)/lib -name 'orb.idl' -exec $(RM) \{} \; |
|
741 |
$(FIND) $(JRE_IMAGE_DIR)/lib -name 'ir.idl' -exec $(RM) \{} \; |
|
742 |
@# Copy in rt.jar & resources.jar file |
|
743 |
$(CP) $(RT_JAR) $(JRE_IMAGE_DIR)/lib/rt.jar |
|
744 |
$(CP) $(RESOURCES_JAR) $(JRE_IMAGE_DIR)/lib/resources.jar |
|
745 |
$(CP) $(JSSE_JAR) $(JRE_IMAGE_DIR)/lib/jsse.jar |
|
746 |
@# Generate meta-index to make boot and extension class loaders lazier |
|
747 |
$(CD) $(JRE_IMAGE_DIR)/lib && \ |
|
748 |
$(BOOT_JAVA_CMD) -jar $(BUILDMETAINDEX_JARFILE) \ |
|
749 |
-o meta-index *.jar |
|
750 |
@$(CD) $(JRE_IMAGE_DIR)/lib && $(java-vm-cleanup) |
|
751 |
$(CD) $(JRE_IMAGE_DIR)/lib/ext && \ |
|
752 |
$(BOOT_JAVA_CMD) -jar $(BUILDMETAINDEX_JARFILE) \ |
|
753 |
-o meta-index *.jar |
|
754 |
@$(CD) $(JRE_IMAGE_DIR)/lib/ext && $(java-vm-cleanup) |
|
755 |
ifeq ($(PLATFORM), windows) |
|
756 |
@# Remove certain *.lib files |
|
757 |
$(CD) $(JRE_IMAGE_DIR)/lib && \ |
|
758 |
$(RM) java.$(LIB_SUFFIX) jvm.$(LIB_SUFFIX) \ |
|
7967 | 759 |
awt.$(LIB_SUFFIX) jawt.$(LIB_SUFFIX) |
3111
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2763
diff
changeset
|
760 |
ifeq ($(ARCH_DATA_MODEL), 32) |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2763
diff
changeset
|
761 |
@# The Java Kernel JRE image ships with a special VM. It is not included |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2763
diff
changeset
|
762 |
@# in the full JRE image, so remove it. Also, is it only for 32-bit windows. |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2763
diff
changeset
|
763 |
$(CD) $(JRE_IMAGE_DIR)/bin && $(RM) -r kernel |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2763
diff
changeset
|
764 |
endif |
2 | 765 |
endif # Windows |
766 |
ifneq ($(PLATFORM), windows) |
|
767 |
$(call copy-man-pages,$(JRE_IMAGE_DIR),$(JRE_MAN_PAGES)) |
|
768 |
endif # !windows |
|
769 |
||
770 |
# Trim out any extra files not for the jre shipment but wanted in the jdk jre. |
|
771 |
# (Note the jdk WILL want the jre image before this trimming) |
|
772 |
# Removes server VM on Windows 32bit. |
|
773 |
# Remove certain shared libraries that should not be in the jre image |
|
774 |
# but should be in the jdk jre image. |
|
775 |
trim-image-jre:: |
|
776 |
ifeq ($(PLATFORM), windows) |
|
777 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
778 |
$(RM) -r $(JRE_IMAGE_DIR)/bin/server |
|
779 |
endif |
|
780 |
ifdef NOTJRE_SHARED_LIBS |
|
781 |
for l in $(NOTJRE_SHARED_LIBS) ; do \ |
|
782 |
$(RM) $(JRE_IMAGE_DIR)/bin/$$l ; \ |
|
783 |
done ; |
|
784 |
endif |
|
785 |
else # PLATFORM |
|
786 |
ifdef NOTJRE_SHARED_LIBS |
|
787 |
for l in $(NOTJRE_SHARED_LIBS) ; do \ |
|
788 |
$(RM) $(JRE_IMAGE_DIR)/lib/$(LIBARCH)/$$l ; \ |
|
789 |
done ; |
|
790 |
endif |
|
791 |
endif # PLATFORM |
|
792 |
||
8008
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
793 |
# Get list of all binary (COFF or Elf) files in the jre |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
794 |
JRE_BIN_LIST=$(TEMPDIR)/jre-bin-files.list |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
795 |
$(JRE_BIN_LIST): |
2 | 796 |
$(RM) $@ |
8008
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
797 |
ifeq ($(PLATFORM), windows) |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
798 |
$(FIND) $(JRE_IMAGE_DIR)/bin -type f -name \*.exe \ |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
799 |
-o -name \*.dll | $(EGREP) -v -i "$(MSVCRNN_DLL)" > $@ |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
800 |
else |
2 | 801 |
$(FIND) $(JRE_IMAGE_DIR)/lib -type f -name \*.$(LIB_SUFFIX) >> $@ |
802 |
$(FILE) `$(FIND) $(JRE_IMAGE_DIR)/bin -type f -name \*$(EXE_SUFFIX)` \ |
|
803 |
| $(EGREP) 'ELF' | $(CUT) -d':' -f1 >> $@ |
|
804 |
endif |
|
805 |
||
806 |
# Post process the image (strips and mcs on Elf files we are shipping) |
|
807 |
# (Note the jdk WILL want the jre image before this processing) |
|
8008
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
808 |
process-image-jre:: $(JRE_BIN_LIST) |
2 | 809 |
ifneq ($(POST_STRIP_PROCESS), ) |
8008
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
810 |
@for f in `$(CAT) $(JRE_BIN_LIST)`; do \ |
2 | 811 |
$(CHMOD) u+w $${f}; \ |
812 |
$(ECHO) $(POST_STRIP_PROCESS) $${f}; \ |
|
813 |
$(POST_STRIP_PROCESS) $${f}; \ |
|
814 |
$(CHMOD) go-w $${f}; \ |
|
815 |
done |
|
816 |
endif |
|
817 |
ifneq ($(POST_MCS_PROCESS), ) |
|
8008
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
818 |
@for f in `$(CAT) $(JRE_BIN_LIST)`; do \ |
2 | 819 |
$(CHMOD) u+w $${f}; \ |
820 |
$(ECHO) $(POST_MCS_PROCESS) $${f}; \ |
|
821 |
$(POST_MCS_PROCESS) $${f}; \ |
|
822 |
$(CHMOD) go-w $${f}; \ |
|
823 |
done |
|
824 |
endif |
|
8008
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
825 |
@for f in `$(CAT) $(JRE_BIN_LIST)`; do \ |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
826 |
$(call binary_file_verification,$${f}); \ |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
827 |
done |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
828 |
$(RM) $(JRE_BIN_LIST) |
2 | 829 |
|
830 |
###################################################### |
|
831 |
# JDK Image |
|
832 |
###################################################### |
|
833 |
# Note: cpio ($(CPIO)) sometimes leaves directories without rx access. |
|
834 |
||
5381
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
835 |
# REMIND: the $(RM) calls for patterns like c:, d: following $(CPIO) |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
836 |
# are because the 1.7.x versions of cygwin's cpio command drops these |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
837 |
# in the working directory if the output path begins with that pattern |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
838 |
# The one for the output jre subdirectory gets there because cpio sees its |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
839 |
# own dropping in the input jre subdirectory. Need to remove both of these. |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
840 |
# We can remove these RM's if someone figures out how to stop cpio from |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
841 |
# leaving these there. |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
842 |
# Note that its a real problem not because this directory can end up in the |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
843 |
# bundle (I think it won't since it not in bin or lib and those are the |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
844 |
# only places from which we copy everything), but because the presence |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
845 |
# of this file causes cygwin's find to bomb out, thus breaking the build |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
846 |
# in "install". |
2 | 847 |
initial-image-jdk-setup: |
848 |
$(RM) -r $(JDK_IMAGE_DIR) |
|
849 |
$(MKDIR) -p $(JDK_IMAGE_DIR)/jre |
|
850 |
($(CD) $(JRE_IMAGE_DIR) && $(FIND) . -depth -print \ |
|
851 |
| $(CPIO) -pdum $(JDK_IMAGE_DIR)/jre ) |
|
5381
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
852 |
ifeq ($(USING_CYGWIN),true) |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
853 |
$(RM) -rf $(JRE_IMAGE_DIR)/[A-Za-z]: |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
854 |
$(RM) -rf $(JDK_IMAGE_DIR)/jre/[A-Za-z]: |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
855 |
endif |
2 | 856 |
$(RM) -rf $(JDK_IMAGE_DIR)/jre/man |
857 |
$(CHMOD) a+rx `$(FIND) $(JDK_IMAGE_DIR) -type d` |
|
858 |
||
859 |
initial-image-jdk64-bindemos: |
|
860 |
for dir in bin demo ; do \ |
|
861 |
( $(CD) $(OUTPUTDIR) && \ |
|
862 |
$(TAR) cf - `$(FIND) $$dir -name '$(LIBARCH)' -print` | \ |
|
863 |
($(CD) $(JDK_IMAGE_DIR) && $(TAR) xf -) ) ; \ |
|
864 |
done |
|
865 |
||
866 |
# Solaris 64 bit image is special |
|
867 |
initial-image-jdk-sol64:: initial-image-jdk-setup \ |
|
8009
faa3179b2b38
6980024: Rebranding jre7/jdk7 License, Copyright, Readme
ohair
parents:
8008
diff
changeset
|
868 |
initial-image-jdk64-bindemos |
2 | 869 |
|
870 |
# DB files to add |
|
871 |
ifdef OPENJDK |
|
872 |
||
873 |
initial-image-jdk-db: |
|
874 |
||
875 |
else |
|
876 |
||
877 |
# Create the list of db *.zip files to bundle with jdk |
|
878 |
ABS_DB_PATH :=$(call FullPath,$(CLOSED_SHARE_SRC)/db) |
|
879 |
DB_ZIP_LIST = $(shell $(LS) $(ABS_DB_PATH)/*.zip 2>/dev/null) |
|
880 |
||
881 |
initial-image-jdk-db: $(DB_ZIP_LIST) |
|
882 |
$(MKDIR) -p $(JDK_IMAGE_DIR)/db |
|
883 |
for d in $(DB_ZIP_LIST); do \ |
|
884 |
($(CD) $(JDK_IMAGE_DIR)/db && $(UNZIP) -o $$d); \ |
|
885 |
done |
|
886 |
||
887 |
endif |
|
888 |
||
889 |
# Standard jdk image |
|
890 |
initial-image-jdk:: initial-image-jdk-setup \ |
|
891 |
initial-image-jdk-db \ |
|
8009
faa3179b2b38
6980024: Rebranding jre7/jdk7 License, Copyright, Readme
ohair
parents:
8008
diff
changeset
|
892 |
$(JDK_DOCFILES) |
2 | 893 |
$(MKDIR) $(JDK_IMAGE_DIR)/lib |
894 |
@# |
|
895 |
@# Copy in the jars in lib that only belong in the JDK |
|
896 |
@# |
|
897 |
for l in $(NOTJRELIBS); do \ |
|
898 |
if [ -r $(LIBDIR)/$$l ]; then \ |
|
899 |
$(CP) $(LIBDIR)/$$l $(JDK_IMAGE_DIR)/lib; \ |
|
900 |
fi; \ |
|
901 |
done |
|
902 |
ifeq ($(PLATFORM), windows) |
|
903 |
@# |
|
904 |
@# lib/ |
|
905 |
@# |
|
906 |
$(CP) $(LIBDIR)/$(LIB_PREFIX)jvm.$(LIB_SUFFIX) $(JDK_IMAGE_DIR)/lib |
|
907 |
$(CP) $(LIBDIR)/$(LIB_PREFIX)jawt.$(LIB_SUFFIX) $(JDK_IMAGE_DIR)/lib |
|
908 |
@# |
|
909 |
@# bin/ |
|
910 |
@# |
|
911 |
@# copy all EXE files and only certain DLL files from BINDIR |
|
912 |
$(MKDIR) -p $(JDK_IMAGE_DIR)/bin |
|
913 |
$(CP) $(BINDIR)/*$(EXE_SUFFIX) $(JDK_IMAGE_DIR)/bin |
|
914 |
$(CP) $(BINDIR)/jli.$(LIBRARY_SUFFIX) $(JDK_IMAGE_DIR)/bin |
|
5381
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
915 |
ifeq ($(COMPILER_VERSION), VS2010) |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
916 |
$(CP) $(BINDIR)/msvc*100.$(LIBRARY_SUFFIX) $(JDK_IMAGE_DIR)/bin |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4115
diff
changeset
|
917 |
endif |
2 | 918 |
ifeq ($(ARCH_DATA_MODEL), 32) |
919 |
ifeq ($(COMPILER_VERSION), VS2003) |
|
920 |
$(CP) $(BINDIR)/msvc*71.$(LIBRARY_SUFFIX) $(JDK_IMAGE_DIR)/bin |
|
921 |
endif |
|
922 |
endif |
|
923 |
else # PLATFORM |
|
924 |
@# |
|
925 |
@# bin/ |
|
926 |
@# |
|
927 |
($(CD) $(BINDIR)/.. && $(TAR) cf - \ |
|
928 |
`$(FIND) bin \( -type f -o -type l \) -print `) | \ |
|
929 |
($(CD) $(JDK_IMAGE_DIR) && $(TAR) xf -) |
|
930 |
endif # PLATFORM |
|
931 |
@# |
|
932 |
@# files that might not exist need to be touched. |
|
933 |
@# |
|
934 |
$(TOUCH) $(CLASSBINDIR)/META-INF/services/com.sun.tools.xjc.Plugin |
|
935 |
@# |
|
936 |
@# lib/tools.jar |
|
937 |
@# |
|
3057
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
938 |
$(CD) $(CLASSBINDIR) && \ |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
939 |
$(BOOT_JAR_CMD) c0f $(ABS_LIBDIR)/tools.jar \ |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
940 |
$(TOOLS) $(BOOT_JAR_JFLAGS) |
c5b370763c63
6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
martin
parents:
2939
diff
changeset
|
941 |
@$(CD) $(CLASSBINDIR) && $(java-vm-cleanup) |
2 | 942 |
$(CP) $(LIBDIR)/tools.jar $(JDK_IMAGE_DIR)/lib/tools.jar |
943 |
@# |
|
944 |
@# lib/ct.sym |
|
945 |
@# |
|
946 |
$(MKDIR) -p $(OUTPUTDIR)/symbols/META-INF/sym |
|
947 |
$(JAVAC_CMD) -XDprocess.packages -proc:only \ |
|
948 |
-processor com.sun.tools.javac.sym.CreateSymbols \ |
|
949 |
-Acom.sun.tools.javac.sym.Jar=$(RT_JAR) \ |
|
950 |
-Acom.sun.tools.javac.sym.Dest=$(OUTPUTDIR)/symbols/META-INF/sym/rt.jar \ |
|
5789
246b84dc50d9
6960789: com.sun.servicetag API needs to be added in ct.sym
mchung
parents:
5506
diff
changeset
|
951 |
$(CORE_PKGS) $(NON_CORE_PKGS) $(EXCLUDE_PROPWARN_PKGS) $(EXPORTED_PRIVATE_PKGS) |
2 | 952 |
$(BOOT_JAR_CMD) c0f $(LIBDIR)/ct.sym \ |
916
867515b155b5
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
715
diff
changeset
|
953 |
-C $(OUTPUTDIR)/symbols META-INF $(BOOT_JAR_JFLAGS) |
2 | 954 |
@$(java-vm-cleanup) |
955 |
$(CP) $(LIBDIR)/ct.sym $(JDK_IMAGE_DIR)/lib/ct.sym |
|
956 |
@# |
|
957 |
@# CORBA supported orb.idl and ir.idl should be copied to lib |
|
958 |
@# |
|
959 |
$(CP) $(LIBDIR)/orb.idl $(JDK_IMAGE_DIR)/lib/orb.idl |
|
960 |
$(CP) $(LIBDIR)/ir.idl $(JDK_IMAGE_DIR)/lib/ir.idl |
|
961 |
ifeq ($(PLATFORM), linux) |
|
962 |
@# |
|
963 |
@# on Linux copy jexec from jre/lib to /lib |
|
964 |
@# |
|
965 |
$(CP) $(LIBDIR)/jexec $(JDK_IMAGE_DIR)/lib/jexec |
|
966 |
endif # PLATFORM |
|
967 |
@# |
|
968 |
@# src.zip |
|
969 |
@# |
|
970 |
$(MKDIR) -p $(JDK_IMAGE_DIR)/src |
|
971 |
@# |
|
972 |
@# The '*-*' pattern in the find command excludes files named with dashes, |
|
973 |
@# such as the java.nio templates for generated classes |
|
974 |
@# |
|
975 |
@# The Linux 'tar' command cannot handle the huge command line argument |
|
976 |
@# generated by the more efficient solaris/windows method of copying files. |
|
977 |
@# So for Linux, make use of the -T option (like Solaris' -I option) of |
|
978 |
@# obtaining the list of files from a file. MKS tar has no such option. |
|
979 |
ifeq ($(PLATFORM), linux) |
|
980 |
for d in $(SOURCE_DIRS); do \ |
|
981 |
$(RM) $(ABS_TEMPDIR)/src-files.list; \ |
|
982 |
($(CD) $$d && \ |
|
983 |
for sd in $(SOURCES) ; do \ |
|
984 |
if [ -d $$sd ] ; then \ |
|
985 |
$(FIND) $$sd $(SOURCE_FILES_filter) \ |
|
986 |
-name '*.java' -print \ |
|
987 |
>> $(ABS_TEMPDIR)/src-files.list ; \ |
|
988 |
fi; \ |
|
989 |
done ; \ |
|
990 |
) ; \ |
|
991 |
if [ -f $(ABS_TEMPDIR)/src-files.list ] ; then \ |
|
992 |
($(CD) $$d && $(TAR) cf - -T $(ABS_TEMPDIR)/src-files.list ) \ |
|
993 |
| ($(CD) $(JDK_IMAGE_DIR)/src && $(TAR) xf -); \ |
|
994 |
fi; \ |
|
995 |
done |
|
996 |
else |
|
997 |
for d in $(SOURCE_DIRS); do \ |
|
998 |
$(RM) $(ABS_TEMPDIR)/src-files.list; \ |
|
999 |
($(CD) $$d && \ |
|
1000 |
for sd in $(SOURCES) ; do \ |
|
1001 |
if [ -d $$sd ] ; then \ |
|
1002 |
$(FIND) $$sd $(SOURCE_FILES_filter) \ |
|
1003 |
-name '*.java' -print \ |
|
1004 |
>> $(ABS_TEMPDIR)/src-files.list ; \ |
|
1005 |
fi; \ |
|
1006 |
done ; \ |
|
1007 |
) ; \ |
|
1008 |
if [ -f $(ABS_TEMPDIR)/src-files.list ] ; then \ |
|
1009 |
($(CD) $$d && $(TAR) cf - `$(CAT) $(ABS_TEMPDIR)/src-files.list`) \ |
|
1010 |
| ($(CD) $(JDK_IMAGE_DIR)/src && $(TAR) xf -); \ |
|
1011 |
fi; \ |
|
1012 |
done |
|
1013 |
endif |
|
1014 |
$(RM) $(ABS_TEMPDIR)/src-files.list |
|
1015 |
$(CHMOD) -R +w $(JDK_IMAGE_DIR)/src |
|
1016 |
$(MKDIR) -p $(JDK_IMAGE_DIR)/src/launcher |
|
1017 |
$(CP) $(SHARE_SRC)/bin/java.c $(JDK_IMAGE_DIR)/src/launcher |
|
1018 |
$(CP) $(SHARE_SRC)/bin/java.h $(JDK_IMAGE_DIR)/src/launcher |
|
1019 |
$(CP) $(SHARE_SRC)/bin/manifest_info.h $(JDK_IMAGE_DIR)/src/launcher |
|
1020 |
$(CP) $(SHARE_SRC)/bin/parse_manifest.c $(JDK_IMAGE_DIR)/src/launcher |
|
1021 |
$(CP) $(SHARE_SRC)/bin/version_comp.c $(JDK_IMAGE_DIR)/src/launcher |
|
1022 |
$(CP) $(SHARE_SRC)/bin/version_comp.h $(JDK_IMAGE_DIR)/src/launcher |
|
1023 |
$(CP) $(SHARE_SRC)/bin/wildcard.h $(JDK_IMAGE_DIR)/src/launcher |
|
1024 |
$(CP) $(SHARE_SRC)/bin/wildcard.c $(JDK_IMAGE_DIR)/src/launcher |
|
1025 |
$(CP) $(SHARE_SRC)/bin/jli_util.h $(JDK_IMAGE_DIR)/src/launcher |
|
1026 |
$(CP) $(SHARE_SRC)/bin/jli_util.c $(JDK_IMAGE_DIR)/src/launcher |
|
1027 |
$(CP) $(SHARE_SRC)/bin/splashscreen_stubs.c $(JDK_IMAGE_DIR)/src/launcher |
|
1028 |
$(CP) $(SHARE_SRC)/bin/splashscreen.h $(JDK_IMAGE_DIR)/src/launcher |
|
1029 |
$(CP) $(PLATFORM_SRC)/bin/java_md.c $(JDK_IMAGE_DIR)/src/launcher |
|
1030 |
$(CP) $(PLATFORM_SRC)/bin/java_md.h $(JDK_IMAGE_DIR)/src/launcher |
|
1031 |
$(CD) $(JDK_IMAGE_DIR)/src && $(ZIPEXE) -qr ../src.zip * |
|
1032 |
$(RM) -r $(JDK_IMAGE_DIR)/src |
|
1033 |
@# |
|
1034 |
@# demo, include |
|
1035 |
@# |
|
1036 |
$(CP) -r -f $(DEMODIR) $(JDK_IMAGE_DIR) |
|
1037 |
$(CP) -r -f $(SAMPLEDIR) $(JDK_IMAGE_DIR) |
|
1038 |
$(CP) -r $(INCLUDEDIR) $(JDK_IMAGE_DIR) |
|
1039 |
@# |
|
1040 |
@# Swing BeanInfo generation |
|
1041 |
@# |
|
1042 |
$(CD) javax/swing/beaninfo && $(MAKE) swing-1.2-beans |
|
1043 |
ifneq ($(PLATFORM), windows) |
|
1044 |
$(call copy-man-pages,$(JDK_IMAGE_DIR),$(JDK_MAN_PAGES)) |
|
1045 |
endif # !windows |
|
1046 |
||
1047 |
# Trim out files we don't want to ship |
|
1048 |
trim-image-jdk:: |
|
1049 |
@# Remove tools that should not be part of SDK. |
|
1050 |
for t in $(NOTJDKTOOLS); do \ |
|
7967 | 1051 |
$(RM) $(JDK_IMAGE_DIR)/bin/$${t}$(EXE_SUFFIX); \ |
2 | 1052 |
done |
1053 |
||
8008
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
1054 |
# Get list of binary (COFF or Elf) files in the jdk |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
1055 |
JDK_BIN_LIST=$(TEMPDIR)/jdk-bin-files.list |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
1056 |
$(JDK_BIN_LIST): |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
1057 |
ifeq ($(PLATFORM), windows) |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
1058 |
$(FIND) $(JDK_IMAGE_DIR)/jre/bin -type f -name \*.exe \ |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
1059 |
-o -name \*.dll | $(EGREP) -v -i "$(MSVCRNN_DLL)" > $@ |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
1060 |
$(FIND) $(JDK_IMAGE_DIR)/bin -type f -name \*.exe \ |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
1061 |
-o -name \*.dll | $(EGREP) -v -i "$(MSVCRNN_DLL)" >> $@ |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
1062 |
else |
2 | 1063 |
$(RM) $@ |
1064 |
$(FIND) $(JDK_IMAGE_DIR)/jre/lib -type f -name \*.$(LIB_SUFFIX) >> $@ |
|
1065 |
$(FILE) `$(FIND) $(JDK_IMAGE_DIR)/jre/bin -type f -name \*$(EXE_SUFFIX)` \ |
|
1066 |
| $(EGREP) 'ELF' | $(CUT) -d':' -f1 >> $@ |
|
1067 |
file `$(FIND) $(JDK_IMAGE_DIR)/bin -type f -name \*$(EXE_SUFFIX)` \ |
|
1068 |
| $(EGREP) 'ELF' | $(CUT) -d':' -f1 >> $@ |
|
1069 |
endif |
|
1070 |
||
1071 |
# Post process the image (strips and mcs on files we are shipping) |
|
8008
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
1072 |
process-image-jdk:: $(JDK_BIN_LIST) |
2 | 1073 |
ifneq ($(POST_STRIP_PROCESS), ) |
8008
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
1074 |
@for f in `$(CAT) $(JDK_BIN_LIST)`; do \ |
2 | 1075 |
$(CHMOD) u+w $${f}; \ |
1076 |
$(ECHO) $(POST_STRIP_PROCESS) $${f}; \ |
|
1077 |
$(POST_STRIP_PROCESS) $${f}; \ |
|
1078 |
$(CHMOD) go-w $${f}; \ |
|
1079 |
done |
|
1080 |
endif |
|
1081 |
ifneq ($(POST_MCS_PROCESS), ) |
|
8008
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
1082 |
@for f in `$(CAT) $(JDK_BIN_LIST)`; do \ |
2 | 1083 |
$(CHMOD) u+w $${f}; \ |
1084 |
$(ECHO) $(POST_MCS_PROCESS) $${f}; \ |
|
1085 |
$(POST_MCS_PROCESS) $${f}; \ |
|
1086 |
$(CHMOD) go-w $${f}; \ |
|
1087 |
done |
|
1088 |
endif |
|
8008
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
1089 |
@for f in `$(CAT) $(JDK_BIN_LIST)`; do \ |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
1090 |
$(call binary_file_verification,$${f}); \ |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
1091 |
done |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7668
diff
changeset
|
1092 |
$(RM) $(JDK_BIN_LIST) |
2 | 1093 |
|
1094 |
################################################################### |
|
8013
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1095 |
# What did we build |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1096 |
################################################################### |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1097 |
|
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1098 |
# The jdk text info file that lives at the root of the install image. |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1099 |
|
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1100 |
JDK_INFO_FILE = $(JDK_IMAGE_DIR)/release |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1101 |
JRE_INFO_FILE = $(JRE_IMAGE_DIR)/release |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1102 |
|
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1103 |
# Common way to emit a line into the release or info file |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1104 |
define info-file-item # name value |
8454
527d9c4e670e
7022237: Fix use of \" in the new "release" file at the top of the install, windows issues
ohair
parents:
8270
diff
changeset
|
1105 |
$(PRINTF) '%s="%s"\n' $1 $2 >> $@ |
8013
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1106 |
endef |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1107 |
|
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1108 |
# Values to emit |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1109 |
MINIMUM_OS_NAME := $(REQUIRED_OS_NAME) |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1110 |
MINIMUM_OS_VERSION := $(REQUIRED_OS_VERSION) |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1111 |
MINIMUM_OS_ARCH := $(ARCH) |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1112 |
|
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1113 |
$(JDK_INFO_FILE): FRC |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1114 |
$(prep-target) |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1115 |
$(call info-file-item, "JAVA_VERSION", "$(THIS_JDK_VERSION)") |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1116 |
$(call info-file-item, "OS_NAME", "$(MINIMUM_OS_NAME)") |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1117 |
$(call info-file-item, "OS_VERSION", "$(MINIMUM_OS_VERSION)") |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1118 |
$(call info-file-item, "OS_ARCH", "$(MINIMUM_OS_ARCH)") |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1119 |
|
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1120 |
# Create release file to identify this image |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1121 |
identify-image-jdk:: $(JDK_INFO_FILE) |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1122 |
|
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1123 |
$(JRE_INFO_FILE): FRC |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1124 |
$(prep-target) |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1125 |
$(call info-file-item, "JAVA_VERSION", "$(THIS_JDK_VERSION)") |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1126 |
$(call info-file-item, "OS_NAME", "$(MINIMUM_OS_NAME)") |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1127 |
$(call info-file-item, "OS_VERSION", "$(MINIMUM_OS_VERSION)") |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1128 |
$(call info-file-item, "OS_ARCH", "$(MINIMUM_OS_ARCH)") |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1129 |
|
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1130 |
# Create release file to identify this image |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1131 |
identify-image-jre:: $(JRE_INFO_FILE) |
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1132 |
|
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1133 |
################################################################### |
2 | 1134 |
# What do we compare against |
1135 |
################################################################### |
|
1136 |
||
1137 |
# The temporary files and areas created |
|
1138 |
TEMP_PREV_JRE_BASE_DIR=$(TEMPDIR)/previous_jre |
|
1139 |
TEMP_PREV_JDK_BASE_DIR=$(TEMPDIR)/previous_jdk |
|
1140 |
TEMP_PREV_JRE_COMPARISON=$(TEMP_PREV_JRE_BASE_DIR)/previous_jre_comparison.txt |
|
1141 |
TEMP_PREV_JDK_COMPARISON=$(TEMP_PREV_JDK_BASE_DIR)/previous_jdk_comparison.txt |
|
1142 |
TEMP_PREV_JRE_IMAGE_DIR=$(TEMP_PREV_JRE_BASE_DIR)/jre$(PREVIOUS_JDK_VERSION) |
|
1143 |
TEMP_PREV_JDK_IMAGE_DIR=$(TEMP_PREV_JDK_BASE_DIR)/jdk$(PREVIOUS_JDK_VERSION) |
|
1144 |
||
1145 |
# unbundle(sourcedir,bundlename,destdir) |
|
1146 |
# logic is slightly different if a .tar.gz file (linux) |
|
1147 |
define unbundle |
|
1148 |
$(RM) -r $3 |
|
1149 |
$(MKDIR) -p $3 |
|
1150 |
$(CP) $1 $3 |
|
1151 |
if [ "`$(BASENAME) $2 .gz`" != "$2" ] ; then \ |
|
1152 |
( $(CD) $3 && ( $(GUNZIP) -dc $2 | $(TAR) xf - ) && $(RM) $2 ); \ |
|
1153 |
else \ |
|
1154 |
( $(CD) $3 && $(TAR) xf $2 && $(RM) $2 ); \ |
|
1155 |
fi |
|
1156 |
( $(CD) $3 && $(RM) $2 ) |
|
1157 |
endef |
|
1158 |
||
1159 |
# In general, ignore the fastdebug tree, and changes in the demo and sample area |
|
1160 |
COMPARE_FILTER = | $(EGREP) -v /fastdebug/ | $(EGREP) -v /demo/ | $(EGREP) -v /sample/ |
|
1161 |
||
1162 |
# If a previuous image is provided, no need to install it. |
|
916
867515b155b5
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
715
diff
changeset
|
1163 |
ifdef PREVIOUS_RELEASE_IMAGE |
2 | 1164 |
|
1165 |
# Just use the pre-installed images |
|
916
867515b155b5
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
715
diff
changeset
|
1166 |
PREV_JRE_IMAGE_DIR=$(PREVIOUS_RELEASE_IMAGE)/jre |
867515b155b5
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
715
diff
changeset
|
1167 |
PREV_JDK_IMAGE_DIR=$(PREVIOUS_RELEASE_IMAGE) |
2 | 1168 |
|
1169 |
else |
|
1170 |
||
1171 |
# Use the temp images we will create |
|
1172 |
PREV_JRE_IMAGE_DIR=$(TEMP_PREV_JRE_IMAGE_DIR) |
|
1173 |
PREV_JDK_IMAGE_DIR=$(TEMP_PREV_JDK_IMAGE_DIR) |
|
1174 |
||
1175 |
# Force the installation in this case |
|
1176 |
compare-image:: install-previous-sanity install-previous-jre install-previous-jdk |
|
1177 |
||
1178 |
# Unbundle the jre |
|
1179 |
$(TEMP_PREV_JRE_IMAGE_DIR)/bin/java$(EXE_SUFFIX): $(PREVIOUS_JRE_BUNDLE) |
|
1180 |
$(call unbundle,$(PREVIOUS_JRE_BUNDLE),$(PREVIOUS_JRE_FILE),$(TEMP_PREV_JRE_BASE_DIR)) |
|
1181 |
$(TOUCH) $@ |
|
1182 |
||
1183 |
# Unbundle the jdk |
|
1184 |
$(TEMP_PREV_JDK_IMAGE_DIR)/bin/java$(EXE_SUFFIX): $(PREVIOUS_JDK_BUNDLE) |
|
1185 |
$(call unbundle,$(PREVIOUS_JDK_BUNDLE),$(PREVIOUS_JDK_FILE),$(TEMP_PREV_JDK_BASE_DIR)) |
|
1186 |
$(TOUCH) $@ |
|
1187 |
||
1188 |
endif |
|
1189 |
||
1190 |
# Make sure all images have a java in them (used as the touch file) |
|
1191 |
install-previous-sanity: |
|
1192 |
@if [ ! -f $(PREVIOUS_JRE_BUNDLE) ]; then \ |
|
1193 |
$(ECHO) "ERROR: You do not have access to the previous java release jre bundles. \n" \ |
|
1194 |
" Please check your access to \n" \ |
|
1195 |
" $(PREVIOUS_JRE_BUNDLE) \n" \ |
|
1196 |
" and/or check your value of ALT_PREVIOUS_RELEASE_PATH or ALT_PREVIOUS_JRE_FILE \n" \ |
|
1197 |
" This will affect you if you build the images target. \n" \ |
|
1198 |
"" >> $(ERROR_FILE) ; \ |
|
1199 |
fi |
|
1200 |
@if [ ! -f $(PREVIOUS_JDK_BUNDLE) ]; then \ |
|
1201 |
$(ECHO) "ERROR: You do not have access to the previous java release sdk bundles. \n" \ |
|
1202 |
" Please check your access to \n" \ |
|
1203 |
" $(PREVIOUS_sdk_BUNDLE) \n" \ |
|
1204 |
" and/or check your value of ALT_PREVIOUS_RELEASE_PATH or ALT_PREVIOUS_JDK_FILE. \n" \ |
|
1205 |
" This will affect you if you build the images target. \n" \ |
|
1206 |
"" >> $(ERROR_FILE) ; \ |
|
1207 |
fi |
|
1208 |
install-previous-jre: $(PREV_JRE_IMAGE_DIR)/bin/java$(EXE_SUFFIX) |
|
1209 |
install-previous-jdk: $(PREV_JDK_IMAGE_DIR)/bin/java$(EXE_SUFFIX) |
|
1210 |
||
1211 |
# Create the jre comparison report |
|
1212 |
$(TEMP_PREV_JRE_COMPARISON): install-previous-jre $(DIRDIFF_JARFILE) |
|
1213 |
$(prep-target) |
|
1214 |
$(BOOT_JAVA_CMD) -jar $(DIRDIFF_JARFILE) \ |
|
1215 |
$(PREV_JRE_IMAGE_DIR) $(JRE_IMAGE_DIR) | $(SORT) > $@ |
|
1216 |
@$(java-vm-cleanup) |
|
1217 |
||
1218 |
# Create the jdk comparison report |
|
1219 |
$(TEMP_PREV_JDK_COMPARISON): install-previous-jdk $(DIRDIFF_JARFILE) |
|
1220 |
$(prep-target) |
|
1221 |
$(BOOT_JAVA_CMD) -jar $(DIRDIFF_JARFILE) \ |
|
1222 |
$(PREV_JDK_IMAGE_DIR) $(JDK_IMAGE_DIR) | $(SORT) > $@ |
|
1223 |
@$(java-vm-cleanup) |
|
1224 |
||
1225 |
# Clean up names in the messages printed out |
|
1226 |
CAT_FILTER = $(SED) -e "s@$(JDK_IMAGE_DIR)@JDK_IMAGE@g" \ |
|
1227 |
-e "s@$(JRE_IMAGE_DIR)@JRE_IMAGE@g" |
|
1228 |
||
1229 |
# Report on the jre image comparison |
|
1230 |
compare-image-jre: $(TEMP_PREV_JRE_COMPARISON) |
|
1231 |
@$(ECHO) "JRE Image Comparison to version $(PREVIOUS_JDK_VERSION)" |
|
1232 |
@$(ECHO) " Previous: $(PREV_JRE_IMAGE_DIR)" |
|
1233 |
@$(ECHO) " Current: $(JRE_IMAGE_DIR)" |
|
1234 |
@$(CAT) $< $(COMPARE_FILTER) | $(CAT_FILTER) |
|
1235 |
( $(ECHO) " " ; $(CAT) $< | $(CAT_FILTER) ; $(ECHO) " " ) >> $(WARNING_FILE) |
|
1236 |
||
1237 |
# Report on the jdk image comparison |
|
1238 |
compare-image-jdk: $(TEMP_PREV_JDK_COMPARISON) |
|
1239 |
@$(ECHO) "JDK Image Comparison to version $(PREVIOUS_JDK_VERSION)" |
|
1240 |
@$(ECHO) " Previous: $(PREV_JDK_IMAGE_DIR)" |
|
1241 |
@$(ECHO) " Current: $(JDK_IMAGE_DIR)" |
|
1242 |
$(CAT) $< $(COMPARE_FILTER) | $(CAT_FILTER) |
|
1243 |
( $(ECHO) " " ; $(CAT) $< | $(CAT_FILTER) ; $(ECHO) " " ) >> $(WARNING_FILE) |
|
1244 |
||
1245 |
# Do both image comparisons |
|
1246 |
compare-image:: compare-image-jre compare-image-jdk |
|
1247 |
||
1248 |
# Clean up any temp images and reports |
|
1249 |
compare-image-clobber: |
|
1250 |
$(RM) -r $(TEMP_PREV_JRE_BASE_DIR) |
|
1251 |
$(RM) -r $(TEMP_PREV_JDK_BASE_DIR) |
|
1252 |
||
1253 |
###################################################### |
|
1254 |
# clobber |
|
1255 |
###################################################### |
|
1256 |
images-clobber:: |
|
1257 |
$(RM) -r $(REORDER_TEMPDIR) |
|
1258 |
$(RM) -r $(JARFILELISTS_TEMPDIR) |
|
1259 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
1260 |
$(CD) javax/swing/beaninfo && $(MAKE) swingbeans.clobber |
|
1261 |
$(RM) -r $(CLASSBINDIR)/META-INF |
|
1262 |
$(RM) $(TEMPDIR)/tmp.jar |
|
1263 |
endif |
|
1264 |
ifeq ($(PLATFORM), linux) |
|
1265 |
$(RM) -r $(OUTPUTDIR)/$(ARCH) |
|
1266 |
endif |
|
1267 |
ifeq ($(PLATFORM), windows) |
|
1268 |
$(RM) $(TEMPDIR)/rebase.input |
|
1269 |
endif |
|
1270 |
$(RM) -r $(JDK_IMAGE_DIR) |
|
1271 |
$(RM) -r $(JRE_IMAGE_DIR) |
|
1272 |
||
1273 |
images images-clobber:: |
|
1274 |
@$(ECHO) ">>>Finished making "$@" @ `$(DATE)` ..." |
|
1275 |
@$(java-vm-cleanup) |
|
1276 |
||
1277 |
.PHONY: images image-jre image-jdk \ |
|
1278 |
initial-image-jre initial-image-jdk \ |
|
1279 |
initial-image-jre-sol64 initial-image-jdk-sol64 \ |
|
1280 |
initial-image-jdk-setup \ |
|
1281 |
initial-image-jdk-db \ |
|
1282 |
initial-image-jdk64-bindemos \ |
|
1283 |
initial-image-jre-setup \ |
|
1284 |
trim-image-jre trim-image-jdk \ |
|
1285 |
process-image-jre process-image-jdk \ |
|
8013
4efa283dbce2
6989472: Provide simple jdk identification information in the install image
ohair
parents:
8009
diff
changeset
|
1286 |
identify-image-jre identify-image-jdk \ |
2 | 1287 |
install-previous-jre install-previous-jdk \ |
1288 |
compare-image-jre compare-image-jdk \ |
|
1289 |
compare-image compare-image-clobber \ |
|
1290 |
images-clobber |
|
1291 |
||
1292 |
# Force rule |
|
1293 |
FRC: |
|
1294 |