8006828: "SKIP_BOOT_CYCLE=false" must work in new building infrastructure
Reviewed-by: tbell, alanb
This commit is contained in:
parent
9e90d15aa7
commit
a88f9ec2d6
@ -29,9 +29,16 @@
|
|||||||
include @SPEC@
|
include @SPEC@
|
||||||
|
|
||||||
# Check that the user did not try to specify a different java to use for compiling.
|
# Check that the user did not try to specify a different java to use for compiling.
|
||||||
ifneq ($(firstword $(SJAVAC_SERVER_JAVA)),$(firstword $(JAVA)))
|
# On windows we need to account for fixpath being first word.
|
||||||
$(error Bootcycle builds are not possible if --with-sjavac-server-java is specified)
|
ifeq ($(firstword $(JAVA)),$(FIXPATH))
|
||||||
|
JAVA_EXEC_POS=2
|
||||||
|
else
|
||||||
|
JAVA_EXEC_POS=1
|
||||||
endif
|
endif
|
||||||
|
ifneq ($(word $(JAVA_EXEC_POS),$(SJAVAC_SERVER_JAVA)),$(word $(JAVA_EXEC_POS),$(JAVA)))
|
||||||
|
$(error Bootcycle builds are not possible if --with-sjavac-server-java is specified)
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
# Override specific values to do a boot cycle build
|
# Override specific values to do a boot cycle build
|
||||||
|
|
||||||
@ -39,5 +46,8 @@ endif
|
|||||||
BUILD_OUTPUT:=@BUILD_OUTPUT@/bootcycle-build
|
BUILD_OUTPUT:=@BUILD_OUTPUT@/bootcycle-build
|
||||||
|
|
||||||
# Use a different Boot JDK
|
# Use a different Boot JDK
|
||||||
|
OLD_BOOT_JDK:=$(BOOT_JDK)
|
||||||
BOOT_JDK:=@BUILD_OUTPUT@/images/j2sdk-image
|
BOOT_JDK:=@BUILD_OUTPUT@/images/j2sdk-image
|
||||||
BOOT_RTJAR:=@BUILD_OUTPUT@/images/j2sdk-image/jre/lib/rt.jar
|
BOOT_RTJAR:=@BUILD_OUTPUT@/images/j2sdk-image/jre/lib/rt.jar
|
||||||
|
|
||||||
|
SJAVAC_SERVER_JAVA:=$(subst $(OLD_BOOT_JDK),$(BOOT_JDK),$(SJAVAC_SERVER_JAVA))
|
||||||
|
@ -225,6 +225,7 @@ BUILD_VARIANT_RELEASE:=@BUILD_VARIANT_RELEASE@
|
|||||||
# directory.
|
# directory.
|
||||||
|
|
||||||
BUILD_OUTPUT:=@BUILD_OUTPUT@
|
BUILD_OUTPUT:=@BUILD_OUTPUT@
|
||||||
|
# Colon left out to be able to override IMAGES_OUTPUTDIR for bootcycle-images
|
||||||
LANGTOOLS_OUTPUTDIR=$(BUILD_OUTPUT)/langtools
|
LANGTOOLS_OUTPUTDIR=$(BUILD_OUTPUT)/langtools
|
||||||
CORBA_OUTPUTDIR=$(BUILD_OUTPUT)/corba
|
CORBA_OUTPUTDIR=$(BUILD_OUTPUT)/corba
|
||||||
JAXP_OUTPUTDIR=$(BUILD_OUTPUT)/jaxp
|
JAXP_OUTPUTDIR=$(BUILD_OUTPUT)/jaxp
|
||||||
@ -643,16 +644,17 @@ JDK_IMAGE_SUBDIR:=j2sdk-image
|
|||||||
JRE_IMAGE_SUBDIR:=j2re-image
|
JRE_IMAGE_SUBDIR:=j2re-image
|
||||||
JDK_OVERLAY_IMAGE_SUBDIR:=j2sdk-overlay-image
|
JDK_OVERLAY_IMAGE_SUBDIR:=j2sdk-overlay-image
|
||||||
JRE_OVERLAY_IMAGE_SUBDIR:=j2re-overlay-image
|
JRE_OVERLAY_IMAGE_SUBDIR:=j2re-overlay-image
|
||||||
JDK_IMAGE_DIR:=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
|
# Colon left out to be able to override output dir for bootcycle-images
|
||||||
JRE_IMAGE_DIR:=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
|
JDK_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
|
||||||
JDK_OVERLAY_IMAGE_DIR:=$(IMAGES_OUTPUTDIR)/$(JDK_OVERLAY_IMAGE_SUBDIR)
|
JRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
|
||||||
JRE_OVERLAY_IMAGE_DIR:=$(IMAGES_OUTPUTDIR)/$(JRE_OVERLAY_IMAGE_SUBDIR)
|
JDK_OVERLAY_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_OVERLAY_IMAGE_SUBDIR)
|
||||||
|
JRE_OVERLAY_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_OVERLAY_IMAGE_SUBDIR)
|
||||||
|
|
||||||
# Macosx bundles directory definitions
|
# Macosx bundles directory definitions
|
||||||
JDK_BUNDLE_SUBDIR:=j2sdk-bundle/jdk$(JDK_VERSION).jdk/Contents
|
JDK_BUNDLE_SUBDIR=j2sdk-bundle/jdk$(JDK_VERSION).jdk/Contents
|
||||||
JRE_BUNDLE_SUBDIR:=j2re-bundle/jre$(JDK_VERSION).jre/Contents
|
JRE_BUNDLE_SUBDIR=j2re-bundle/jre$(JDK_VERSION).jre/Contents
|
||||||
JDK_BUNDLE_DIR:=$(IMAGES_OUTPUTDIR)/$(JDK_BUNDLE_SUBDIR)
|
JDK_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_BUNDLE_SUBDIR)
|
||||||
JRE_BUNDLE_DIR:=$(IMAGES_OUTPUTDIR)/$(JRE_BUNDLE_SUBDIR)
|
JRE_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_BUNDLE_SUBDIR)
|
||||||
|
|
||||||
# Include the custom-spec.gmk file if it exists
|
# Include the custom-spec.gmk file if it exists
|
||||||
-include $(dir @SPEC@)/custom-spec.gmk
|
-include $(dir @SPEC@)/custom-spec.gmk
|
||||||
|
@ -64,6 +64,10 @@ HOTSPOT_AVAILABLE := $(if $(wildcard $(root_dir)/hotspot),true,false)
|
|||||||
# Build with the configure bridge. After running configure, restart make
|
# Build with the configure bridge. After running configure, restart make
|
||||||
# to parse the new spec file.
|
# to parse the new spec file.
|
||||||
BRIDGE_TARGETS := all
|
BRIDGE_TARGETS := all
|
||||||
|
# Add bootcycle-images target if legacy variable is set.
|
||||||
|
ifeq ($(SKIP_BOOT_CYCLE),false)
|
||||||
|
BRIDGE_TARGETS += bootcycle-images
|
||||||
|
endif
|
||||||
bridgeBuild: bridge2configure
|
bridgeBuild: bridge2configure
|
||||||
@cd $(root_dir) && $(MAKE) -f NewMakefile.gmk $(BRIDGE_TARGETS)
|
@cd $(root_dir) && $(MAKE) -f NewMakefile.gmk $(BRIDGE_TARGETS)
|
||||||
|
|
||||||
|
@ -175,9 +175,8 @@ sign-jars-only: start-make
|
|||||||
@($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk sign-jars)
|
@($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk sign-jars)
|
||||||
@$(call TargetExit)
|
@$(call TargetExit)
|
||||||
|
|
||||||
bootcycle-images:
|
bootcycle-images: images bootcycle-images-only
|
||||||
@$(ECHO) Boot cycle build step 1: Building the JDK image normally
|
bootcycle-images-only: start-make
|
||||||
@($(CD) $(SRC_ROOT)/common/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) SPEC=$(SPEC) images)
|
|
||||||
@$(ECHO) Boot cycle build step 2: Building a new JDK image using previously built image
|
@$(ECHO) Boot cycle build step 2: Building a new JDK image using previously built image
|
||||||
@($(CD) $(SRC_ROOT)/common/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) SPEC=$(dir $(SPEC))bootcycle-spec.gmk images)
|
@($(CD) $(SRC_ROOT)/common/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) SPEC=$(dir $(SPEC))bootcycle-spec.gmk images)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user