From 7c917bc863d8821b4f7ec967c2394bb0be63e2c3 Mon Sep 17 00:00:00 2001 From: Danja Papajani Date: Mon, 19 Aug 2024 14:15:04 -0700 Subject: [PATCH] Update target OS conditional for z/OS Signed-off-by: Danja Papajani --- closed/OpenJ9.gmk | 2 +- closed/custom/modules/java.base/Copy.gmk | 7 +++---- closed/make/modules/ibm.healthcenter/Copy.gmk | 6 +++--- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/closed/OpenJ9.gmk b/closed/OpenJ9.gmk index 3de0e37a9e5..75b6db727e5 100644 --- a/closed/OpenJ9.gmk +++ b/closed/OpenJ9.gmk @@ -110,7 +110,7 @@ ifeq (windows,$(OPENJDK_TARGET_OS)) # set Visual Studio environment # wrap PATH in quotes as it contains spaces (unix path) EXPORT_COMPILER_ENV_VARS := PATH="$(PATH)" -else ifeq (zos,$(OPENJDK_TARGET_OS)) +else ifeq ($(call isTargetOs, zos), true) UnixPath = $1 # Allow options to follow the input file name EXPORT_COMPILER_ENV_VARS := _CC_CCMODE=1 _C89_CCMODE=1 _CXX_CCMODE=1 diff --git a/closed/custom/modules/java.base/Copy.gmk b/closed/custom/modules/java.base/Copy.gmk index 872f8856ee0..73e2bbfd6cb 100644 --- a/closed/custom/modules/java.base/Copy.gmk +++ b/closed/custom/modules/java.base/Copy.gmk @@ -1,5 +1,5 @@ # =========================================================================== -# (c) Copyright IBM Corp. 2017, 2023 All Rights Reserved +# (c) Copyright IBM Corp. 2017, 2024 All Rights Reserved # =========================================================================== # This code is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 only, as @@ -30,7 +30,7 @@ $(call openj9_copy_files,, \ $(OPENJ9_VM_BUILD_DIR)/include/jvmti.h \ $(INCLUDE_TARGET_DIR)/jvmti.h) -ifeq (zos,$(OPENJDK_TARGET_OS)) +ifeq ($(call isTargetOs, zos), true) $(call openj9_copy_files,, \ $(OPENJ9_TOPDIR)/runtime/include/jni_convert.h \ $(INCLUDE_TARGET_DIR)/jni_convert.h) @@ -99,8 +99,7 @@ $(call openj9_copy_shlibs, \ omrsig \ ) -ifeq (zos,$(OPENJDK_TARGET_OS)) - +ifeq ($(call isTargetOs, zos), true) $(call openj9_copy_files_and_debuginfos, \ $(addsuffix /$(call SHARED_LIBRARY,j9a2e), \ $(OPENJ9_VM_BUILD_DIR) \ diff --git a/closed/make/modules/ibm.healthcenter/Copy.gmk b/closed/make/modules/ibm.healthcenter/Copy.gmk index db40c3d759b..a5288df7d48 100644 --- a/closed/make/modules/ibm.healthcenter/Copy.gmk +++ b/closed/make/modules/ibm.healthcenter/Copy.gmk @@ -1,5 +1,5 @@ # =========================================================================== -# (c) Copyright IBM Corp. 2021, 2021 All Rights Reserved +# (c) Copyright IBM Corp. 2021, 2024 All Rights Reserved # =========================================================================== # This code is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 only, as @@ -32,7 +32,7 @@ $(HEALTHCENTER_EXTRACT) : $(HEALTHCENTER_JAR) @$(RM) -rf $(@D) $(call MakeDir, $(@D)) $(UNZIP) -q $< -d $(@D) - ifeq (zos,$(OPENJDK_TARGET_OS)) + ifeq ($(call isTargetOs, zos), true) $(CHTAG) -c ISO8859-1 -t $(HEALTHCENTER_HOME)/healthcenter.properties endif @$(TOUCH) $@ @@ -70,7 +70,7 @@ HEALTHCENTER_LIBRARIES = \ $(wildcard $(HEALTHCENTER_HOME)/plugins/$(call SHARED_LIBRARY,hcmqtt)) # User-configurable .properties files should be encoded in EBCDIC on z/OS. -ifeq (zos,$(OPENJDK_TARGET_OS)) +ifeq ($(call isTargetOs, zos), true) FIX_ENCODING := | $(ICONV) -f ISO8859-1 -t IBM-1047 else FIX_ENCODING :=