diff --git a/doc/building.html b/doc/building.html
index f7af2648592..99eb3e0c473 100644
--- a/doc/building.html
+++ b/doc/building.html
@@ -1451,10 +1451,10 @@ of a cross-compiling toolchain and a sysroot environment which can
easily be used together with the --with-devkit configure
option to cross compile the JDK. On Linux/x86_64, the following
command:
-bash configure --with-devkit=<devkit-path> --openjdk-target=ppc64-linux-gnu && make
-will configure and build the JDK for Linux/ppc64 assuming that
-<devkit-path> points to a Linux/x86_64 to Linux/ppc64
-devkit.
+bash configure --with-devkit=<devkit-path> --openjdk-target=ppc64le-linux-gnu && make
+will configure and build the JDK for Linux/ppc64le assuming that
+<devkit-path> points to a Linux/x86_64 to
+Linux/ppc64le devkit.
Devkits can be created from the make/devkit directory by
executing:
make [ TARGETS="<TARGET_TRIPLET>+" ] [ BASE_OS=<OS> ] [ BASE_OS_VERSION=<VER> ]
@@ -1481,10 +1481,10 @@ following targets are known to work:
arm-linux-gnueabihf |
-| ppc64-linux-gnu |
+ppc64le-linux-gnu |
-| ppc64le-linux-gnu |
+riscv64-linux-gnu |
| s390x-linux-gnu |
diff --git a/doc/building.md b/doc/building.md
index 32c6ae46540..047255d1848 100644
--- a/doc/building.md
+++ b/doc/building.md
@@ -1258,11 +1258,11 @@ toolchain and a sysroot environment which can easily be used together with the
following command:
```
-bash configure --with-devkit= --openjdk-target=ppc64-linux-gnu && make
+bash configure --with-devkit= --openjdk-target=ppc64le-linux-gnu && make
```
-will configure and build the JDK for Linux/ppc64 assuming that ``
-points to a Linux/x86_64 to Linux/ppc64 devkit.
+will configure and build the JDK for Linux/ppc64le assuming that ``
+points to a Linux/x86_64 to Linux/ppc64le devkit.
Devkits can be created from the `make/devkit` directory by executing:
@@ -1281,8 +1281,8 @@ at least the following targets are known to work:
| x86_64-linux-gnu |
| aarch64-linux-gnu |
| arm-linux-gnueabihf |
-| ppc64-linux-gnu |
| ppc64le-linux-gnu |
+| riscv64-linux-gnu |
| s390x-linux-gnu |
`BASE_OS` must be one of `OL` for Oracle Enterprise Linux or `Fedora`. If the
diff --git a/make/devkit/Makefile b/make/devkit/Makefile
index 5ffa5265aa3..d2167bf33fa 100644
--- a/make/devkit/Makefile
+++ b/make/devkit/Makefile
@@ -39,7 +39,7 @@
#
# make TARGETS="aarch64-linux-gnu" BASE_OS=Fedora
# or
-# make TARGETS="arm-linux-gnueabihf ppc64-linux-gnu" BASE_OS=Fedora BASE_OS_VERSION=17
+# make TARGETS="arm-linux-gnueabihf ppc64le-linux-gnu" BASE_OS=Fedora BASE_OS_VERSION=17
#
# to build several devkits for a specific OS version at once.
# You can find the final results under ../../build/devkit/result/-to-
@@ -50,7 +50,7 @@
# makefile again for cross compilation. Ex:
#
# PATH=$PWD/../../build/devkit/result/x86_64-linux-gnu-to-x86_64-linux-gnu/bin:$PATH \
-# make TARGETS="arm-linux-gnueabihf,ppc64-linux-gnu" BASE_OS=Fedora
+# make TARGETS="arm-linux-gnueabihf ppc64le-linux-gnu" BASE_OS=Fedora
#
# This is the makefile which iterates over all host and target platforms.
#
diff --git a/make/devkit/Tools.gmk b/make/devkit/Tools.gmk
index 1b9240df49c..f27d47b822c 100644
--- a/make/devkit/Tools.gmk
+++ b/make/devkit/Tools.gmk
@@ -69,15 +69,26 @@ else ifeq ($(BASE_OS), Fedora)
ifeq ($(BASE_OS_VERSION), )
BASE_OS_VERSION := $(DEFAULT_OS_VERSION)
endif
+ ifeq ($(filter aarch64 armhfp ppc64le riscv64 s390x x86_64, $(ARCH)), )
+ $(error Only "aarch64 armhfp ppc64le riscv64 s390x x86_64" architectures are supported for Fedora, but "$(ARCH)" was requested)
+ endif
ifeq ($(ARCH), riscv64)
+ ifeq ($(filter 38 39 40 41, $(BASE_OS_VERSION)), )
+ $(error Only Fedora 38-41 are supported for "$(ARCH)", but Fedora $(BASE_OS_VERSION) was requested)
+ endif
BASE_URL := http://fedora.riscv.rocks/repos-dist/f$(BASE_OS_VERSION)/latest/$(ARCH)/Packages/
else
- LATEST_ARCHIVED_OS_VERSION := 35
- ifeq ($(filter x86_64 armhfp, $(ARCH)), )
+ LATEST_ARCHIVED_OS_VERSION := 36
+ ifeq ($(filter aarch64 armhfp x86_64, $(ARCH)), )
FEDORA_TYPE := fedora-secondary
else
FEDORA_TYPE := fedora/linux
endif
+ ifeq ($(ARCH), armhfp)
+ ifneq ($(BASE_OS_VERSION), 36)
+ $(error Fedora 36 is the last release supporting "armhfp", but $(BASE_OS) was requested)
+ endif
+ endif
NOT_ARCHIVED := $(shell [ $(BASE_OS_VERSION) -gt $(LATEST_ARCHIVED_OS_VERSION) ] && echo true)
ifeq ($(NOT_ARCHIVED),true)
BASE_URL := https://dl.fedoraproject.org/pub/$(FEDORA_TYPE)/releases/$(BASE_OS_VERSION)/Everything/$(ARCH)/os/Packages/
@@ -464,7 +475,7 @@ ifeq ($(ARCH), armhfp)
$(BUILDDIR)/$(gcc_ver)/Makefile : CONFIG += --with-float=hard
endif
-ifneq ($(filter riscv64 ppc64 ppc64le s390x, $(ARCH)), )
+ifneq ($(filter riscv64 ppc64le s390x, $(ARCH)), )
# We only support 64-bit on these platforms anyway
CONFIG += --disable-multilib
endif