Skip to content

Commit

Permalink
Update target OS conditional for z/OS
Browse files Browse the repository at this point in the history
Signed-off-by: Danja Papajani <danja.papajani@ibm.com>
  • Loading branch information
danjapapajani committed Sep 5, 2024
1 parent 10cf9e9 commit 7c917bc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion closed/OpenJ9.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions closed/custom/modules/java.base/Copy.gmk
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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) \
Expand Down
6 changes: 3 additions & 3 deletions closed/make/modules/ibm.healthcenter/Copy.gmk
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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) $@
Expand Down Expand Up @@ -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 :=
Expand Down

0 comments on commit 7c917bc

Please sign in to comment.