8144172: Problem with bootcycle-images and sjavac
authorerikj
Fri, 27 Nov 2015 16:29:22 +0100
changeset 34105 ce71d2b2f34b
parent 34104 8f2e01846289
child 34106 967bd03e052b
child 34112 ca5926d71db7
8144172: Problem with bootcycle-images and sjavac Reviewed-by: ihse
common/autoconf/bootcycle-spec.gmk.in
make/Main.gmk
--- a/common/autoconf/bootcycle-spec.gmk.in	Wed Nov 25 15:56:29 2015 +0100
+++ b/common/autoconf/bootcycle-spec.gmk.in	Fri Nov 27 16:29:22 2015 +0100
@@ -59,3 +59,8 @@
 JAR_CMD:=$(BOOT_JDK)/bin/jar
 JARSIGNER_CMD:=$(BOOT_JDK)/bin/jarsigner
 SJAVAC_SERVER_JAVA_CMD:=$(JAVA_CMD)
+# When building a 32bit target, make sure the sjavac server flags are compatible
+# with a 32bit JVM.
+ifeq ($(OPENJDK_TARGET_CPU_BITS), 32)
+  SJAVAC_SERVER_JAVA_FLAGS:= -Xms256M -Xmx1500M
+endif
--- a/make/Main.gmk	Wed Nov 25 15:56:29 2015 +0100
+++ b/make/Main.gmk	Fri Nov 27 16:29:22 2015 +0100
@@ -226,8 +226,8 @@
 BOOTCYCLE_TARGET := product-images
 bootcycle-images:
 	@$(ECHO) Boot cycle build step 2: Building a new JDK image using previously built image
-	+$(MAKE) $(MAKE_ARGS) -f $(SRC_ROOT)/make/Main.gmk \
-	    SPEC=$(dir $(SPEC))bootcycle-spec.gmk $(BOOTCYCLE_TARGET)
+	+$(MAKE) -f $(SRC_ROOT)/make/Init.gmk PARALLEL_TARGETS=$(BOOTCYCLE_TARGET) \
+	    JOBS= SPEC=$(dir $(SPEC))bootcycle-spec.gmk main
 
 zip-security:
 	+($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f ZipSecurity.gmk)