jdk/make/CreateSecurityJars.gmk
author sspitsyn
Fri, 17 Jan 2014 02:13:40 -0800
changeset 22519 924605caa9a8
parent 21980 393509a81cc3
child 22342 c83795c442b7
permissions -rw-r--r--
8030027: nsk/jvmti/scenarios/hotswap/HS101/hs101t006 Crashed the vm on Linux-amd64: SIGSEGV in JavaThread::last_java_vframe(RegisterMap*)+0xfa Summary: Add a safe guard to VMOp_GetCurrentLocation against non-walkable stack of target thread exiting from Java execution Reviewed-by: mgronlun, dholmes, sla, dcubed Contributed-by: serguei.spitsyn@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     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
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     4
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    10
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    15
# accompanied this code).
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    16
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    20
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    23
# questions.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    24
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    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
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    28
include $(SPEC)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    29
include MakeBase.gmk
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    30
include JavaCompilation.gmk
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    31
include Setup.gmk
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    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
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    35
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    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
c7d7946239de 8027566: Remove the old build system
ihse
parents: 21416
diff changeset
    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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    47
	$(SED) -e "s#@@RELEASE@@#$(JDK_VERSION)#" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    48
	    -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    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
52f07c119829 8019155: Update makefiles with correct jfr packages
sla
parents: 18031
diff changeset
    55
# For security and crypto jars, always build the jar, but for closed, install the prebuilt
52f07c119829 8019155: Update makefiles with correct jfr packages
sla
parents: 18031
diff changeset
    56
# signed version instead of the newly built jar. Unsigned jars are treated as intermediate
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
    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
52f07c119829 8019155: Update makefiles with correct jfr packages
sla
parents: 18031
diff changeset
    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
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    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
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
    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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    70
    SUFFIXES := .class, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    71
    INCLUDES := sun/security/pkcs11, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    72
    JAR := $(SUNPKCS11_JAR_UNSIGNED), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    73
    MANIFEST := $(JCE_MANIFEST), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    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
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    77
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
    78
ifndef OPENJDK
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    79
  SUNPKCS11_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/pkcs11/sunpkcs11.jar
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    80
  $(SUNPKCS11_JAR_DST): $(SUNPKCS11_JAR_SRC)
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
    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
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
    83
else
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    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
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
    86
endif
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    87
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
    88
