From 320162395dbbd84a0d504ae389959f36d4ccc6ea Mon Sep 17 00:00:00 2001 From: Erik Joelsson Date: Fri, 25 Aug 2023 20:35:40 +0000 Subject: [PATCH] 8310454: Introduce static-libs-graal bundle Reviewed-by: jiangli --- make/Bundles.gmk | 24 +++++++++++++++++++++++- make/Main.gmk | 6 ++++++ make/autoconf/spec.gmk.in | 1 + 3 files changed, 30 insertions(+), 1 deletion(-) diff --git a/make/Bundles.gmk b/make/Bundles.gmk index e6955bfab41..33d51d3f613 100644 --- a/make/Bundles.gmk +++ b/make/Bundles.gmk @@ -478,6 +478,27 @@ endif ################################################################################ +ifneq ($(filter static-libs-graal-bundles, $(MAKECMDGOALS)), ) + STATIC_LIBS_GRAAL_BUNDLE_FILES := $(call FindFiles, $(STATIC_LIBS_GRAAL_IMAGE_DIR)) + + ifeq ($(OPENJDK_TARGET_OS)-$(DEBUG_LEVEL), macosx-release) + STATIC_LIBS_GRAAL_BUNDLE_SUBDIR := $(JDK_MACOSX_CONTENTS_SUBDIR)/Home + else + STATIC_LIBS_GRAAL_BUNDLE_SUBDIR := $(JDK_BUNDLE_SUBDIR) + endif + + $(eval $(call SetupBundleFile, BUILD_STATIC_LIBS_GRAAL_BUNDLE, \ + BUNDLE_NAME := $(STATIC_LIBS_GRAAL_BUNDLE_NAME), \ + FILES := $(STATIC_LIBS_GRAAL_BUNDLE_FILES), \ + BASE_DIRS := $(STATIC_LIBS_GRAAL_IMAGE_DIR), \ + SUBDIR := $(STATIC_LIBS_GRAAL_BUNDLE_SUBDIR), \ + )) + + STATIC_LIBS_GRAAL_TARGETS += $(BUILD_STATIC_LIBS_GRAAL_BUNDLE) +endif + +################################################################################ + # Hook to include the corresponding custom file, if present. $(eval $(call IncludeCustomExtension, Bundles.gmk)) @@ -490,8 +511,9 @@ docs-jdk-bundles: $(DOCS_JDK_TARGETS) docs-javase-bundles: $(DOCS_JAVASE_TARGETS) docs-reference-bundles: $(DOCS_REFERENCE_TARGETS) static-libs-bundles: $(STATIC_LIBS_TARGETS) +static-libs-graal-bundles: $(STATIC_LIBS_GRAAL_TARGETS) jcov-bundles: $(JCOV_TARGETS) .PHONY: all default product-bundles test-bundles \ docs-jdk-bundles docs-javase-bundles docs-reference-bundles \ - static-libs-bundles jcov-bundles + static-libs-bundles static-libs-graal-bundles jcov-bundles diff --git a/make/Main.gmk b/make/Main.gmk index 94d66106507..506634126fb 100644 --- a/make/Main.gmk +++ b/make/Main.gmk @@ -851,6 +851,12 @@ $(eval $(call SetupTarget, static-libs-bundles, \ DEPS := static-libs-image, \ )) +$(eval $(call SetupTarget, static-libs-graal-bundles, \ + MAKEFILE := Bundles, \ + TARGET := static-libs-graal-bundles, \ + DEPS := static-libs-graal-image, \ +)) + ifeq ($(JCOV_ENABLED), true) $(eval $(call SetupTarget, jcov-bundles, \ MAKEFILE := Bundles, \ diff --git a/make/autoconf/spec.gmk.in b/make/autoconf/spec.gmk.in index 1c472b5ed68..a3755f82a7c 100644 --- a/make/autoconf/spec.gmk.in +++ b/make/autoconf/spec.gmk.in @@ -984,6 +984,7 @@ DOCS_JDK_BUNDLE_NAME := jdk-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz DOCS_JAVASE_BUNDLE_NAME := javase-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz DOCS_REFERENCE_BUNDLE_NAME := jdk-reference-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz STATIC_LIBS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-static-libs$(DEBUG_PART).tar.gz +STATIC_LIBS_GRAAL_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-static-libs-graal$(DEBUG_PART).tar.gz JCOV_BUNDLE_NAME := jdk-jcov-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION) JDK_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JDK_BUNDLE_NAME)