os-maven-plugin/0002-Add_support_for_RISC-V_arch.patch
Wenlong Zhang 7611f94607 fix build error for loongarch64
(cherry picked from commit c4b873c0d8174bc3d7edf891556ae2062bb204c9)
2024-04-23 16:58:38 +08:00

40 lines
1.1 KiB
Diff

From a7fef5b3abeb7da2a3ca847a38fb0c6f847b7d08 Mon Sep 17 00:00:00 2001
From: wang--ge <wang__ge@126.com>
Date: Mon, 5 Feb 2024 15:19:50 +0800
Subject: [PATCH] Add_support_for_RISC-V_arch
---
README.md | 1 +
src/main/java/kr/motd/maven/os/Detector.java | 3 +++
2 files changed, 4 insertions(+)
diff --git a/README.md b/README.md
index 8483a7d..98f2c4e 100644
--- a/README.md
+++ b/README.md
@@ -37,6 +37,7 @@
* `ppcle_64` - if the value is `ppc64le`
* `s390_32` - if the value is `s390`
* `s390_64` if the value is `s390x`
+* `riscv64` if the value is `riscv64`
#### Property: `os.detected.version.*`
diff --git a/src/main/java/kr/motd/maven/os/Detector.java b/src/main/java/kr/motd/maven/os/Detector.java
index 8962f51..3c189ff 100644
--- a/src/main/java/kr/motd/maven/os/Detector.java
+++ b/src/main/java/kr/motd/maven/os/Detector.java
@@ -206,6 +206,9 @@ public abstract class Detector {
if ("s390x".equals(value)) {
return "s390_64";
}
+ if ("riscv64".equals(value)) {
+ return "riscv64";
+ }
return UNKNOWN;
}
--
2.33.0