8005355: build-infra: Java security signing (need a top-level make target).
authorerikj
Wed, 02 Jan 2013 15:36:00 +0100
changeset 15057 6cdc13b4157e
parent 15056 6a7cbe3b0f08
child 15058 61c4ac49cbda
8005355: build-infra: Java security signing (need a top-level make target). Reviewed-by: tbell, ohair
common/autoconf/spec.gmk.in
common/makefiles/Main.gmk
--- a/common/autoconf/spec.gmk.in	Wed Jan 02 11:29:29 2013 +0100
+++ b/common/autoconf/spec.gmk.in	Wed Jan 02 15:36:00 2013 +0100
@@ -231,6 +231,7 @@
 HOTSPOT_OUTPUTDIR=$(BUILD_OUTPUT)/hotspot
 JDK_OUTPUTDIR=$(BUILD_OUTPUT)/jdk
 IMAGES_OUTPUTDIR=$(BUILD_OUTPUT)/images
+JCE_OUTPUTDIR=$(BUILD_OUTPUT)/jce-release
 
 LANGTOOLS_DIST=$(LANGTOOLS_OUTPUTDIR)/dist
 CORBA_DIST=$(CORBA_OUTPUTDIR)/dist
@@ -431,6 +432,8 @@
 
 NATIVE2ASCII=@FIXPATH@ $(BOOT_JDK)/bin/native2ascii
 
+JARSIGNER=@FIXPATH@ $(BOOT_JDK)/bin/jarsigner
+
 # Base flags for RC
 # Guarding this against resetting value. Legacy make files include spec multiple
 # times.
--- a/common/makefiles/Main.gmk	Wed Jan 02 11:29:29 2013 +0100
+++ b/common/makefiles/Main.gmk	Wed Jan 02 15:36:00 2013 +0100
@@ -142,6 +142,12 @@
 	@($(CD) $(SRC_ROOT)/common/makefiles/javadoc && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f Javadoc.gmk docs)
 	@$(call TargetExit)
 
+sign-jars: jdk sign-jars-only
+sign-jars-only: start-make
+	@$(call TargetEnter)
+	@($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk sign-jars)
+	@$(call TargetExit)
+
 bootcycle-images:
 	@$(ECHO) Boot cycle build step 1: Building the JDK image normally
 	@($(CD) $(SRC_ROOT)/common/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) SPEC=$(SPEC) images)