Skip to content

Add RISC-V 64-bit (riscv64) platform support #9

@gounthar

Description

@gounthar

The next-gen download broker does not recognize LINUX_RISCV64 as a platform, preventing riscv64 users from downloading SDK candidates.

Changes needed

  1. Platform.kt: add LinuxRISCV64 data object with code "linuxriscv64", persistentId "LINUX_RISCV64", auditId "LINUX_RISCV64", and add it to platformMap
  2. TargetTriple.kt: add LINUX_RISCV64("riscv64gc-unknown-linux-gnu") enum value and map Platform.LinuxRISCV64 to it

Evidence

Temurin (JDK 21-25) and Liberica (JDK 17-25) already ship riscv64 Linux JDK builds. The Disco API already serves them:

https://api.foojay.io/disco/v3.0/packages?distribution=temurin&latest=available&release_status=ga&architecture=riscv64&operating_system=linux&package_type=jdk&archive_type=tar.gz

Related

This is part of a cross-ecosystem effort to enable RISC-V 64-bit users to use SDKMAN natively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions