@@ -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)
501503endif
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
505522product-bundles: $(PRODUCT_TARGETS)
@@ -510,11 +527,12 @@ docs-javase-bundles: $(DOCS_JAVASE_TARGETS)
510527docs-reference-bundles: $(DOCS_REFERENCE_TARGETS)
511528static-libs-bundles: $(STATIC_LIBS_TARGETS)
512529static-libs-graal-bundles: $(STATIC_LIBS_GRAAL_TARGETS)
530+ static-jdk-bundles: $(STATIC_JDK_TARGETS)
513531jcov-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
0 commit comments