8357991: make bootcycle-images is broken after JDK-8349665

Reviewed-by: erikj
This commit is contained in:
Magnus Ihse Bursie 2025-06-02 16:50:10 +00:00
parent 99a4b22ae7
commit ab5de45636

View File

@ -417,12 +417,22 @@ $(eval $(call SetupTarget, create-source-revision-tracker, \
))
BOOTCYCLE_TARGET := product-images
BOOTCYCLE_SPEC := $(dir $(SPEC))bootcycle-spec.gmk
bootcycle-images:
ifneq ($(COMPILE_TYPE), cross)
$(call LogWarn, Boot cycle build step 2: Building a new JDK image using previously built image)
$(call MakeDir, $(OUTPUTDIR)/bootcycle-build)
# We need to create essential files for the bootcycle spec dir
( cd $(TOPDIR) && \
$(MAKE) $(MAKE_ARGS) -f make/GenerateFindTests.gmk \
SPEC=$(BOOTCYCLE_SPEC))
( cd $(TOPDIR) && \
$(MAKE) $(MAKE_ARGS) -f $(TOPDIR)/make/Main.gmk \
SPEC=$(BOOTCYCLE_SPEC) UPDATE_MODULE_DEPS=true NO_RECIPES=true \
create-main-targets-include )
+$(MAKE) $(MAKE_ARGS) -f $(TOPDIR)/make/Init.gmk PARALLEL_TARGETS=$(BOOTCYCLE_TARGET) \
LOG_PREFIX="[bootcycle] " JOBS= SPEC=$(dir $(SPEC))bootcycle-spec.gmk main
LOG_PREFIX="[bootcycle] " JOBS= SPEC=$(BOOTCYCLE_SPEC) main
else
$(call LogWarn, Boot cycle build disabled when cross compiling)
endif