author | coffeys |
Wed, 13 Nov 2019 11:27:50 +0000 | |
changeset 59055 | 57ad70bcf06c |
parent 47217 | 72e3ae9a25eb |
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 |
||
40565
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
26 |
# |
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
27 |
# In pre-JDK9 releases, Oracle JDK has had a separately downloadable set |
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
28 |
# of policy files which has been a nightmare for deployment. |
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
29 |
# |
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
30 |
# We now create 2 complete initial sets of policy files and package into |
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
31 |
# 2 different directories. The crypto.policy Security property will select |
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
32 |
# the active policy. |
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
33 |
# |
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
34 |
# It will be up to the user/deployer to make an informed choice |
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
35 |
# as to whether they are legally entitled to use the unlimited policy |
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
36 |
# file in their environment. The $(UNLIMITED_CRYPTO) make variable |
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
37 |
# determines the default directory/policy. |
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
38 |
# |
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
39 |
|
27565 | 40 |
default: all |
41 |
||
42 |
include $(SPEC) |
|
43 |
include MakeBase.gmk |
|
44 |
||
45 |
||
46 |
################################################################################ |
|
40565
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
47 |
POLICY_DIR := $(SUPPORT_OUTPUTDIR)/modules_conf/java.base/security/policy |
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
48 |
LIMITED_POLICY_DIR := $(POLICY_DIR)/limited |
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
49 |
UNLIMITED_POLICY_DIR := $(POLICY_DIR)/unlimited |
27565 | 50 |
|
47217 | 51 |
POLICY_SRC_DIR := $(TOPDIR)/src/java.base/share/conf/security/policy |
40565
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
52 |
LIMITED_POLICY_SRC_DIR := $(POLICY_SRC_DIR)/limited |
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
53 |
UNLIMITED_POLICY_SRC_DIR := $(POLICY_SRC_DIR)/unlimited |
27565 | 54 |
|
40565
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
55 |
$(POLICY_DIR)/README.txt: $(POLICY_SRC_DIR)/README.txt |
27565 | 56 |
$(install-file) |
57 |
||
40565
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
58 |
$(LIMITED_POLICY_DIR)/%: $(LIMITED_POLICY_SRC_DIR)/% |
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
59 |
$(install-file) |
27565 | 60 |
|
40565
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
61 |
$(UNLIMITED_POLICY_DIR)/%: $(UNLIMITED_POLICY_SRC_DIR)/% |
28520
178ac8a1fbde
8068748: missing US_export_policy.jar in jdk9-b44 is causing compilation errors building jdk9 source code
erikj
parents:
27565
diff
changeset
|
62 |
$(install-file) |
27565 | 63 |
|
40565
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
64 |
TARGETS += \ |
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
65 |
$(POLICY_DIR)/README.txt \ |
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
66 |
$(LIMITED_POLICY_DIR)/default_US_export.policy \ |
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
67 |
$(LIMITED_POLICY_DIR)/default_local.policy \ |
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
68 |
$(LIMITED_POLICY_DIR)/exempt_local.policy \ |
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
69 |
$(UNLIMITED_POLICY_DIR)/default_US_export.policy \ |
3ac0ba151e70
8061842: Package jurisdiction policy files as something other than JAR
wetmore
parents:
39504
diff
changeset
|
70 |
$(UNLIMITED_POLICY_DIR)/default_local.policy \ |
27565 | 71 |
|
72 |
################################################################################ |