< prev index next >

make/autoconf/platform.m4

Print this page
rev 49480 : 8199138: Add RISC-V support to Zero
Reviewed-by: aph, erikj, ehelin, ihse


  97       VAR_CPU_ENDIAN=little
  98       ;;
  99     powerpc)
 100       VAR_CPU=ppc
 101       VAR_CPU_ARCH=ppc
 102       VAR_CPU_BITS=32
 103       VAR_CPU_ENDIAN=big
 104       ;;
 105     powerpc64)
 106       VAR_CPU=ppc64
 107       VAR_CPU_ARCH=ppc
 108       VAR_CPU_BITS=64
 109       VAR_CPU_ENDIAN=big
 110       ;;
 111     powerpc64le)
 112       VAR_CPU=ppc64le
 113       VAR_CPU_ARCH=ppc
 114       VAR_CPU_BITS=64
 115       VAR_CPU_ENDIAN=little
 116       ;;






 117     s390)
 118       VAR_CPU=s390
 119       VAR_CPU_ARCH=s390
 120       VAR_CPU_BITS=32
 121       VAR_CPU_ENDIAN=big
 122       ;;
 123     s390x)
 124       VAR_CPU=s390x
 125       VAR_CPU_ARCH=s390
 126       VAR_CPU_BITS=64
 127       VAR_CPU_ENDIAN=big
 128       ;;
 129     sh*eb)
 130       VAR_CPU=sh
 131       VAR_CPU_ARCH=sh
 132       VAR_CPU_BITS=32
 133       VAR_CPU_ENDIAN=big
 134       ;;
 135     sh*)
 136       VAR_CPU=sh


 449 
 450   # Setup HOTSPOT_$1_CPU_DEFINE
 451   if test "x$OPENJDK_$1_CPU" = xx86; then
 452     HOTSPOT_$1_CPU_DEFINE=IA32
 453   elif test "x$OPENJDK_$1_CPU" = xx86_64; then
 454     HOTSPOT_$1_CPU_DEFINE=AMD64
 455   elif test "x$OPENJDK_$1_CPU" = xsparcv9; then
 456     HOTSPOT_$1_CPU_DEFINE=SPARC
 457   elif test "x$OPENJDK_$1_CPU" = xaarch64; then
 458     HOTSPOT_$1_CPU_DEFINE=AARCH64
 459   elif test "x$OPENJDK_$1_CPU" = xppc64; then
 460     HOTSPOT_$1_CPU_DEFINE=PPC64
 461   elif test "x$OPENJDK_$1_CPU" = xppc64le; then
 462     HOTSPOT_$1_CPU_DEFINE=PPC64
 463 
 464   # The cpu defines below are for zero, we don't support them directly.
 465   elif test "x$OPENJDK_$1_CPU" = xsparc; then
 466     HOTSPOT_$1_CPU_DEFINE=SPARC
 467   elif test "x$OPENJDK_$1_CPU" = xppc; then
 468     HOTSPOT_$1_CPU_DEFINE=PPC32


 469   elif test "x$OPENJDK_$1_CPU" = xs390; then
 470     HOTSPOT_$1_CPU_DEFINE=S390
 471   elif test "x$OPENJDK_$1_CPU" = xs390x; then
 472     HOTSPOT_$1_CPU_DEFINE=S390
 473   elif test "x$OPENJDK_$1_CPU" != x; then
 474     HOTSPOT_$1_CPU_DEFINE=$(echo $OPENJDK_$1_CPU | tr a-z A-Z)
 475   fi
 476   AC_SUBST(HOTSPOT_$1_CPU_DEFINE)
 477 
 478   # For historical reasons, the OS include directories have odd names.
 479   OPENJDK_$1_OS_INCLUDE_SUBDIR="$OPENJDK_TARGET_OS"
 480   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
 481     OPENJDK_$1_OS_INCLUDE_SUBDIR="win32"
 482   elif test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
 483     OPENJDK_$1_OS_INCLUDE_SUBDIR="darwin"
 484   fi
 485   AC_SUBST(OPENJDK_$1_OS_INCLUDE_SUBDIR)
 486 ])
 487 
 488 AC_DEFUN([PLATFORM_SET_RELEASE_FILE_OS_VALUES],




  97       VAR_CPU_ENDIAN=little
  98       ;;
  99     powerpc)
 100       VAR_CPU=ppc
 101       VAR_CPU_ARCH=ppc
 102       VAR_CPU_BITS=32
 103       VAR_CPU_ENDIAN=big
 104       ;;
 105     powerpc64)
 106       VAR_CPU=ppc64
 107       VAR_CPU_ARCH=ppc
 108       VAR_CPU_BITS=64
 109       VAR_CPU_ENDIAN=big
 110       ;;
 111     powerpc64le)
 112       VAR_CPU=ppc64le
 113       VAR_CPU_ARCH=ppc
 114       VAR_CPU_BITS=64
 115       VAR_CPU_ENDIAN=little
 116       ;;
 117     riscv64)
 118       VAR_CPU=riscv64
 119       VAR_CPU_ARCH=riscv
 120       VAR_CPU_BITS=64
 121       VAR_CPU_ENDIAN=little
 122       ;;
 123     s390)
 124       VAR_CPU=s390
 125       VAR_CPU_ARCH=s390
 126       VAR_CPU_BITS=32
 127       VAR_CPU_ENDIAN=big
 128       ;;
 129     s390x)
 130       VAR_CPU=s390x
 131       VAR_CPU_ARCH=s390
 132       VAR_CPU_BITS=64
 133       VAR_CPU_ENDIAN=big
 134       ;;
 135     sh*eb)
 136       VAR_CPU=sh
 137       VAR_CPU_ARCH=sh
 138       VAR_CPU_BITS=32
 139       VAR_CPU_ENDIAN=big
 140       ;;
 141     sh*)
 142       VAR_CPU=sh


 455 
 456   # Setup HOTSPOT_$1_CPU_DEFINE
 457   if test "x$OPENJDK_$1_CPU" = xx86; then
 458     HOTSPOT_$1_CPU_DEFINE=IA32
 459   elif test "x$OPENJDK_$1_CPU" = xx86_64; then
 460     HOTSPOT_$1_CPU_DEFINE=AMD64
 461   elif test "x$OPENJDK_$1_CPU" = xsparcv9; then
 462     HOTSPOT_$1_CPU_DEFINE=SPARC
 463   elif test "x$OPENJDK_$1_CPU" = xaarch64; then
 464     HOTSPOT_$1_CPU_DEFINE=AARCH64
 465   elif test "x$OPENJDK_$1_CPU" = xppc64; then
 466     HOTSPOT_$1_CPU_DEFINE=PPC64
 467   elif test "x$OPENJDK_$1_CPU" = xppc64le; then
 468     HOTSPOT_$1_CPU_DEFINE=PPC64
 469 
 470   # The cpu defines below are for zero, we don't support them directly.
 471   elif test "x$OPENJDK_$1_CPU" = xsparc; then
 472     HOTSPOT_$1_CPU_DEFINE=SPARC
 473   elif test "x$OPENJDK_$1_CPU" = xppc; then
 474     HOTSPOT_$1_CPU_DEFINE=PPC32
 475   elif test "x$OPENJDK_$1_CPU" = xriscv64; then
 476     HOTSPOT_$1_CPU_DEFINE=RISCV64
 477   elif test "x$OPENJDK_$1_CPU" = xs390; then
 478     HOTSPOT_$1_CPU_DEFINE=S390
 479   elif test "x$OPENJDK_$1_CPU" = xs390x; then
 480     HOTSPOT_$1_CPU_DEFINE=S390
 481   elif test "x$OPENJDK_$1_CPU" != x; then
 482     HOTSPOT_$1_CPU_DEFINE=$(echo $OPENJDK_$1_CPU | tr a-z A-Z)
 483   fi
 484   AC_SUBST(HOTSPOT_$1_CPU_DEFINE)
 485 
 486   # For historical reasons, the OS include directories have odd names.
 487   OPENJDK_$1_OS_INCLUDE_SUBDIR="$OPENJDK_TARGET_OS"
 488   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
 489     OPENJDK_$1_OS_INCLUDE_SUBDIR="win32"
 490   elif test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
 491     OPENJDK_$1_OS_INCLUDE_SUBDIR="darwin"
 492   fi
 493   AC_SUBST(OPENJDK_$1_OS_INCLUDE_SUBDIR)
 494 ])
 495 
 496 AC_DEFUN([PLATFORM_SET_RELEASE_FILE_OS_VALUES],


< prev index next >