os-maven-plugin/0003-Add_support_for_RISC-V_arch.patch

40 lines
1.1 KiB
Diff
Raw Normal View History

2024-02-05 15:58:50 +08:00
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(+)
2023-06-26 20:53:01 +08:00
diff --git a/README.md b/README.md
2024-02-05 15:58:50 +08:00
index 8483a7d..98f2c4e 100644
2023-06-26 20:53:01 +08:00
--- a/README.md
+++ b/README.md
2024-02-05 15:58:50 +08:00
@@ -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`
2023-06-26 20:53:01 +08:00
2024-02-05 15:58:50 +08:00
#### Property: `os.detected.version.*`
2023-06-26 20:53:01 +08:00
diff --git a/src/main/java/kr/motd/maven/os/Detector.java b/src/main/java/kr/motd/maven/os/Detector.java
2024-02-05 15:58:50 +08:00
index 8962f51..3c189ff 100644
2023-06-26 20:53:01 +08:00
--- a/src/main/java/kr/motd/maven/os/Detector.java
+++ b/src/main/java/kr/motd/maven/os/Detector.java
2024-02-05 15:58:50 +08:00
@@ -206,6 +206,9 @@ public abstract class Detector {
if ("s390x".equals(value)) {
return "s390_64";
2023-06-26 20:53:01 +08:00
}
2024-02-05 15:58:50 +08:00
+ if ("riscv64".equals(value)) {
2023-06-26 20:53:01 +08:00
+ return "riscv64";
2024-02-05 15:58:50 +08:00
+ }
2023-06-26 20:53:01 +08:00
return UNKNOWN;
}
2024-02-05 15:58:50 +08:00
--
2.33.0