25 26 # Support for building boot cycle builds 27 28 # First include the real base spec.gmk file 29 include @SPEC@ 30 31 # Check that the user did not try to specify a different java to use for compiling. 32 # On windows we need to account for fixpath being first word. 33 ifeq ($(firstword $(JAVA)),$(FIXPATH)) 34 JAVA_EXEC_POS=2 35 else 36 JAVA_EXEC_POS=1 37 endif 38 ifneq ($(word $(JAVA_EXEC_POS),$(SJAVAC_SERVER_JAVA)),$(word $(JAVA_EXEC_POS),$(JAVA))) 39 $(error Bootcycle builds are not possible if --with-sjavac-server-java is specified) 40 endif 41 42 43 # Override specific values to do a boot cycle build 44 45 # The bootcycle build has a different output directory 46 BUILD_OUTPUT:=@BUILD_OUTPUT@/bootcycle-build 47 48 # Use a different Boot JDK 49 OLD_BOOT_JDK:=$(BOOT_JDK) 50 BOOT_JDK:=@BUILD_OUTPUT@/images/j2sdk-image 51 BOOT_RTJAR:=$(BOOT_JDK)/jre/lib/rt.jar 52 53 JAVA_CMD:=$(BOOT_JDK)/bin/java 54 JAVAC_CMD:=$(BOOT_JDK)/bin/javac 55 JAVAH_CMD:=$(BOOT_JDK)/bin/javah 56 JAR_CMD:=$(BOOT_JDK)/bin/jar 57 NATIVE2ASCII_CMD:=$(BOOT_JDK)/bin/native2ascii 58 JARSIGNER_CMD:=$(BOOT_JDK)/bin/jarsigner 59 SJAVAC_SERVER_JAVA_CMD:=$(JAVA_CMD) 60 | 25 26 # Support for building boot cycle builds 27 28 # First include the real base spec.gmk file 29 include @SPEC@ 30 31 # Check that the user did not try to specify a different java to use for compiling. 32 # On windows we need to account for fixpath being first word. 33 ifeq ($(firstword $(JAVA)),$(FIXPATH)) 34 JAVA_EXEC_POS=2 35 else 36 JAVA_EXEC_POS=1 37 endif 38 ifneq ($(word $(JAVA_EXEC_POS),$(SJAVAC_SERVER_JAVA)),$(word $(JAVA_EXEC_POS),$(JAVA))) 39 $(error Bootcycle builds are not possible if --with-sjavac-server-java is specified) 40 endif 41 42 43 # Override specific values to do a boot cycle build 44 45 # Use a different Boot JDK 46 OLD_BOOT_JDK := $(BOOT_JDK) 47 BOOT_JDK := $(JDK_IMAGE_DIR) 48 BOOT_RTJAR := $(JDK_IMAGE_DIR)/lib/modules/bootmodules.jimage 49 BOOT_TOOLSJAR := $(JDK_IMAGE_DIR)/lib/modules/appmodules.jimage 50 51 # The bootcycle build has a different output directory 52 BUILD_OUTPUT:=@BUILD_OUTPUT@/bootcycle-build 53 SJAVAC_SERVER_DIR:=$(subst @BUILD_OUTPUT@,$(BUILD_OUTPUT),$(SJAVAC_SERVER_DIR)) 54 55 JAVA_CMD:=$(BOOT_JDK)/bin/java 56 JAVAC_CMD:=$(BOOT_JDK)/bin/javac 57 JAVAH_CMD:=$(BOOT_JDK)/bin/javah 58 JAR_CMD:=$(BOOT_JDK)/bin/jar 59 NATIVE2ASCII_CMD:=$(BOOT_JDK)/bin/native2ascii 60 JARSIGNER_CMD:=$(BOOT_JDK)/bin/jarsigner 61 SJAVAC_SERVER_JAVA_CMD:=$(JAVA_CMD) 62 |