Enable 'riscv64' arch
This is largely enabling multiple architectures: jit, sa, shenandoah, and zgc. Based on: https://gitlab.com/fedoravforce/java-21-openjdk/-/commit/cfaf825d54 Resolves: RHEL-92631 Thanks: Songsong Zhang <U2FsdGVkX1@gmail.com> Signed-off-by: Kashyap Chamarthy <kchamart@redhat.com>
This commit is contained in:
		
							parent
							
								
									a8d000dc51
								
							
						
					
					
						commit
						49ffd263c4
					
				| @ -117,7 +117,7 @@ | ||||
| # Set of architectures for which we build fastdebug builds | ||||
| %global fastdebug_arches x86_64 ppc64le aarch64 | ||||
| # Set of architectures with a Just-In-Time (JIT) compiler | ||||
| %global jit_arches      %{arm} %{aarch64} %{ix86} %{power64} s390x sparcv9 sparc64 x86_64 | ||||
| %global jit_arches      %{arm} %{aarch64} %{ix86} %{power64} s390x sparcv9 sparc64 x86_64 riscv64 | ||||
| # Set of architectures which use the Zero assembler port (!jit_arches) | ||||
| %global zero_arches ppc s390 | ||||
| # Set of architectures which run a full bootstrap cycle | ||||
| @ -127,15 +127,15 @@ | ||||
| # Set of architectures with a Ahead-Of-Time (AOT) compiler | ||||
| %global aot_arches      x86_64 %{aarch64} | ||||
| # Set of architectures which support the serviceability agent | ||||
| %global sa_arches       %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{power64} %{arm} | ||||
| %global sa_arches       %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{power64} %{arm} riscv64 | ||||
| # Set of architectures which support class data sharing | ||||
| # As of JDK-8005165 in OpenJDK 10, class sharing is not arch-specific | ||||
| # However, it does segfault on the Zero assembler port, so currently JIT only | ||||
| %global share_arches    %{jit_arches} | ||||
| # Set of architectures for which we build the Shenandoah garbage collector | ||||
| %global shenandoah_arches x86_64 %{aarch64} | ||||
| %global shenandoah_arches x86_64 %{aarch64} riscv64 | ||||
| # Set of architectures for which we build the Z garbage collector | ||||
| %global zgc_arches x86_64 | ||||
| %global zgc_arches x86_64 riscv64 | ||||
| # Set of architectures for which alt-java has SSB mitigation | ||||
| %global ssbd_arches x86_64 | ||||
| # Set of architectures for which java has short vector math library (libjsvml.so) | ||||
| @ -283,6 +283,10 @@ | ||||
| %global archinstall aarch64 | ||||
| %global stapinstall arm64 | ||||
| %endif | ||||
| %ifarch riscv64 | ||||
| %global archinstall riscv64 | ||||
| %global stapinstall riscv64 | ||||
| %endif | ||||
| # 32 bit sparc, optimized for v9 | ||||
| %ifarch sparcv9 | ||||
| %global archinstall sparc | ||||
| @ -366,7 +370,7 @@ | ||||
| %global top_level_dir_name   %{vcstag} | ||||
| %global top_level_dir_name_backup %{top_level_dir_name}-backup | ||||
| %global buildver        6 | ||||
| %global rpmrelease      2 | ||||
| %global rpmrelease      3 | ||||
| # Settings used by the portable build | ||||
| %global portablerelease 2 | ||||
| # Portable suffix differs between RHEL and CentOS | ||||
| @ -1172,7 +1176,7 @@ Provides: java-%{origin}-src%{?1} = %{epoch}:%{version}-%{release} | ||||
| %global pkgnameroot java-%{featurever}-%{origin}-portable%{?pkgos:-%{pkgos}} | ||||
| 
 | ||||
| # Define the architectures on which we build | ||||
| ExclusiveArch: %{aarch64} %{ppc64le} s390x x86_64 | ||||
| ExclusiveArch: %{aarch64} %{ppc64le} s390x x86_64 riscv64 | ||||
| 
 | ||||
| Name:    java-%{javaver}-%{origin} | ||||
| Version: %{newjavaver}.%{buildver} | ||||
| @ -2467,6 +2471,11 @@ exit 0 | ||||
| %endif | ||||
| 
 | ||||
| %changelog | ||||
| * Mon May 20 2025 Kashyap Chamarthy <kchamart@redhat.com> - 1:21.0.7.0.6-3 | ||||
| - Enable riscv64 arch; thank you, Songsong Zhang | ||||
|   <U2FsdGVkX1@gmail.com> | ||||
| - Resolves: RHEL-92631 | ||||
| 
 | ||||
| * Thu May 08 2025 Andrew Hughes <gnu.andrew@redhat.com> - 1:21.0.7.0.6-2 | ||||
| - Add local version of JDK-8351500 for early interim release before 21.0.8 | ||||
| - Sync the copy of the portable specfile with the latest update | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user