Skip to content

Commit 62d165d

Browse files
committed
8355669: Add static-jdk-bundles make target
Reviewed-by: ihse
1 parent af4388a commit 62d165d

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

make/Bundles.gmk

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,11 @@ else
174174
JRE_IMAGE_HOMEDIR := $(JRE_IMAGE_DIR)
175175
JDK_BUNDLE_SUBDIR := jdk-$(VERSION_NUMBER)
176176
JRE_BUNDLE_SUBDIR := jre-$(VERSION_NUMBER)
177+
STATIC_JDK_BUNDLE_SUBDIR := static-jdk-$(VERSION_NUMBER)
177178
ifneq ($(DEBUG_LEVEL), release)
178179
JDK_BUNDLE_SUBDIR := $(JDK_BUNDLE_SUBDIR)/$(DEBUG_LEVEL)
179180
JRE_BUNDLE_SUBDIR := $(JRE_BUNDLE_SUBDIR)/$(DEBUG_LEVEL)
181+
STATIC_JDK_BUNDLE_SUBDIR := $(STATIC_JDK_BUNDLE_SUBDIR)/$(DEBUG_LEVEL)
180182
endif
181183
# In certain situations, the JDK_IMAGE_DIR points to an image without the
182184
# the symbols and demos. If so, the symobls and demos can be found in a
@@ -500,6 +502,21 @@ ifneq ($(filter static-libs-graal-bundles, $(MAKECMDGOALS)), )
500502
STATIC_LIBS_GRAAL_TARGETS += $(BUILD_STATIC_LIBS_GRAAL_BUNDLE)
501503
endif
502504

505+
#################################################################################
506+
507+
ifneq ($(filter static-jdk-bundles, $(MAKECMDGOALS)), )
508+
STATIC_JDK_BUNDLE_FILES := $(call FindFiles, $(STATIC_JDK_IMAGE_DIR))
509+
510+
$(eval $(call SetupBundleFile, BUILD_STATIC_JDK_BUNDLE, \
511+
BUNDLE_NAME := $(STATIC_JDK_BUNDLE_NAME), \
512+
FILES := $(STATIC_JDK_BUNDLE_FILES), \
513+
BASE_DIRS := $(STATIC_JDK_IMAGE_DIR), \
514+
SUBDIR := $(STATIC_JDK_BUNDLE_SUBDIR), \
515+
))
516+
517+
STATIC_JDK_TARGETS += $(BUILD_STATIC_JDK_BUNDLE)
518+
endif
519+
503520
################################################################################
504521

505522
product-bundles: $(PRODUCT_TARGETS)
@@ -510,11 +527,12 @@ docs-javase-bundles: $(DOCS_JAVASE_TARGETS)
510527
docs-reference-bundles: $(DOCS_REFERENCE_TARGETS)
511528
static-libs-bundles: $(STATIC_LIBS_TARGETS)
512529
static-libs-graal-bundles: $(STATIC_LIBS_GRAAL_TARGETS)
530+
static-jdk-bundles: $(STATIC_JDK_TARGETS)
513531
jcov-bundles: $(JCOV_TARGETS)
514532

515533
.PHONY: product-bundles test-bundles \
516534
docs-jdk-bundles docs-javase-bundles docs-reference-bundles \
517-
static-libs-bundles static-libs-graal-bundles jcov-bundles
535+
static-libs-bundles static-libs-graal-bundles static-jdk-bundles jcov-bundles
518536

519537
################################################################################
520538

make/Main.gmk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,12 @@ $(eval $(call SetupTarget, static-libs-graal-bundles, \
875875
DEPS := static-libs-graal-image, \
876876
))
877877

878+
$(eval $(call SetupTarget, static-jdk-bundles, \
879+
MAKEFILE := Bundles, \
880+
TARGET := static-jdk-bundles, \
881+
DEPS := static-jdk-image, \
882+
))
883+
878884
ifeq ($(JCOV_ENABLED), true)
879885
$(eval $(call SetupTarget, jcov-bundles, \
880886
MAKEFILE := Bundles, \

make/autoconf/spec.gmk.template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,10 +846,12 @@ SVE_CFLAGS := @SVE_CFLAGS@
846846
JDK_IMAGE_SUBDIR := jdk
847847
JRE_IMAGE_SUBDIR := jre
848848
JCOV_IMAGE_SUBDIR := jdk-jcov
849+
STATIC_JDK_IMAGE_SUBDIR := static-jdk
849850

850851
# Colon left out to be able to override output dir for bootcycle-images
851852
JDK_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
852853
JRE_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
854+
STATIC_JDK_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(STATIC_JDK_IMAGE_SUBDIR)
853855
JCOV_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(JCOV_IMAGE_SUBDIR)
854856

855857
# Test image, as above
@@ -929,6 +931,7 @@ DOCS_JAVASE_BUNDLE_NAME := javase-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
929931
DOCS_REFERENCE_BUNDLE_NAME := jdk-reference-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
930932
STATIC_LIBS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-static-libs$(DEBUG_PART).tar.gz
931933
STATIC_LIBS_GRAAL_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-static-libs-graal$(DEBUG_PART).tar.gz
934+
STATIC_JDK_BUNDLE_NAME := static-jdk-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
932935
JCOV_BUNDLE_NAME := jdk-jcov-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
933936

934937
JDK_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JDK_BUNDLE_NAME)
@@ -939,6 +942,7 @@ TEST_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(TEST_BUNDLE_NAME)
939942
DOCS_JDK_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(DOCS_JDK_BUNDLE_NAME)
940943
DOCS_JAVASE_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(DOCS_JAVASE_BUNDLE_NAME)
941944
DOCS_REFERENCE_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(DOCS_REFERENCE_BUNDLE_NAME)
945+
STATIC_JDK_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(STATIC_JDK_BUNDLE_NAME)
942946
JCOV_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JCOV_BUNDLE_NAME)
943947

944948
# This macro is called to allow inclusion of closed source counterparts.

0 commit comments

Comments
 (0)