TARGETS += $(SUNPKCS11_JAR_UNSIGNED) $(SUNPKCS11_JAR_DST)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    89
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    90
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    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
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
    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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    97
    SUFFIXES := .class, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    98
    INCLUDES := sun/security/ec, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
    99
    JAR := $(SUNEC_JAR_UNSIGNED), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   100
    MANIFEST := $(JCE_MANIFEST), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   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
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   104
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   105
ifndef OPENJDK
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   106
  SUNEC_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ec/sunec.jar
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   107
  $(SUNEC_JAR_DST): $(SUNEC_JAR_SRC)
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   110
else
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   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
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   113
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   114
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   115
TARGETS += $(SUNEC_JAR_UNSIGNED) $(SUNEC_JAR_DST)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   116
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   117
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   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
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   120
SUNJCE_PROVIDER_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/jce/unsigned/sunjce_provider.jar
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   121
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   122
ifneq ($(BUILD_CRYPTO), no)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   125
      SUFFIXES := .class, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   126
      INCLUDES := com/sun/crypto/provider, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   127
      JAR := $(SUNJCE_PROVIDER_JAR_UNSIGNED), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   128
      MANIFEST := $(JCE_MANIFEST), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   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
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   137
  SUNJCE_PROVIDER_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/jce/sunjce_provider.jar
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   138
  $(SUNJCE_PROVIDER_JAR_DST): $(SUNJCE_PROVIDER_JAR_SRC)
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   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
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   144
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   145
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   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
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   153
ifneq ($(BUILD_CRYPTO), no)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   156
      SUFFIXES := .class, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   157
      INCLUDES := javax/crypto sun/security/internal, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   158
      JAR := $(JCE_JAR_UNSIGNED), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   159
      MANIFEST := $(JCE_MANIFEST), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   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
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   166
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   169
  $(JCE_JAR_DST): $(JCE_JAR_SRC)
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   172
else
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   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
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   175
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   176
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   179
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   183
ifneq ($(BUILD_CRYPTO), no)
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   184
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   185
  US_EXPORT_POLICY_JAR_LIMITED_UNSIGNED := \
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   186
      $(JDK_OUTPUTDIR)/jce/unsigned/policy/limited/US_export_policy.jar
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   187
  US_EXPORT_POLICY_JAR_UNLIMITED_UNSIGNED := \
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   188
      $(JDK_OUTPUTDIR)/jce/unsigned/policy/unlimited/US_export_policy.jar
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   194
  # NOTE: We currently do not place restrictions on our limited export
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   195
  # policy. This was not a typo. This means we are shipping the same file
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
c7d7946239de 8027566: Remove the old build system
ihse
parents: 21416
diff changeset
   198
  US_EXPORT_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/data/cryptopolicy/unlimited
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   199
  US_EXPORT_POLICY_JAR_TMP := \
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   207
  $(eval $(call SetupArchive,BUILD_US_EXPORT_POLICY_JAR, $(US_EXPORT_POLICY_JAR_DEPS), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   208
      SRCS := $(US_EXPORT_POLICY_JAR_TMP), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   209
      SUFFIXES := .policy, \
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   210
      JAR := $(US_EXPORT_POLICY_JAR_UNLIMITED_UNSIGNED), \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   211
      EXTRA_MANIFEST_ATTR := Crypto-Strength: unlimited, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   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
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   214
  $(US_EXPORT_POLICY_JAR_LIMITED_UNSIGNED): $(US_EXPORT_POLICY_JAR_UNLIMITED_UNSIGNED)
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   215
	$(ECHO) $(LOG_INFO) Copying unlimited $(patsubst $(OUTPUT_ROOT)/%,%,$@)
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   216
	$(install-file)
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   217
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   218
  TARGETS += $(US_EXPORT_POLICY_JAR_LIMITED_UNSIGNED) \
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   223
  ifeq ($(UNLIMITED_CRYPTO), true)
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   224
    $(error No prebuilt unlimited crypto jars available)
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   230
  ifeq ($(UNLIMITED_CRYPTO), true)
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   233
  else
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   234
    $(US_EXPORT_POLICY_JAR_DST): $(US_EXPORT_POLICY_JAR_LIMITED_UNSIGNED)
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   235
	$(install-file)
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   238
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   241
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   245
ifneq ($(BUILD_CRYPTO), no)
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   246
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   247
  LOCAL_POLICY_JAR_LIMITED_UNSIGNED := \
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   248
      $(JDK_OUTPUTDIR)/jce/unsigned/policy/limited/local_policy.jar
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   249
  LOCAL_POLICY_JAR_UNLIMITED_UNSIGNED := \
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   250
      $(JDK_OUTPUTDIR)/jce/unsigned/policy/unlimited/local_policy.jar
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   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
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   256
  LOCAL_POLICY_JAR_LIMITED_TMP := \
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   257
      $(JDK_OUTPUTDIR)/jce/unsigned/policy/limited/local_policy_jar.tmp
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   258
  LOCAL_POLICY_JAR_UNLIMITED_TMP := \
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   261
  $(LOCAL_POLICY_JAR_LIMITED_TMP)/%: $(JDK_TOPDIR)/make/data/cryptopolicy/limited/%
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   262
	$(install-file)
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   263
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   267
  $(eval $(call SetupArchive,BUILD_LOCAL_POLICY_JAR_LIMITED, \
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   268
      $(LOCAL_POLICY_JAR_LIMITED_TMP)/exempt_local.policy \
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   269
      $(LOCAL_POLICY_JAR_LIMITED_TMP)/default_local.policy, \
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   270
      SRCS := $(LOCAL_POLICY_JAR_LIMITED_TMP), \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   271
      SUFFIXES := .policy, \
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   272
      JAR := $(LOCAL_POLICY_JAR_LIMITED_UNSIGNED), \
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   273
      EXTRA_MANIFEST_ATTR := Crypto-Strength: limited, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   274
      SKIP_METAINF := true))
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   275
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   276
  $(eval $(call SetupArchive,BUILD_LOCAL_POLICY_JAR_UNLIMITED, \
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   277
      $(LOCAL_POLICY_JAR_UNLIMITED_TMP)/default_local.policy, \
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   278
      SRCS := $(LOCAL_POLICY_JAR_UNLIMITED_TMP), \
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   279
      SUFFIXES := .policy, \
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   280
      JAR := $(LOCAL_POLICY_JAR_UNLIMITED_UNSIGNED), \
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   281
      EXTRA_MANIFEST_ATTR := Crypto-Strength: unlimited, \
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   282
      SKIP_METAINF := true))
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   283
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   284
  TARGETS += $(LOCAL_POLICY_JAR_LIMITED_UNSIGNED) $(LOCAL_POLICY_JAR_UNLIMITED_UNSIGNED)
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   285
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   286
  ifndef OPENJDK
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   287
    $(JDK_OUTPUTDIR)/jce/unsigned/policy/unlimited/README.txt: \
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   288
        $(JDK_TOPDIR)/make/closed/javax/crypto/doc/README.txt
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   289
		$(install-file)
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   290
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   291
    TARGETS += $(JDK_OUTPUTDIR)/jce/unsigned/policy/unlimited/README.txt
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   300
  ifeq ($(UNLIMITED_CRYPTO), true)
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   303
  else
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   304
    $(LOCAL_POLICY_JAR_DST): $(LOCAL_POLICY_JAR_LIMITED_UNSIGNED)
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   305
	$(install-file)
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   308
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   311
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   312
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   313
ifeq ($(OPENJDK_TARGET_OS), windows)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   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
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   316
  SUNMSCAPI_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/jce/unsigned/sunmscapi.jar
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   317
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   320
      SUFFIXES := .class, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   321
      INCLUDES := sun/security/mscapi, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   322
      JAR := $(SUNMSCAPI_JAR_UNSIGNED), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   323
      MANIFEST := $(JCE_MANIFEST), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   326
  $(SUNMSCAPI_JAR_UNSIGNED): $(JCE_MANIFEST)
15137
1ad653469ebc 8006296: build-infra: Unsigned sunmscapi.jar is missing manifest.
erikj
parents: 15133
diff changeset
   327
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   330
    $(SUNMSCAPI_JAR_DST): $(SUNMSCAPI_JAR_SRC)
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   333
  else
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   336
  endif
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   337
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   338
  TARGETS += $(SUNMSCAPI_JAR_UNSIGNED) $(SUNMSCAPI_JAR_DST)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   339
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   340
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   341
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   342
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   343
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   344
ifeq ($(OPENJDK_TARGET_OS), solaris)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   345
  ifndef OPENJDK
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   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
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   348
    UCRYPTO_JAR_UNSIGNED := $(JDK_OUTPUTDIR)/jce/unsigned/ucrypto.jar
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   349
    UCRYPTO_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ucrypto/ucrypto.jar
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   350
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   353
        SUFFIXES := .class, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   354
        INCLUDES := com/oracle/security/ucrypto, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   355
        JAR := $(UCRYPTO_JAR_UNSIGNED), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   356
        MANIFEST := $(JCE_MANIFEST), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   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
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   361
    $(UCRYPTO_JAR_DST): $(UCRYPTO_JAR_SRC)
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   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
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   364
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   365
    TARGETS += $(UCRYPTO_JAR_UNSIGNED) $(UCRYPTO_JAR_DST)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   366
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20324
diff changeset
   367
  endif
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   368
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   369
21980
393509a81cc3 8027963: Create unlimited policy jars.
erikj
parents: 21805
diff changeset
   370
all: $(TARGETS)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   371
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   372
.PHONY: default all