author | ihse |
Thu, 14 Nov 2013 11:19:32 +0100 | |
changeset 21805 | c7d7946239de |
parent 21416 | jdk/makefiles/CreateSecurityJars.gmk@7d9198dd107c |
child 22336 | a5de9b85e983 |
child 21980 | 393509a81cc3 |
permissions | -rw-r--r-- |
12892 | 1 |
# |
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
2 |
# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
12892 | 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 |
|
7 |
# published by the Free Software Foundation. Oracle designates this |
|
8 |
# particular file as subject to the "Classpath" exception as provided |
|
9 |
# by Oracle in the LICENSE file that accompanied this code. |
|
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 |
# |
|
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. |
|
24 |
# |
|
25 |
||
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
26 |
default: all |
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
27 |
|
12892 | 28 |
include $(SPEC) |
29 |
include MakeBase.gmk |
|
30 |
include JavaCompilation.gmk |
|
31 |
include Setup.gmk |
|
32 |
||
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
33 |
# The jars created in this file are required for the exploded jdk image to function and |
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
34 |
# cannot wait to be built in the images target. |
12892 | 35 |
|
36 |
########################################################################################## |
|
14527
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
37 |
# Create manifest for security jars |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
38 |
# |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
39 |
# Include these extra attributes for now, should probably take out. |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
40 |
# |
21805 | 41 |
MAINMANIFEST := $(JDK_TOPDIR)/make/data/mainmanifest/manifest.mf |
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
42 |
JCE_MANIFEST := $(JDK_OUTPUTDIR)/lib/_the.security.manifest.mf |
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
43 |
|
14527
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
44 |
$(JCE_MANIFEST): $(MAINMANIFEST) |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
45 |
$(MKDIR) -p $(@D) |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
46 |
$(RM) $@ $@.tmp |
20547 | 47 |
$(SED) -e "s#@@RELEASE@@#$(JDK_VERSION)#" \ |
48 |
-e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \ |
|
49 |
$(MAINMANIFEST) >> $@.tmp |
|
14527
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
50 |
$(ECHO) "Extension-Name: javax.crypto" >> $@.tmp |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
51 |
$(ECHO) "Implementation-Vendor-Id: com.sun" >> $@.tmp |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
52 |
$(MV) $@.tmp $@ |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
53 |
|
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
54 |
########################################################################################## |
18573 | 55 |
# For security and crypto jars, always build the jar, but for closed, install the prebuilt |
56 |
# signed version instead of the newly built jar. Unsigned jars are treated as intermediate |
|
57 |
# targets and explicitly added to the JARS list. For open, signing is not needed. See |
|
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
58 |
# SignJars.gmk for more information. |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
59 |
# |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
60 |
# The source for the crypto jars is not available for all licensees. The BUILD_CRYPTO |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
61 |
# variable is set to no if these jars can't be built to skip that step of the build. |
18573 | 62 |
# Note that for OPENJDK, the build will fail if BUILD_CRYPTO=no since then there is no |
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
63 |
# other way to get the jars than to build them. |
12892 | 64 |
|
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
65 |
SUNPKCS11_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunpkcs11.jar |
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
66 |
SUNPKCS11_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/unsigned/sunpkcs11.jar |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
67 |
|
20547 | 68 |
$(eval $(call SetupArchive,BUILD_SUNPKCS11_JAR, , \ |
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
69 |
SRCS := $(JDK_OUTPUTDIR)/classes_security, \ |
20547 | 70 |
SUFFIXES := .class, \ |
71 |
INCLUDES := sun/security/pkcs11, \ |
|
72 |
JAR := $(SUNPKCS11_JAR_UNSIGNED), \ |
|
73 |
MANIFEST := $(JCE_MANIFEST), \ |
|
74 |
SKIP_METAINF := true)) |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
75 |
|
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
76 |
$(SUNPKCS11_JAR_UNSIGNED): $(JCE_MANIFEST) |
12892 | 77 |
|
13702 | 78 |
ifndef OPENJDK |
20547 | 79 |
SUNPKCS11_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/pkcs11/sunpkcs11.jar |
80 |
$(SUNPKCS11_JAR_DST): $(SUNPKCS11_JAR_SRC) |
|
14231 | 81 |
@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunPKCS11 provider..." |
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
82 |
$(install-file) |
13702 | 83 |
else |
20547 | 84 |
$(SUNPKCS11_JAR_DST): $(SUNPKCS11_JAR_UNSIGNED) |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
85 |
$(install-file) |
13702 | 86 |
endif |
12892 | 87 |
|
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
88 |
JARS += $(SUNPKCS11_JAR_UNSIGNED) $(SUNPKCS11_JAR_DST) |
12892 | 89 |
|
90 |
########################################################################################## |
|
91 |
||
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
92 |
SUNEC_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunec.jar |
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
93 |
SUNEC_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/unsigned/sunec.jar |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
94 |
|
20547 | 95 |
$(eval $(call SetupArchive,BUILD_SUNEC_JAR, , \ |
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
96 |
SRCS := $(JDK_OUTPUTDIR)/classes_security, \ |
20547 | 97 |
SUFFIXES := .class, \ |
98 |
INCLUDES := sun/security/ec, \ |
|
99 |
JAR := $(SUNEC_JAR_UNSIGNED), \ |
|
100 |
MANIFEST := $(JCE_MANIFEST), \ |
|
101 |
SKIP_METAINF := true)) |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
102 |
|
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
103 |
$(SUNEC_JAR_UNSIGNED): $(JCE_MANIFEST) |
12892 | 104 |
|
105 |
ifndef OPENJDK |
|
20547 | 106 |
SUNEC_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ec/sunec.jar |
107 |
$(SUNEC_JAR_DST): $(SUNEC_JAR_SRC) |
|
14231 | 108 |
@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunEC provider..." |
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
109 |
$(install-file) |
12892 | 110 |
else |
20547 | 111 |
$(SUNEC_JAR_DST): $(SUNEC_JAR_UNSIGNED) |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
112 |
$(install-file) |
12892 | 113 |
endif |
114 |
||
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
115 |
JARS += $(SUNEC_JAR_UNSIGNED) $(SUNEC_JAR_DST) |
12892 | 116 |
|
117 |
########################################################################################## |
|
118 |
||
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
119 |
SUNJCE_PROVIDER_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunjce_provider.jar |
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
120 |
SUNJCE_PROVIDER_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/unsigned/sunjce_provider.jar |
12892 | 121 |
|
20547 | 122 |
ifneq ($(BUILD_CRYPTO), no) |
123 |
$(eval $(call SetupArchive,BUILD_SUNJCE_PROVIDER_JAR, , \ |
|
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
124 |
SRCS := $(JDK_OUTPUTDIR)/classes_security, \ |
20547 | 125 |
SUFFIXES := .class, \ |
126 |
INCLUDES := com/sun/crypto/provider, \ |
|
127 |
JAR := $(SUNJCE_PROVIDER_JAR_UNSIGNED), \ |
|
128 |
MANIFEST := $(JCE_MANIFEST), \ |
|
129 |
SKIP_METAINF := true)) |
|
14527
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
130 |
|
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
131 |
$(SUNJCE_PROVIDER_JAR_UNSIGNED): $(JCE_MANIFEST) |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
132 |
|
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
133 |
JARS += $(SUNJCE_PROVIDER_JAR_UNSIGNED) |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
134 |
endif |
14527
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
135 |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
136 |
ifndef OPENJDK |
20547 | 137 |
SUNJCE_PROVIDER_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/jce/sunjce_provider.jar |
138 |
$(SUNJCE_PROVIDER_JAR_DST): $(SUNJCE_PROVIDER_JAR_SRC) |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
139 |
@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunJCE provider..." |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
140 |
$(install-file) |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
141 |
else |
20547 | 142 |
$(SUNJCE_PROVIDER_JAR_DST): $(SUNJCE_PROVIDER_JAR_UNSIGNED) |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
143 |
$(install-file) |
12892 | 144 |
endif |
145 |
||
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
146 |
JARS += $(SUNJCE_PROVIDER_JAR_DST) |
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
147 |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
148 |
########################################################################################## |
12892 | 149 |
|
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
150 |
JCE_JAR_DST := $(JDK_OUTPUTDIR)/lib/jce.jar |
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
151 |
JCE_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/unsigned/jce.jar |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
152 |
|
20547 | 153 |
ifneq ($(BUILD_CRYPTO), no) |
154 |
$(eval $(call SetupArchive,BUILD_JCE_JAR, , \ |
|
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
155 |
SRCS := $(JDK_OUTPUTDIR)/classes_security, \ |
20547 | 156 |
SUFFIXES := .class, \ |
157 |
INCLUDES := javax/crypto sun/security/internal, \ |
|
158 |
JAR := $(JCE_JAR_UNSIGNED), \ |
|
159 |
MANIFEST := $(JCE_MANIFEST), \ |
|
160 |
SKIP_METAINF := true)) |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
161 |
|
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
162 |
$(JCE_JAR_UNSIGNED): $(JCE_MANIFEST) |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
163 |
|
20547 | 164 |
JARS += $(JCE_JAR_UNSIGNED) |
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
165 |
endif |
12892 | 166 |
|
167 |
ifndef OPENJDK |
|
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
168 |
JCE_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/jce/jce.jar |
20547 | 169 |
$(JCE_JAR_DST): $(JCE_JAR_SRC) |
14231 | 170 |
@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt jce.jar..." |
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
171 |
$(install-file) |
12892 | 172 |
else |
20547 | 173 |
$(JCE_JAR_DST): $(JCE_JAR_UNSIGNED) |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
174 |
$(install-file) |
12892 | 175 |
endif |
176 |
||
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
177 |
JARS += $(JCE_JAR_DST) |
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
178 |
|
12892 | 179 |
########################################################################################## |
180 |
||
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
181 |
US_EXPORT_POLICY_JAR_DST := $(JDK_OUTPUTDIR)/lib/security/US_export_policy.jar |
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
182 |
US_EXPORT_POLICY_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/unsigned/US_export_policy.jar |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
183 |
|
20547 | 184 |
ifneq ($(BUILD_CRYPTO), no) |
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
185 |
# |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
186 |
# TODO fix so that SetupArchive does not write files into SRCS |
20547 | 187 |
# then we don't need this extra copying |
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
188 |
# |
20547 | 189 |
# NOTE: We currently do not place restrictions on our limited export |
190 |
# policy. This was not a typo. |
|
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
191 |
# |
21805 | 192 |
US_EXPORT_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/data/cryptopolicy/unlimited |
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
193 |
US_EXPORT_POLICY_JAR_TMP := $(JDK_OUTPUTDIR)/US_export_policy_jar.tmp |
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
194 |
|
20547 | 195 |
$(US_EXPORT_POLICY_JAR_TMP)/%: $(US_EXPORT_POLICY_JAR_SRC_DIR)/% |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
196 |
$(install-file) |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
197 |
|
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
198 |
US_EXPORT_POLICY_JAR_DEPS := $(US_EXPORT_POLICY_JAR_TMP)/default_US_export.policy |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
199 |
|
20547 | 200 |
$(eval $(call SetupArchive,BUILD_US_EXPORT_POLICY_JAR, $(US_EXPORT_POLICY_JAR_DEPS), \ |
201 |
SRCS := $(US_EXPORT_POLICY_JAR_TMP), \ |
|
202 |
SUFFIXES := .policy, \ |
|
203 |
JAR := $(US_EXPORT_POLICY_JAR_UNSIGNED), \ |
|
204 |
EXTRA_MANIFEST_ATTR := Crypto-Strength: unlimited, \ |
|
205 |
SKIP_METAINF := true)) |
|
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
206 |
|
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
207 |
JARS += $(US_EXPORT_POLICY_JAR_UNSIGNED) |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
208 |
endif |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
209 |
|
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
210 |
ifndef OPENJDK |
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
211 |
$(US_EXPORT_POLICY_JAR_DST): $(JDK_TOPDIR)/make/closed/tools/crypto/jce/US_export_policy.jar |
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
212 |
$(ECHO) $(LOG_INFO) Copying $(@F) |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
213 |
$(install-file) |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
214 |
else |
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
215 |
$(US_EXPORT_POLICY_JAR_DST): $(US_EXPORT_POLICY_JAR_UNSIGNED) |
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
216 |
$(install-file) |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
217 |
endif |
12892 | 218 |
|
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
219 |
JARS += $(US_EXPORT_POLICY_JAR_DST) |
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
220 |
|
12892 | 221 |
########################################################################################## |
222 |
||
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
223 |
LOCAL_POLICY_JAR_DST := $(JDK_OUTPUTDIR)/lib/security/local_policy.jar |
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
224 |
LOCAL_POLICY_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/unsigned/local_policy.jar |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
225 |
|
20547 | 226 |
ifneq ($(BUILD_CRYPTO), no) |
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
227 |
# |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
228 |
# TODO fix so that SetupArchive does not write files into SRCS |
20547 | 229 |
# then we don't need this extra copying |
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
230 |
# |
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
231 |
LOCAL_POLICY_JAR_TMP := $(JDK_OUTPUTDIR)/local_policy_jar.tmp |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
232 |
|
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
233 |
ifeq ($(UNLIMITED_CRYPTO), true) |
21805 | 234 |
LOCAL_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/data/cryptopolicy/unlimited |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
235 |
LOCAL_POLICY_JAR_DEPS := $(LOCAL_POLICY_JAR_TMP)/default_local.policy |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
236 |
LOCAL_POLICY_JAR_ATTR := Crypto-Strength: unlimited |
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
237 |
else |
21805 | 238 |
LOCAL_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/data/cryptopolicy/limited |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
239 |
LOCAL_POLICY_JAR_DEPS := $(LOCAL_POLICY_JAR_TMP)/exempt_local.policy \ |
20547 | 240 |
$(LOCAL_POLICY_JAR_TMP)/default_local.policy |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
241 |
LOCAL_POLICY_JAR_ATTR := Crypto-Strength: limited |
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
242 |
endif |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
243 |
|
20547 | 244 |
$(LOCAL_POLICY_JAR_TMP)/%: $(LOCAL_POLICY_JAR_SRC_DIR)/% |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
245 |
$(install-file) |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
246 |
|
20547 | 247 |
$(eval $(call SetupArchive,BUILD_LOCAL_POLICY_JAR, $(LOCAL_POLICY_JAR_DEPS), \ |
248 |
SRCS := $(LOCAL_POLICY_JAR_TMP), \ |
|
249 |
SUFFIXES := .policy, \ |
|
250 |
JAR := $(LOCAL_POLICY_JAR_UNSIGNED), \ |
|
251 |
EXTRA_MANIFEST_ATTR := $(LOCAL_POLICY_JAR_ATTR), \ |
|
252 |
SKIP_METAINF := true)) |
|
12892 | 253 |
|
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
254 |
JARS += $(LOCAL_POLICY_JAR_UNSIGNED) |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
255 |
endif |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
256 |
|
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
257 |
ifndef OPENJDK |
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
258 |
$(LOCAL_POLICY_JAR_DST): $(JDK_TOPDIR)/make/closed/tools/crypto/jce/local_policy.jar |
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
259 |
$(ECHO) $(LOG_INFO) Copying $(@F) |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
260 |
$(install-file) |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
261 |
else |
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
262 |
$(LOCAL_POLICY_JAR_DST): $(LOCAL_POLICY_JAR_UNSIGNED) |
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
263 |
$(install-file) |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
264 |
endif |
12892 | 265 |
|
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
266 |
JARS += $(LOCAL_POLICY_JAR_DST) |
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
267 |
|
12892 | 268 |
########################################################################################## |
269 |
||
20547 | 270 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
12892 | 271 |
|
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
272 |
SUNMSCAPI_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunmscapi.jar |
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
273 |
SUNMSCAPI_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/unsigned/sunmscapi.jar |
12892 | 274 |
|
20547 | 275 |
$(eval $(call SetupArchive,BUILD_SUNMSCAPI_JAR, , \ |
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
276 |
SRCS := $(JDK_OUTPUTDIR)/classes_security, \ |
20547 | 277 |
SUFFIXES := .class, \ |
278 |
INCLUDES := sun/security/mscapi, \ |
|
279 |
JAR := $(SUNMSCAPI_JAR_UNSIGNED), \ |
|
280 |
MANIFEST := $(JCE_MANIFEST), \ |
|
281 |
SKIP_METAINF := true)) |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
282 |
|
20547 | 283 |
$(SUNMSCAPI_JAR_UNSIGNED): $(JCE_MANIFEST) |
15137
1ad653469ebc
8006296: build-infra: Unsigned sunmscapi.jar is missing manifest.
erikj
parents:
15133
diff
changeset
|
284 |
|
20547 | 285 |
ifndef OPENJDK |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
286 |
SUNMSCAPI_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/mscapi/sunmscapi.jar |
20547 | 287 |
$(SUNMSCAPI_JAR_DST): $(SUNMSCAPI_JAR_SRC) |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
288 |
@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunMSCAPI provider..." |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
289 |
$(install-file) |
20547 | 290 |
else |
291 |
$(SUNMSCAPI_JAR_DST): $(SUNMSCAPI_JAR_UNSIGNED) |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
292 |
$(install-file) |
20547 | 293 |
endif |
12892 | 294 |
|
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
295 |
JARS += $(SUNMSCAPI_JAR_UNSIGNED) $(SUNMSCAPI_JAR_DST) |
12892 | 296 |
|
297 |
endif |
|
298 |
||
299 |
########################################################################################## |
|
300 |
||
20547 | 301 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
302 |
ifndef OPENJDK |
|
12892 | 303 |
|
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
304 |
UCRYPTO_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/ucrypto.jar |
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
305 |
UCRYPTO_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/unsigned/ucrypto.jar |
20547 | 306 |
UCRYPTO_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ucrypto/ucrypto.jar |
12892 | 307 |
|
20547 | 308 |
$(eval $(call SetupArchive,BUILD_UCRYPTO_JAR, , \ |
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
309 |
SRCS := $(JDK_OUTPUTDIR)/classes_security, \ |
20547 | 310 |
SUFFIXES := .class, \ |
311 |
INCLUDES := com/oracle/security/ucrypto, \ |
|
312 |
JAR := $(UCRYPTO_JAR_UNSIGNED), \ |
|
313 |
MANIFEST := $(JCE_MANIFEST), \ |
|
314 |
SKIP_METAINF := true)) |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
315 |
|
20547 | 316 |
$(UCRYPTO_JAR_UNSIGNED): $(JCE_MANIFEST) |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
317 |
|
20547 | 318 |
$(UCRYPTO_JAR_DST): $(UCRYPTO_JAR_SRC) |
14231 | 319 |
@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt OracleUcrypto provider..." |
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
320 |
$(install-file) |
12892 | 321 |
|
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
322 |
JARS += $(UCRYPTO_JAR_UNSIGNED) $(UCRYPTO_JAR_DST) |
12892 | 323 |
|
20547 | 324 |
endif |
12892 | 325 |
endif |
326 |
||
327 |
all: $(JARS) |
|
328 |
||
329 |
.PHONY: default all |