2014-08-17 14:54:13 +00:00
|
|
|
#
|
2016-07-08 06:56:39 +00:00
|
|
|
# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
2014-08-17 14:54:13 +00:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
# This code is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU General Public License version 2 only, as
|
|
|
|
# published by the Free Software Foundation. Oracle designates this
|
|
|
|
# particular file as subject to the "Classpath" exception as provided
|
|
|
|
# by Oracle in the LICENSE file that accompanied this code.
|
|
|
|
#
|
|
|
|
# This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
# version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
# accompanied this code).
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License version
|
|
|
|
# 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
#
|
|
|
|
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
# or visit www.oracle.com if you need additional information or have any
|
|
|
|
# questions.
|
|
|
|
#
|
|
|
|
|
|
|
|
default: all
|
|
|
|
|
|
|
|
include $(SPEC)
|
|
|
|
include MakeBase.gmk
|
2015-11-03 16:54:25 +00:00
|
|
|
include JarArchive.gmk
|
2014-08-17 14:54:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2014-12-03 14:22:58 +00:00
|
|
|
US_EXPORT_POLICY_JAR_DST := \
|
|
|
|
$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/security/US_export_policy.jar
|
2014-08-17 14:54:13 +00:00
|
|
|
|
2015-01-19 08:05:50 +00:00
|
|
|
US_EXPORT_POLICY_JAR_LIMITED := \
|
|
|
|
$(SUPPORT_OUTPUTDIR)/jce/policy/limited/US_export_policy.jar
|
|
|
|
US_EXPORT_POLICY_JAR_UNLIMITED := \
|
|
|
|
$(SUPPORT_OUTPUTDIR)/jce/policy/unlimited/US_export_policy.jar
|
2014-09-27 00:05:05 +00:00
|
|
|
|
2015-01-19 08:05:50 +00:00
|
|
|
#
|
2015-11-03 16:54:25 +00:00
|
|
|
# TODO fix so that SetupJarArchive does not write files into SRCS
|
2015-01-19 08:05:50 +00:00
|
|
|
# then we don't need this extra copying
|
|
|
|
#
|
|
|
|
# NOTE: We currently do not place restrictions on our limited export
|
|
|
|
# policy. This was not a typo. This means we are shipping the same file
|
|
|
|
# for both limited and unlimited US_export_policy.jar. Only the local
|
|
|
|
# policy file currently has restrictions.
|
|
|
|
#
|
|
|
|
US_EXPORT_POLICY_JAR_SRC_DIR := \
|
|
|
|
$(JDK_TOPDIR)/make/data/cryptopolicy/unlimited
|
|
|
|
US_EXPORT_POLICY_JAR_TMP := \
|
|
|
|
$(SUPPORT_OUTPUTDIR)/jce/policy/unlimited/US_export_policy_jar.tmp
|
2014-08-17 14:54:13 +00:00
|
|
|
|
2015-01-19 08:05:50 +00:00
|
|
|
$(US_EXPORT_POLICY_JAR_TMP)/%: $(US_EXPORT_POLICY_JAR_SRC_DIR)/%
|
2014-08-17 14:54:13 +00:00
|
|
|
$(install-file)
|
|
|
|
|
2015-01-19 08:05:50 +00:00
|
|
|
US_EXPORT_POLICY_JAR_DEPS := \
|
|
|
|
$(US_EXPORT_POLICY_JAR_TMP)/default_US_export.policy
|
|
|
|
|
2015-11-03 16:54:25 +00:00
|
|
|
$(eval $(call SetupJarArchive, BUILD_US_EXPORT_POLICY_JAR, \
|
2015-03-12 11:13:48 +00:00
|
|
|
DEPENDENCIES := $(US_EXPORT_POLICY_JAR_DEPS), \
|
2015-01-19 08:05:50 +00:00
|
|
|
SRCS := $(US_EXPORT_POLICY_JAR_TMP), \
|
|
|
|
SUFFIXES := .policy, \
|
|
|
|
JAR := $(US_EXPORT_POLICY_JAR_UNLIMITED), \
|
|
|
|
EXTRA_MANIFEST_ATTR := Crypto-Strength: unlimited, \
|
2015-11-03 16:54:25 +00:00
|
|
|
SKIP_METAINF := true, \
|
|
|
|
))
|
2015-01-19 08:05:50 +00:00
|
|
|
|
|
|
|
$(US_EXPORT_POLICY_JAR_LIMITED): \
|
|
|
|
$(US_EXPORT_POLICY_JAR_UNLIMITED)
|
2016-01-16 12:01:44 +00:00
|
|
|
$(call LogInfo, Copying unlimited $(patsubst $(OUTPUT_ROOT)/%,%,$@))
|
2015-01-19 08:05:50 +00:00
|
|
|
$(install-file)
|
2014-08-17 14:54:13 +00:00
|
|
|
|
2015-01-19 08:05:50 +00:00
|
|
|
TARGETS += $(US_EXPORT_POLICY_JAR_LIMITED) $(US_EXPORT_POLICY_JAR_UNLIMITED)
|
2014-08-17 14:54:13 +00:00
|
|
|
|
2014-09-27 00:05:05 +00:00
|
|
|
ifeq ($(UNLIMITED_CRYPTO), true)
|
2014-12-03 14:22:58 +00:00
|
|
|
$(US_EXPORT_POLICY_JAR_DST): $(US_EXPORT_POLICY_JAR_UNLIMITED)
|
2014-08-17 14:54:13 +00:00
|
|
|
$(install-file)
|
|
|
|
else
|
2014-12-03 14:22:58 +00:00
|
|
|
$(US_EXPORT_POLICY_JAR_DST): $(US_EXPORT_POLICY_JAR_LIMITED)
|
2014-08-17 14:54:13 +00:00
|
|
|
$(install-file)
|
2016-01-16 12:01:44 +00:00
|
|
|
endif
|
2014-09-27 00:05:05 +00:00
|
|
|
|
2014-08-17 14:54:13 +00:00
|
|
|
POLICY_JARS += $(US_EXPORT_POLICY_JAR_DST)
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2014-12-03 14:22:58 +00:00
|
|
|
LOCAL_POLICY_JAR_DST := \
|
|
|
|
$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/security/local_policy.jar
|
2014-08-17 14:54:13 +00:00
|
|
|
|
2015-01-19 08:05:50 +00:00
|
|
|
LOCAL_POLICY_JAR_LIMITED := \
|
|
|
|
$(SUPPORT_OUTPUTDIR)/jce/policy/limited/local_policy.jar
|
|
|
|
LOCAL_POLICY_JAR_UNLIMITED := \
|
|
|
|
$(SUPPORT_OUTPUTDIR)/jce/policy/unlimited/local_policy.jar
|
2014-08-17 14:54:13 +00:00
|
|
|
|
2015-01-19 08:05:50 +00:00
|
|
|
#
|
2015-11-03 16:54:25 +00:00
|
|
|
# TODO fix so that SetupJarArchive does not write files into SRCS
|
2015-01-19 08:05:50 +00:00
|
|
|
# then we don't need this extra copying
|
|
|
|
#
|
|
|
|
LOCAL_POLICY_JAR_LIMITED_TMP := \
|
|
|
|
$(SUPPORT_OUTPUTDIR)/jce/policy/limited/local_policy_jar.tmp
|
|
|
|
LOCAL_POLICY_JAR_UNLIMITED_TMP := \
|
|
|
|
$(SUPPORT_OUTPUTDIR)/jce/policy/unlimited/local_policy_jar.tmp
|
2014-08-17 14:54:13 +00:00
|
|
|
|
2015-01-19 08:05:50 +00:00
|
|
|
$(LOCAL_POLICY_JAR_LIMITED_TMP)/%: \
|
|
|
|
$(JDK_TOPDIR)/make/data/cryptopolicy/limited/%
|
|
|
|
$(install-file)
|
2014-08-17 14:54:13 +00:00
|
|
|
|
2015-01-19 08:05:50 +00:00
|
|
|
$(LOCAL_POLICY_JAR_UNLIMITED_TMP)/%: \
|
|
|
|
$(JDK_TOPDIR)/make/data/cryptopolicy/unlimited/%
|
|
|
|
$(install-file)
|
2014-08-17 14:54:13 +00:00
|
|
|
|
2015-11-03 16:54:25 +00:00
|
|
|
$(eval $(call SetupJarArchive, BUILD_LOCAL_POLICY_JAR_LIMITED, \
|
2015-03-12 11:13:48 +00:00
|
|
|
DEPENDENCIES := $(LOCAL_POLICY_JAR_LIMITED_TMP)/exempt_local.policy \
|
|
|
|
$(LOCAL_POLICY_JAR_LIMITED_TMP)/default_local.policy, \
|
2015-01-19 08:05:50 +00:00
|
|
|
SRCS := $(LOCAL_POLICY_JAR_LIMITED_TMP), \
|
|
|
|
SUFFIXES := .policy, \
|
|
|
|
JAR := $(LOCAL_POLICY_JAR_LIMITED), \
|
|
|
|
EXTRA_MANIFEST_ATTR := Crypto-Strength: limited, \
|
2015-11-03 16:54:25 +00:00
|
|
|
SKIP_METAINF := true, \
|
|
|
|
))
|
2015-01-19 08:05:50 +00:00
|
|
|
|
2015-11-03 16:54:25 +00:00
|
|
|
$(eval $(call SetupJarArchive, BUILD_LOCAL_POLICY_JAR_UNLIMITED, \
|
2015-03-12 11:13:48 +00:00
|
|
|
DEPENDENCIES := $(LOCAL_POLICY_JAR_UNLIMITED_TMP)/default_local.policy, \
|
2015-01-19 08:05:50 +00:00
|
|
|
SRCS := $(LOCAL_POLICY_JAR_UNLIMITED_TMP), \
|
|
|
|
SUFFIXES := .policy, \
|
|
|
|
JAR := $(LOCAL_POLICY_JAR_UNLIMITED), \
|
|
|
|
EXTRA_MANIFEST_ATTR := Crypto-Strength: unlimited, \
|
2015-11-03 16:54:25 +00:00
|
|
|
SKIP_METAINF := true, \
|
|
|
|
))
|
2015-01-19 08:05:50 +00:00
|
|
|
|
|
|
|
TARGETS += $(LOCAL_POLICY_JAR_LIMITED) $(LOCAL_POLICY_JAR_UNLIMITED)
|
2014-08-17 14:54:13 +00:00
|
|
|
|
2014-09-27 00:05:05 +00:00
|
|
|
ifeq ($(UNLIMITED_CRYPTO), true)
|
2014-12-03 14:22:58 +00:00
|
|
|
$(LOCAL_POLICY_JAR_DST): $(LOCAL_POLICY_JAR_UNLIMITED)
|
2014-08-17 14:54:13 +00:00
|
|
|
$(install-file)
|
2016-07-08 06:56:39 +00:00
|
|
|
else
|
2014-12-03 14:22:58 +00:00
|
|
|
$(LOCAL_POLICY_JAR_DST): $(LOCAL_POLICY_JAR_LIMITED)
|
2014-08-17 14:54:13 +00:00
|
|
|
$(install-file)
|
|
|
|
endif
|
|
|
|
|
|
|
|
POLICY_JARS += $(LOCAL_POLICY_JAR_DST)
|
|
|
|
TARGETS += $(POLICY_JARS)
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2016-07-08 06:56:39 +00:00
|
|
|
$(eval $(call IncludeCustomExtension, jdk, gendata/GendataPolicyJars.gmk))
|