@@ -65,6 +65,7 @@ $(call GetVersion, openjdk, OPENJDK_SHA, $(TOPDIR), required)
6565$(call GetVersion, openj9, OPENJ9_SHA, $(OPENJ9_TOPDIR), required)
6666$(call GetVersion, omr, OPENJ9OMR_SHA, $(OPENJ9OMR_TOPDIR), required)
6767$(call GetVersion, openssl, OPENSSL_SHA, $(OPENSSL_DIR))
68+ $(call GetVersion, closedj9, CLOSEDJ9_SHA, $(CLOSEDJ9_TOPDIR))
6869
6970# Find OpenJ9 tag associated with current commit (suppressing stderr in case there is no such tag).
7071OPENJ9_TAG := $(shell $(GIT) -C $(OPENJ9_TOPDIR) describe --exact-match HEAD 2>/dev/null)
@@ -197,6 +198,7 @@ $(foreach file, \
197198 $(eval $(call openj9_test_image_rules, $(file)))))
198199
199200OPENJ9_VERSION_VARS := \
201+ CLOSEDJ9_SHA \
200202 COMPANY_NAME \
201203 CXX_VERSION_STRING \
202204 DEBUG_LEVEL \
@@ -216,6 +218,7 @@ OPENJ9_VERSION_VARS := \
216218 #
217219
218220OPENJ9_VERSION_SCRIPT := \
221+ $(if $(CLOSEDJ9_SHA),,-e '/ VENDOR_SHA /d') \
219222 $(foreach var,$(OPENJ9_VERSION_VARS),-e 's|@$(var)@|$(value $(var))|g')
220223
221224$(OPENJ9_VM_BUILD_DIR)/include/openj9_version_info.h : $(TOPDIR)/closed/openj9_version_info.h.in
@@ -258,6 +261,10 @@ CMAKE_ARGS := \
258261 -DOPENJ9_SHA=$(OPENJ9_SHA) \
259262 #
260263
264+ ifneq (,$(CLOSEDJ9_SHA))
265+ CMAKE_ARGS += -DJ9VM_VENDOR_DIR=$(CLOSEDJ9_TOPDIR)
266+ endif
267+
261268ifeq ($(call isTargetOs, windows), true)
262269 CMAKE_ARGS += -DOPENJDK_VERSION_NUMBER_FOUR_POSITIONS=$(VERSION_NUMBER_FOUR_POSITIONS)
263270else
0 commit comments