author | ctornqvi |
Fri, 19 Aug 2016 18:20:22 +0200 | |
changeset 40632 | 8cf7f396360e |
parent 39504 | 96c700e62710 |
permissions | -rw-r--r-- |
27565 | 1 |
# |
39504
96c700e62710
8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents:
35241
diff
changeset
|
2 |
# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. |
27565 | 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 |
||
26 |
default: all |
|
27 |
||
28 |
include $(SPEC) |
|
29 |
include MakeBase.gmk |
|
33503 | 30 |
include JarArchive.gmk |
27565 | 31 |
|
32 |
||
33 |
################################################################################ |
|
34 |
||
35 |
US_EXPORT_POLICY_JAR_DST := \ |
|
36 |
$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/security/US_export_policy.jar |
|
37 |
||
28520
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
38 |
US_EXPORT_POLICY_JAR_LIMITED := \ |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
39 |
$(SUPPORT_OUTPUTDIR)/jce/policy/limited/US_export_policy.jar |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
40 |
US_EXPORT_POLICY_JAR_UNLIMITED := \ |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
41 |
$(SUPPORT_OUTPUTDIR)/jce/policy/unlimited/US_export_policy.jar |
27565 | 42 |
|
28520
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
43 |
# |
33503 | 44 |
# TODO fix so that SetupJarArchive does not write files into SRCS |
28520
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
45 |
# then we don't need this extra copying |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
46 |
# |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
47 |
# NOTE: We currently do not place restrictions on our limited export |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
48 |
# policy. This was not a typo. This means we are shipping the same file |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
49 |
# for both limited and unlimited US_export_policy.jar. Only the local |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
50 |
# policy file currently has restrictions. |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
51 |
# |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
52 |
US_EXPORT_POLICY_JAR_SRC_DIR := \ |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
53 |
$(JDK_TOPDIR)/make/data/cryptopolicy/unlimited |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
54 |
US_EXPORT_POLICY_JAR_TMP := \ |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
55 |
$(SUPPORT_OUTPUTDIR)/jce/policy/unlimited/US_export_policy_jar.tmp |
27565 | 56 |
|
28520
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
57 |
$(US_EXPORT_POLICY_JAR_TMP)/%: $(US_EXPORT_POLICY_JAR_SRC_DIR)/% |
27565 | 58 |
$(install-file) |
59 |
||
28520
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
60 |
US_EXPORT_POLICY_JAR_DEPS := \ |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
61 |
$(US_EXPORT_POLICY_JAR_TMP)/default_US_export.policy |
27565 | 62 |
|
33503 | 63 |
$(eval $(call SetupJarArchive, BUILD_US_EXPORT_POLICY_JAR, \ |
29394
d812e63542e3
8074988: Reduce boilerplate in Setup* macro definitions
erikj
parents:
28520
diff
changeset
|
64 |
DEPENDENCIES := $(US_EXPORT_POLICY_JAR_DEPS), \ |
28520
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
65 |
SRCS := $(US_EXPORT_POLICY_JAR_TMP), \ |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
66 |
SUFFIXES := .policy, \ |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
67 |
JAR := $(US_EXPORT_POLICY_JAR_UNLIMITED), \ |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
68 |
EXTRA_MANIFEST_ATTR := Crypto-Strength: unlimited, \ |
33503 | 69 |
SKIP_METAINF := true, \ |
70 |
)) |
|
27565 | 71 |
|
28520
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
72 |
$(US_EXPORT_POLICY_JAR_LIMITED): \ |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
73 |
$(US_EXPORT_POLICY_JAR_UNLIMITED) |
35241 | 74 |
$(call LogInfo, Copying unlimited $(patsubst $(OUTPUT_ROOT)/%,%,$@)) |
28520
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
75 |
$(install-file) |
27565 | 76 |
|
28520
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
77 |
TARGETS += $(US_EXPORT_POLICY_JAR_LIMITED) $(US_EXPORT_POLICY_JAR_UNLIMITED) |
27565 | 78 |
|
79 |
ifeq ($(UNLIMITED_CRYPTO), true) |
|
80 |
$(US_EXPORT_POLICY_JAR_DST): $(US_EXPORT_POLICY_JAR_UNLIMITED) |
|
81 |
$(install-file) |
|
82 |
else |
|
83 |
$(US_EXPORT_POLICY_JAR_DST): $(US_EXPORT_POLICY_JAR_LIMITED) |
|
84 |
$(install-file) |
|
35241 | 85 |
endif |
27565 | 86 |
|
87 |
POLICY_JARS += $(US_EXPORT_POLICY_JAR_DST) |
|
88 |
||
89 |
################################################################################ |
|
90 |
||
91 |
LOCAL_POLICY_JAR_DST := \ |
|
92 |
$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/security/local_policy.jar |
|
93 |
||
28520
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
94 |
LOCAL_POLICY_JAR_LIMITED := \ |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
95 |
$(SUPPORT_OUTPUTDIR)/jce/policy/limited/local_policy.jar |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
96 |
LOCAL_POLICY_JAR_UNLIMITED := \ |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
97 |
$(SUPPORT_OUTPUTDIR)/jce/policy/unlimited/local_policy.jar |
27565 | 98 |
|
28520
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
99 |
# |
33503 | 100 |
# TODO fix so that SetupJarArchive does not write files into SRCS |
28520
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
101 |
# then we don't need this extra copying |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
102 |
# |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
103 |
LOCAL_POLICY_JAR_LIMITED_TMP := \ |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
104 |
$(SUPPORT_OUTPUTDIR)/jce/policy/limited/local_policy_jar.tmp |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
105 |
LOCAL_POLICY_JAR_UNLIMITED_TMP := \ |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
106 |
$(SUPPORT_OUTPUTDIR)/jce/policy/unlimited/local_policy_jar.tmp |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
107 |
|
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
108 |
$(LOCAL_POLICY_JAR_LIMITED_TMP)/%: \ |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
109 |
$(JDK_TOPDIR)/make/data/cryptopolicy/limited/% |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
110 |
$(install-file) |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
111 |
|
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
112 |
$(LOCAL_POLICY_JAR_UNLIMITED_TMP)/%: \ |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
113 |
$(JDK_TOPDIR)/make/data/cryptopolicy/unlimited/% |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
114 |
$(install-file) |
27565 | 115 |
|
33503 | 116 |
$(eval $(call SetupJarArchive, BUILD_LOCAL_POLICY_JAR_LIMITED, \ |
29394
d812e63542e3
8074988: Reduce boilerplate in Setup* macro definitions
erikj
parents:
28520
diff
changeset
|
117 |
DEPENDENCIES := $(LOCAL_POLICY_JAR_LIMITED_TMP)/exempt_local.policy \ |
d812e63542e3
8074988: Reduce boilerplate in Setup* macro definitions
erikj
parents:
28520
diff
changeset
|
118 |
$(LOCAL_POLICY_JAR_LIMITED_TMP)/default_local.policy, \ |
28520
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
119 |
SRCS := $(LOCAL_POLICY_JAR_LIMITED_TMP), \ |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
120 |
SUFFIXES := .policy, \ |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
121 |
JAR := $(LOCAL_POLICY_JAR_LIMITED), \ |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
122 |
EXTRA_MANIFEST_ATTR := Crypto-Strength: limited, \ |
33503 | 123 |
SKIP_METAINF := true, \ |
124 |
)) |
|
27565 | 125 |
|
33503 | 126 |
$(eval $(call SetupJarArchive, BUILD_LOCAL_POLICY_JAR_UNLIMITED, \ |
29394
d812e63542e3
8074988: Reduce boilerplate in Setup* macro definitions
erikj
parents:
28520
diff
changeset
|
127 |
DEPENDENCIES := $(LOCAL_POLICY_JAR_UNLIMITED_TMP)/default_local.policy, \ |
28520
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
128 |
SRCS := $(LOCAL_POLICY_JAR_UNLIMITED_TMP), \ |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
129 |
SUFFIXES := .policy, \ |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
130 |
JAR := $(LOCAL_POLICY_JAR_UNLIMITED), \ |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
131 |
EXTRA_MANIFEST_ATTR := Crypto-Strength: unlimited, \ |
33503 | 132 |
SKIP_METAINF := true, \ |
133 |
)) |
|
27565 | 134 |
|
28520
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
135 |
TARGETS += $(LOCAL_POLICY_JAR_LIMITED) $(LOCAL_POLICY_JAR_UNLIMITED) |
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
136 |
|
27565 | 137 |
ifeq ($(UNLIMITED_CRYPTO), true) |
138 |
$(LOCAL_POLICY_JAR_DST): $(LOCAL_POLICY_JAR_UNLIMITED) |
|
139 |
$(install-file) |
|
39504
96c700e62710
8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents:
35241
diff
changeset
|
140 |
else |
27565 | 141 |
$(LOCAL_POLICY_JAR_DST): $(LOCAL_POLICY_JAR_LIMITED) |
142 |
$(install-file) |
|
143 |
endif |
|
144 |
||
145 |
POLICY_JARS += $(LOCAL_POLICY_JAR_DST) |
|
146 |
TARGETS += $(POLICY_JARS) |
|
147 |
||
148 |
################################################################################ |
|
149 |
||
39504
96c700e62710
8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents:
35241
diff
changeset
|
150 |
$(eval $(call IncludeCustomExtension, jdk, gendata/GendataPolicyJars.gmk)) |