author | kshefov |
Tue, 25 Nov 2014 14:16:55 +0400 | |
changeset 27758 | dfba484228ed |
parent 27182 | 4525d13b8af1 |
permissions | -rw-r--r-- |
12892 | 1 |
# |
26861
47dde7f5cf36
8058845: Update JCE environment for build improvements
wetmore
parents:
26191
diff
changeset
|
2 |
# Copyright (c) 2013, 2014, 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 |
||
32 |
########################################################################################## |
|
14527
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
33 |
# Create manifest for security jars |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
34 |
# |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
35 |
# 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
|
36 |
# |
21805 | 37 |
MAINMANIFEST := $(JDK_TOPDIR)/make/data/mainmanifest/manifest.mf |
26861
47dde7f5cf36
8058845: Update JCE environment for build improvements
wetmore
parents:
26191
diff
changeset
|
38 |
JCE_MANIFEST := $(JDK_OUTPUTDIR)/jce/unsigned/_the.security.manifest.mf |
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
39 |
|
14527
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
40 |
$(JCE_MANIFEST): $(MAINMANIFEST) |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
41 |
$(MKDIR) -p $(@D) |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
42 |
$(RM) $@ $@.tmp |
20547 | 43 |
$(SED) -e "s#@@RELEASE@@#$(JDK_VERSION)#" \ |
44 |
-e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \ |
|
45 |
$(MAINMANIFEST) >> $@.tmp |
|
14527
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
46 |
$(ECHO) "Extension-Name: javax.crypto" >> $@.tmp |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
47 |
$(ECHO) "Implementation-Vendor-Id: com.sun" >> $@.tmp |
26861
47dde7f5cf36
8058845: Update JCE environment for build improvements
wetmore
parents:
26191
diff
changeset
|
48 |
$(ECHO) "Release-Version: $(RELEASE)" >> $@.tmp |
14527
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
49 |
$(MV) $@.tmp $@ |
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
50 |
|
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
51 |
########################################################################################## |
26861
47dde7f5cf36
8058845: Update JCE environment for build improvements
wetmore
parents:
26191
diff
changeset
|
52 |
# For crypto jars, always build the jar. |
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
53 |
# |
26861
47dde7f5cf36
8058845: Update JCE environment for build improvements
wetmore
parents:
26191
diff
changeset
|
54 |
# The source for the crypto jars is not available for all licensees. |
47dde7f5cf36
8058845: Update JCE environment for build improvements
wetmore
parents:
26191
diff
changeset
|
55 |
# The BUILD_CRYPTO variable is set to no if these jars can't be built |
47dde7f5cf36
8058845: Update JCE environment for build improvements
wetmore
parents:
26191
diff
changeset
|
56 |
# to skip that step of the build. |
12892 | 57 |
|
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
58 |
SUNPKCS11_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunpkcs11.jar |
21980 | 59 |
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
|
60 |
|
20547 | 61 |
$(eval $(call SetupArchive,BUILD_SUNPKCS11_JAR, , \ |
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25859
diff
changeset
|
62 |
SRCS := $(JDK_OUTPUTDIR)/modules/jdk.crypto.pkcs11, \ |
20547 | 63 |
SUFFIXES := .class, \ |
64 |
INCLUDES := sun/security/pkcs11, \ |
|
65 |
JAR := $(SUNPKCS11_JAR_UNSIGNED), \ |
|
66 |
MANIFEST := $(JCE_MANIFEST), \ |
|
67 |
SKIP_METAINF := true)) |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
68 |
|
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
69 |
$(SUNPKCS11_JAR_UNSIGNED): $(JCE_MANIFEST) |
12892 | 70 |
|
26861
47dde7f5cf36
8058845: Update JCE environment for build improvements
wetmore
parents:
26191
diff
changeset
|
71 |
$(SUNPKCS11_JAR_DST): $(SUNPKCS11_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
|
72 |
$(install-file) |
12892 | 73 |
|
21980 | 74 |
TARGETS += $(SUNPKCS11_JAR_UNSIGNED) $(SUNPKCS11_JAR_DST) |
12892 | 75 |
|
76 |
########################################################################################## |
|
77 |
||
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
78 |
SUNEC_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunec.jar |
21980 | 79 |
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
|
80 |
|
20547 | 81 |
$(eval $(call SetupArchive,BUILD_SUNEC_JAR, , \ |
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25859
diff
changeset
|
82 |
SRCS := $(JDK_OUTPUTDIR)/modules/jdk.crypto.ec, \ |
20547 | 83 |
SUFFIXES := .class, \ |
84 |
INCLUDES := sun/security/ec, \ |
|
85 |
JAR := $(SUNEC_JAR_UNSIGNED), \ |
|
86 |
MANIFEST := $(JCE_MANIFEST), \ |
|
87 |
SKIP_METAINF := true)) |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
88 |
|
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
89 |
$(SUNEC_JAR_UNSIGNED): $(JCE_MANIFEST) |
12892 | 90 |
|
26861
47dde7f5cf36
8058845: Update JCE environment for build improvements
wetmore
parents:
26191
diff
changeset
|
91 |
$(SUNEC_JAR_DST): $(SUNEC_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
|
92 |
$(install-file) |
12892 | 93 |
|
21980 | 94 |
TARGETS += $(SUNEC_JAR_UNSIGNED) $(SUNEC_JAR_DST) |
12892 | 95 |
|
96 |
########################################################################################## |
|
97 |
||
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
98 |
SUNJCE_PROVIDER_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunjce_provider.jar |
26861
47dde7f5cf36
8058845: Update JCE environment for build improvements
wetmore
parents:
26191
diff
changeset
|
99 |
SUNJCE_PROVIDER_JAR_UNSIGNED := \ |
47dde7f5cf36
8058845: Update JCE environment for build improvements
wetmore
parents:
26191
diff
changeset
|
100 |
$(JDK_OUTPUTDIR)/jce/unsigned/sunjce_provider.jar |
12892 | 101 |
|
20547 | 102 |
ifneq ($(BUILD_CRYPTO), no) |
103 |
$(eval $(call SetupArchive,BUILD_SUNJCE_PROVIDER_JAR, , \ |
|
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25859
diff
changeset
|
104 |
SRCS := $(JDK_OUTPUTDIR)/modules/java.base, \ |
20547 | 105 |
SUFFIXES := .class, \ |
106 |
INCLUDES := com/sun/crypto/provider, \ |
|
107 |
JAR := $(SUNJCE_PROVIDER_JAR_UNSIGNED), \ |
|
108 |
MANIFEST := $(JCE_MANIFEST), \ |
|
109 |
SKIP_METAINF := true)) |
|
14527
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
110 |
|
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
111 |
$(SUNJCE_PROVIDER_JAR_UNSIGNED): $(JCE_MANIFEST) |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
112 |
|
21980 | 113 |
TARGETS += $(SUNJCE_PROVIDER_JAR_UNSIGNED) |
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
114 |
endif |
14527
b2b7e2931859
8003482: build-infra: Use correct manifest in security jars
erikj
parents:
14425
diff
changeset
|
115 |
|
26861
47dde7f5cf36
8058845: Update JCE environment for build improvements
wetmore
parents:
26191
diff
changeset
|
116 |
$(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
|
117 |
$(install-file) |
12892 | 118 |
|
21980 | 119 |
TARGETS += $(SUNJCE_PROVIDER_JAR_DST) |
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
120 |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
121 |
########################################################################################## |
12892 | 122 |
|
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
123 |
JCE_JAR_DST := $(JDK_OUTPUTDIR)/lib/jce.jar |
21980 | 124 |
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
|
125 |
|
20547 | 126 |
ifneq ($(BUILD_CRYPTO), no) |
127 |
$(eval $(call SetupArchive,BUILD_JCE_JAR, , \ |
|
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25859
diff
changeset
|
128 |
SRCS := $(JDK_OUTPUTDIR)/modules/java.base, \ |
20547 | 129 |
SUFFIXES := .class, \ |
130 |
INCLUDES := javax/crypto sun/security/internal, \ |
|
131 |
JAR := $(JCE_JAR_UNSIGNED), \ |
|
132 |
MANIFEST := $(JCE_MANIFEST), \ |
|
133 |
SKIP_METAINF := true)) |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
134 |
|
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
135 |
$(JCE_JAR_UNSIGNED): $(JCE_MANIFEST) |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
136 |
|
21980 | 137 |
TARGETS += $(JCE_JAR_UNSIGNED) |
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
17493
diff
changeset
|
138 |
endif |
12892 | 139 |
|
26861
47dde7f5cf36
8058845: Update JCE environment for build improvements
wetmore
parents:
26191
diff
changeset
|
140 |
$(JCE_JAR_DST): $(JCE_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
|
141 |
$(install-file) |
12892 | 142 |
|
21980 | 143 |
TARGETS += $(JCE_JAR_DST) |
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
144 |
|
12892 | 145 |
########################################################################################## |
146 |
||
20547 | 147 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
12892 | 148 |
|
21128
2a7460bba7a5
8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents:
20884
diff
changeset
|
149 |
SUNMSCAPI_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunmscapi.jar |
21980 | 150 |
SUNMSCAPI_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/jce/unsigned/sunmscapi.jar |
12892 | 151 |
|
20547 | 152 |
$(eval $(call SetupArchive,BUILD_SUNMSCAPI_JAR, , \ |
26191
a0ff4b39d34b
8055188: General cleanup of minor issues from source restructure
erikj
parents:
25859
diff
changeset
|
153 |
SRCS := $(JDK_OUTPUTDIR)/modules/jdk.crypto.mscapi, \ |
20547 | 154 |
SUFFIXES := .class, \ |
155 |
INCLUDES := sun/security/mscapi, \ |
|
156 |
JAR := $(SUNMSCAPI_JAR_UNSIGNED), \ |
|
157 |
MANIFEST := $(JCE_MANIFEST), \ |
|
158 |
SKIP_METAINF := true)) |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
159 |
|
20547 | 160 |
$(SUNMSCAPI_JAR_UNSIGNED): $(JCE_MANIFEST) |
15137
1ad653469ebc
8006296: build-infra: Unsigned sunmscapi.jar is missing manifest.
erikj
parents:
15133
diff
changeset
|
161 |
|
26861
47dde7f5cf36
8058845: Update JCE environment for build improvements
wetmore
parents:
26191
diff
changeset
|
162 |
$(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
|
163 |
$(install-file) |
12892 | 164 |
|
21980 | 165 |
TARGETS += $(SUNMSCAPI_JAR_UNSIGNED) $(SUNMSCAPI_JAR_DST) |
12892 | 166 |
|
167 |
endif |
|
168 |
||
169 |
########################################################################################## |
|
170 |
||
20547 | 171 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
12892 | 172 |
|
27182 | 173 |
UCRYPTO_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/ucrypto.jar |
174 |
UCRYPTO_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/jce/unsigned/ucrypto.jar |
|
12892 | 175 |
|
27182 | 176 |
$(eval $(call SetupArchive,BUILD_UCRYPTO_JAR, , \ |
177 |
SRCS := $(JDK_OUTPUTDIR)/modules/jdk.crypto.ucrypto, \ |
|
178 |
SUFFIXES := .class, \ |
|
179 |
INCLUDES := com/oracle/security/ucrypto, \ |
|
180 |
JAR := $(UCRYPTO_JAR_UNSIGNED), \ |
|
181 |
MANIFEST := $(JCE_MANIFEST), \ |
|
182 |
SKIP_METAINF := true)) |
|
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
183 |
|
27182 | 184 |
$(UCRYPTO_JAR_UNSIGNED): $(JCE_MANIFEST) |
15128
296bb1620e00
8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents:
15126
diff
changeset
|
185 |
|
27182 | 186 |
$(UCRYPTO_JAR_DST): $(UCRYPTO_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
|
187 |
$(install-file) |
12892 | 188 |
|
27182 | 189 |
TARGETS += $(UCRYPTO_JAR_UNSIGNED) $(UCRYPTO_JAR_DST) |
12892 | 190 |
|
191 |
endif |
|
192 |
||
21980 | 193 |
all: $(TARGETS) |
12892 | 194 |
|
195 |
.PHONY: default all |