Skip to content

Commit

Permalink
Update multi platform support
Browse files Browse the repository at this point in the history
  • Loading branch information
taoliult committed Oct 18, 2023
1 parent 7c24fe7 commit 8c32ce1
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion closed/custom/Main.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,22 @@ endif # HEALTHCENTER_JAR

ifeq (true,$(BUILD_JGSKIT))

# Identify the desired JGSKIT target platform.
JGSKIT_TARGET :=
ifeq ($(OPENJDK_TARGET_OS), aix)
JGSKIT_TARGET := ppc-aix64
else ifeq ($(OPENJDK_TARGET_OS), linux)
ifeq ($(OPENJDK_TARGET_CPU), x86_64)
JGSKIT_TARGET := x86-linux64
else ifeq ($(OPENJDK_TARGET_CPU), ppc64le)
JGSKIT_TARGET := ppcle-linux64
endif
endif # OPENJDK_TARGET_OS

ifeq (,$(JGSKIT_TARGET))
$(error Unsupported platform $(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU))
endif # JGSKIT_TARGET

.PHONY : clean-openjceplus openjceplus-libs

clean : clean-openjceplus
Expand All @@ -135,7 +151,7 @@ openjceplus-copy : openjceplus-libs

openjceplus-libs :
@$(ECHO) Compiling OpenJCEPlus native
export PLATFORM=x86-linux64 JAVA_HOME=$(BOOT_JDK) GSKIT_HOME=$(GSKIT_HOME) JCE_CLASSPATH=$(OPENJCEPLUS_TOPDIR)/src/main/java/:$(TOPDIR)/src/java.base/share/classes/ \
export PLATFORM=$(JGSKIT_TARGET) JAVA_HOME=$(BOOT_JDK) GSKIT_HOME=$(GSKIT_HOME) JCE_CLASSPATH=$(OPENJCEPLUS_TOPDIR)/src/main/java/:$(TOPDIR)/src/java.base/share/classes/ \
&& $(MAKE) -j1 -C $(OPENJCEPLUS_TOPDIR)/src/main/native/ -f jgskit.mak all
@$(ECHO) OpenJCEplus compile complete

Expand Down

0 comments on commit 8c32ce1

Please sign in to comment.