author | thartmann |
Tue, 19 Aug 2014 07:36:11 +0200 | |
changeset 26176 | cc5975228236 |
parent 22342 | c83795c442b7 |
child 25859 | 3317bb8137f4 |
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 |
|
21980 | 57 |
# targets and explicitly added to the TARGETS 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 |
21980 | 66 |
SUNPKCS11_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/jce/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) |
|
21980 | 81 |
@$(ECHO) $(LOG_INFO) Copying prebuilt $(@F) |
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 |
|
21980 | 88 |
TARGETS += $(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 |
21980 | 93 |
SUNEC_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/jce/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) |
|
21980 | 108 |
@$(ECHO) $(LOG_INFO) Copying prebuilt $(@F) |
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 |
||
21980 | 115 |
TARGETS += $(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 |
21980 | 120 |
SUNJCE_PROVIDER_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/jce/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 |
|
21980 | 133 |
TARGETS += $(SUNJCE_PROVIDER_JAR_UNSIGNED) |
17957
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) |
|
21980 | 139 |
@$(ECHO) $(LOG_INFO) Copying prebuilt $(@F) |
15128
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 |
||
21980 | 146 |
TARGETS += $(SUNJCE_PROVIDER_JAR_DST) |
21128
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 |
21980 | 151 |
JCE_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/jce/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 |
|
21980 | 164 |
TARGETS += $(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) |
21980 | 170 |
@$(ECHO) $(LOG_INFO) Copying prebuilt $(@F) |
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 |
||
21980 | 177 |
TARGETS += $(JCE_JAR_DST) |
21128
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 |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
182 |
|
20547 | 183 |
ifneq ($(BUILD_CRYPTO), no) |
21980 | 184 |
|
185 |
US_EXPORT_POLICY_JAR_LIMITED_UNSIGNED := \ |
|
186 |
$(JDK_OUTPUTDIR)/jce/unsigned/policy/limited/US_export_policy.jar |
|
187 |
US_EXPORT_POLICY_JAR_UNLIMITED_UNSIGNED := \ |
|
188 |
$(JDK_OUTPUTDIR)/jce/unsigned/policy/unlimited/US_export_policy.jar |
|
189 |
||
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
190 |
# |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
191 |
# TODO fix so that SetupArchive does not write files into SRCS |
20547 | 192 |
# 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
|
193 |
# |
20547 | 194 |
# NOTE: We currently do not place restrictions on our limited export |
21980 | 195 |
# policy. This was not a typo. This means we are shipping the same file |
196 |
# for both limimted and unlimited US_export_policy.jar. |
|
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
197 |
# |
21805 | 198 |
US_EXPORT_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/data/cryptopolicy/unlimited |
21980 | 199 |
US_EXPORT_POLICY_JAR_TMP := \ |
200 |
$(JDK_OUTPUTDIR)/jce/unsigned/policy/unlimited/US_export_policy_jar.tmp |
|
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
201 |
|
20547 | 202 |
$(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
|
203 |
$(install-file) |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
204 |
|
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
205 |
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
|
206 |
|
20547 | 207 |
$(eval $(call SetupArchive,BUILD_US_EXPORT_POLICY_JAR, $(US_EXPORT_POLICY_JAR_DEPS), \ |
208 |
SRCS := $(US_EXPORT_POLICY_JAR_TMP), \ |
|
209 |
SUFFIXES := .policy, \ |
|
21980 | 210 |
JAR := $(US_EXPORT_POLICY_JAR_UNLIMITED_UNSIGNED), \ |
20547 | 211 |
EXTRA_MANIFEST_ATTR := Crypto-Strength: unlimited, \ |
212 |
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
|
213 |
|
21980 | 214 |
$(US_EXPORT_POLICY_JAR_LIMITED_UNSIGNED): $(US_EXPORT_POLICY_JAR_UNLIMITED_UNSIGNED) |
215 |
$(ECHO) $(LOG_INFO) Copying unlimited $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
|
216 |
$(install-file) |
|
217 |
||
218 |
TARGETS += $(US_EXPORT_POLICY_JAR_LIMITED_UNSIGNED) \ |
|
219 |
$(US_EXPORT_POLICY_JAR_UNLIMITED_UNSIGNED) |
|
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
220 |
endif |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
221 |
|
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
222 |
ifndef OPENJDK |
21980 | 223 |
ifeq ($(UNLIMITED_CRYPTO), true) |
224 |
$(error No prebuilt unlimited crypto jars available) |
|
225 |
endif |
|
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
226 |
$(US_EXPORT_POLICY_JAR_DST): $(JDK_TOPDIR)/make/closed/tools/crypto/jce/US_export_policy.jar |
21980 | 227 |
$(ECHO) $(LOG_INFO) Copying prebuilt $(@F) |
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
228 |
$(install-file) |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
229 |
else |
21980 | 230 |
ifeq ($(UNLIMITED_CRYPTO), true) |
231 |
$(US_EXPORT_POLICY_JAR_DST): $(US_EXPORT_POLICY_JAR_UNLIMITED_UNSIGNED) |
|
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
232 |
$(install-file) |
21980 | 233 |
else |
234 |
$(US_EXPORT_POLICY_JAR_DST): $(US_EXPORT_POLICY_JAR_LIMITED_UNSIGNED) |
|
235 |
$(install-file) |
|
236 |
endif |
|
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
237 |
endif |
12892 | 238 |
|
21980 | 239 |
TARGETS += $(US_EXPORT_POLICY_JAR_DST) |
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
240 |
|
12892 | 241 |
########################################################################################## |
242 |
||
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
243 |
LOCAL_POLICY_JAR_DST := $(JDK_OUTPUTDIR)/lib/security/local_policy.jar |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
244 |
|
20547 | 245 |
ifneq ($(BUILD_CRYPTO), no) |
21980 | 246 |
|
247 |
LOCAL_POLICY_JAR_LIMITED_UNSIGNED := \ |
|
248 |
$(JDK_OUTPUTDIR)/jce/unsigned/policy/limited/local_policy.jar |
|
249 |
LOCAL_POLICY_JAR_UNLIMITED_UNSIGNED := \ |
|
250 |
$(JDK_OUTPUTDIR)/jce/unsigned/policy/unlimited/local_policy.jar |
|
251 |
||
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
252 |
# |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
253 |
# TODO fix so that SetupArchive does not write files into SRCS |
20547 | 254 |
# 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
|
255 |
# |
21980 | 256 |
LOCAL_POLICY_JAR_LIMITED_TMP := \ |
257 |
$(JDK_OUTPUTDIR)/jce/unsigned/policy/limited/local_policy_jar.tmp |
|
258 |
LOCAL_POLICY_JAR_UNLIMITED_TMP := \ |
|
259 |
$(JDK_OUTPUTDIR)/jce/unsigned/policy/unlimited/local_policy_jar.tmp |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
260 |
|
21980 | 261 |
$(LOCAL_POLICY_JAR_LIMITED_TMP)/%: $(JDK_TOPDIR)/make/data/cryptopolicy/limited/% |
262 |
$(install-file) |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
263 |
|
21980 | 264 |
$(LOCAL_POLICY_JAR_UNLIMITED_TMP)/%: $(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
|
265 |
$(install-file) |
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
266 |
|
21980 | 267 |
$(eval $(call SetupArchive,BUILD_LOCAL_POLICY_JAR_LIMITED, \ |
268 |
$(LOCAL_POLICY_JAR_LIMITED_TMP)/exempt_local.policy \ |
|
269 |
$(LOCAL_POLICY_JAR_LIMITED_TMP)/default_local.policy, \ |
|
270 |
SRCS := $(LOCAL_POLICY_JAR_LIMITED_TMP), \ |
|
20547 | 271 |
SUFFIXES := .policy, \ |
21980 | 272 |
JAR := $(LOCAL_POLICY_JAR_LIMITED_UNSIGNED), \ |
273 |
EXTRA_MANIFEST_ATTR := Crypto-Strength: limited, \ |
|
20547 | 274 |
SKIP_METAINF := true)) |
12892 | 275 |
|
21980 | 276 |
$(eval $(call SetupArchive,BUILD_LOCAL_POLICY_JAR_UNLIMITED, \ |
277 |
$(LOCAL_POLICY_JAR_UNLIMITED_TMP)/default_local.policy, \ |
|
278 |
SRCS := $(LOCAL_POLICY_JAR_UNLIMITED_TMP), \ |
|
279 |
SUFFIXES := .policy, \ |
|
280 |
JAR := $(LOCAL_POLICY_JAR_UNLIMITED_UNSIGNED), \ |
|
281 |
EXTRA_MANIFEST_ATTR := Crypto-Strength: unlimited, \ |
|
282 |
SKIP_METAINF := true)) |
|
283 |
||
284 |
TARGETS += $(LOCAL_POLICY_JAR_LIMITED_UNSIGNED) $(LOCAL_POLICY_JAR_UNLIMITED_UNSIGNED) |
|
285 |
||
286 |
ifndef OPENJDK |
|
287 |
$(JDK_OUTPUTDIR)/jce/unsigned/policy/unlimited/README.txt: \ |
|
288 |
$(JDK_TOPDIR)/make/closed/javax/crypto/doc/README.txt |
|
289 |
$(install-file) |
|
290 |
||
291 |
TARGETS += $(JDK_OUTPUTDIR)/jce/unsigned/policy/unlimited/README.txt |
|
292 |
endif |
|
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
293 |
endif |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
294 |
|
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
295 |
ifndef OPENJDK |
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
296 |
$(LOCAL_POLICY_JAR_DST): $(JDK_TOPDIR)/make/closed/tools/crypto/jce/local_policy.jar |
21980 | 297 |
$(ECHO) $(LOG_INFO) Copying prebuilt $(@F) |
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
298 |
$(install-file) |
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
299 |
else |
21980 | 300 |
ifeq ($(UNLIMITED_CRYPTO), true) |
301 |
$(LOCAL_POLICY_JAR_DST): $(LOCAL_POLICY_JAR_UNLIMITED_UNSIGNED) |
|
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
302 |
$(install-file) |
21980 | 303 |
else |
304 |
$(LOCAL_POLICY_JAR_DST): $(LOCAL_POLICY_JAR_LIMITED_UNSIGNED) |
|
305 |
$(install-file) |
|
306 |
endif |
|
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
307 |
endif |
12892 | 308 |
|
21980 | 309 |
TARGETS += $(LOCAL_POLICY_JAR_DST) |
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
310 |
|
12892 | 311 |
########################################################################################## |
312 |
||
20547 | 313 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
12892 | 314 |
|
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
315 |
SUNMSCAPI_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunmscapi.jar |
21980 | 316 |
SUNMSCAPI_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/jce/unsigned/sunmscapi.jar |
12892 | 317 |
|
20547 | 318 |
$(eval $(call SetupArchive,BUILD_SUNMSCAPI_JAR, , \ |
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
319 |
SRCS := $(JDK_OUTPUTDIR)/classes_security, \ |
20547 | 320 |
SUFFIXES := .class, \ |
321 |
INCLUDES := sun/security/mscapi, \ |
|
322 |
JAR := $(SUNMSCAPI_JAR_UNSIGNED), \ |
|
323 |
MANIFEST := $(JCE_MANIFEST), \ |
|
324 |
SKIP_METAINF := true)) |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
325 |
|
20547 | 326 |
$(SUNMSCAPI_JAR_UNSIGNED): $(JCE_MANIFEST) |
15137
1ad653469ebc
8006296: build-infra: Unsigned sunmscapi.jar is missing manifest.
erikj
parents:
15133
diff
changeset
|
327 |
|
20547 | 328 |
ifndef OPENJDK |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
329 |
SUNMSCAPI_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/mscapi/sunmscapi.jar |
20547 | 330 |
$(SUNMSCAPI_JAR_DST): $(SUNMSCAPI_JAR_SRC) |
21980 | 331 |
@$(ECHO) $(LOG_INFO) Copying prebuilt $(@F) |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
332 |
$(install-file) |
20547 | 333 |
else |
334 |
$(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
|
335 |
$(install-file) |
20547 | 336 |
endif |
12892 | 337 |
|
21980 | 338 |
TARGETS += $(SUNMSCAPI_JAR_UNSIGNED) $(SUNMSCAPI_JAR_DST) |
12892 | 339 |
|
340 |
endif |
|
341 |
||
342 |
########################################################################################## |
|
343 |
||
20547 | 344 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
345 |
ifndef OPENJDK |
|
12892 | 346 |
|
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
347 |
UCRYPTO_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/ucrypto.jar |
21980 | 348 |
UCRYPTO_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/jce/unsigned/ucrypto.jar |
20547 | 349 |
UCRYPTO_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ucrypto/ucrypto.jar |
12892 | 350 |
|
20547 | 351 |
$(eval $(call SetupArchive,BUILD_UCRYPTO_JAR, , \ |
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
352 |
SRCS := $(JDK_OUTPUTDIR)/classes_security, \ |
20547 | 353 |
SUFFIXES := .class, \ |
354 |
INCLUDES := com/oracle/security/ucrypto, \ |
|
355 |
JAR := $(UCRYPTO_JAR_UNSIGNED), \ |
|
356 |
MANIFEST := $(JCE_MANIFEST), \ |
|
357 |
SKIP_METAINF := true)) |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
358 |
|
20547 | 359 |
$(UCRYPTO_JAR_UNSIGNED): $(JCE_MANIFEST) |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
360 |
|
20547 | 361 |
$(UCRYPTO_JAR_DST): $(UCRYPTO_JAR_SRC) |
21980 | 362 |
@$(ECHO) $(LOG_INFO) Copying prebuilt $(@F) |
14596
a1f29d55b5ee
8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents:
14527
diff
changeset
|
363 |
$(install-file) |
12892 | 364 |
|
21980 | 365 |
TARGETS += $(UCRYPTO_JAR_UNSIGNED) $(UCRYPTO_JAR_DST) |
12892 | 366 |
|
20547 | 367 |
endif |
12892 | 368 |
endif |
369 |
||
21980 | 370 |
all: $(TARGETS) |
12892 | 371 |
|
372 |
.PHONY: default all |