Add support for RISC-V arch
This commit is contained in:
parent
2f60a2c47c
commit
8fe218d51f
26
0003-Add_support_for_RISC-V_arch.patch
Normal file
26
0003-Add_support_for_RISC-V_arch.patch
Normal file
@ -0,0 +1,26 @@
|
||||
diff --git a/README.md b/README.md
|
||||
index f05e7d2..a84c834 100644
|
||||
--- a/README.md
|
||||
+++ b/README.md
|
||||
@@ -30,6 +30,7 @@
|
||||
* `aarch_64`
|
||||
* `ppc_32`
|
||||
* `ppc_64`
|
||||
+ * `riscv64`
|
||||
|
||||
You can also use the `${os.detected.classifier}` property, which is a shortcut of `${os.detected.name}-${os.detected.arch}`.
|
||||
|
||||
diff --git a/src/main/java/kr/motd/maven/os/Detector.java b/src/main/java/kr/motd/maven/os/Detector.java
|
||||
index 9dd6688..190144b 100644
|
||||
--- a/src/main/java/kr/motd/maven/os/Detector.java
|
||||
+++ b/src/main/java/kr/motd/maven/os/Detector.java
|
||||
@@ -133,6 +133,9 @@ public abstract class Detector {
|
||||
if (value.equals("ppc64")) {
|
||||
return "ppc_64";
|
||||
}
|
||||
+ if (value.equals("riscv64")) {
|
||||
+ return "riscv64";
|
||||
+ }
|
||||
|
||||
return UNKNOWN;
|
||||
}
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
Name: os-maven-plugin
|
||||
Version: 1.2.3
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Maven plugin for generating platform-dependent properties
|
||||
License: ASL 2.0
|
||||
URL: https://github.com/trustin/os-maven-plugin/
|
||||
@ -10,6 +10,7 @@ BuildArch: noarch
|
||||
Source0: https://github.com/trustin/%{name}/archive/%{name}-%{version}.Final.tar.gz
|
||||
|
||||
Patch0: 0001-Port-to-current-plexus-utils.patch
|
||||
Patch1: 0003-Add_support_for_RISC-V_arch.patch
|
||||
|
||||
BuildRequires: maven-local mvn(junit:junit) mvn(org.apache.maven:maven-core)
|
||||
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
||||
@ -59,5 +60,8 @@ find -name plugin.xml -delete
|
||||
%doc LICENSE.txt
|
||||
|
||||
%changelog
|
||||
* Mon Jun 26 2023 xiaoqian lv <xiaoqian@nj.iscas.ac.cn> - 1.2.3-2
|
||||
- Add support for RISC-V arch
|
||||
|
||||
* Wed Jul 29 2020 wangxiao <wangxiao65@huawei.com> - 1.2.3-1
|
||||
- package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user