add riscv64 support
This commit is contained in:
parent
70980a0045
commit
67eca7e36e
57
add-riscv-support.patch
Normal file
57
add-riscv-support.patch
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
diff -ur --new-file libmetal-2022.10.0/lib/processor/riscv/CMakeLists.txt libmetal-2022.10.0/lib/processor/riscv/CMakeLists.txt
|
||||||
|
--- libmetal-2022.10.0/lib/processor/riscv/CMakeLists.txt 2022-10-28 10:12:23.000000000 +0800
|
||||||
|
+++ libmetal-2022.10.0/lib/processor/riscv/CMakeLists.txt 1970-01-01 08:00:00.000000000 +0800
|
||||||
|
@@ -1,3 +0,0 @@
|
||||||
|
-collect (PROJECT_LIB_HEADERS cpu.h)
|
||||||
|
-
|
||||||
|
-# vim: expandtab:ts=2:sw=2:smartindent
|
||||||
|
diff -ur --new-file libmetal-2022.10.0/lib/processor/riscv/cpu.h libmetal-2022.10.0/lib/processor/riscv/cpu.h
|
||||||
|
--- libmetal-2022.10.0/lib/processor/riscv/cpu.h 2022-10-28 10:12:23.000000000 +0800
|
||||||
|
+++ libmetal-2022.10.0/lib/processor/riscv/cpu.h 1970-01-01 08:00:00.000000000 +0800
|
||||||
|
@@ -1,17 +0,0 @@
|
||||||
|
-/*
|
||||||
|
- * Copyright (c) 2018, Pinecone Inc. and Contributors. All rights reserved.
|
||||||
|
- *
|
||||||
|
- * SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
- */
|
||||||
|
-
|
||||||
|
-/*
|
||||||
|
- * @file cpu.h
|
||||||
|
- * @brief CPU specific primitives
|
||||||
|
- */
|
||||||
|
-
|
||||||
|
-#ifndef __METAL_RISCV_CPU__H__
|
||||||
|
-#define __METAL_RISCV_CPU__H__
|
||||||
|
-
|
||||||
|
-#define metal_cpu_yield()
|
||||||
|
-
|
||||||
|
-#endif /* __METAL_RISCV_CPU__H__ */
|
||||||
|
diff -ur --new-file libmetal-2022.10.0/lib/processor/riscv64/CMakeLists.txt libmetal-2022.10.0/lib/processor/riscv64/CMakeLists.txt
|
||||||
|
--- libmetal-2022.10.0/lib/processor/riscv64/CMakeLists.txt 1970-01-01 08:00:00.000000000 +0800
|
||||||
|
+++ libmetal-2022.10.0/lib/processor/riscv64/CMakeLists.txt 2023-06-20 17:21:21.507556947 +0800
|
||||||
|
@@ -0,0 +1,3 @@
|
||||||
|
+collect (PROJECT_LIB_HEADERS cpu.h)
|
||||||
|
+
|
||||||
|
+# vim: expandtab:ts=2:sw=2:smartindent
|
||||||
|
diff -ur --new-file libmetal-2022.10.0/lib/processor/riscv64/cpu.h libmetal-2022.10.0/lib/processor/riscv64/cpu.h
|
||||||
|
--- libmetal-2022.10.0/lib/processor/riscv64/cpu.h 1970-01-01 08:00:00.000000000 +0800
|
||||||
|
+++ libmetal-2022.10.0/lib/processor/riscv64/cpu.h 2023-06-20 17:21:21.507556947 +0800
|
||||||
|
@@ -0,0 +1,17 @@
|
||||||
|
+/*
|
||||||
|
+ * Copyright (c) 2018, Pinecone Inc. and Contributors. All rights reserved.
|
||||||
|
+ *
|
||||||
|
+ * SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
+ */
|
||||||
|
+
|
||||||
|
+/*
|
||||||
|
+ * @file cpu.h
|
||||||
|
+ * @brief CPU specific primitives
|
||||||
|
+ */
|
||||||
|
+
|
||||||
|
+#ifndef __METAL_RISCV_CPU__H__
|
||||||
|
+#define __METAL_RISCV_CPU__H__
|
||||||
|
+
|
||||||
|
+#define metal_cpu_yield()
|
||||||
|
+
|
||||||
|
+#endif /* __METAL_RISCV_CPU__H__ */
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: libmetal
|
Name: libmetal
|
||||||
Version: 2022.10.0
|
Version: 2022.10.0
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: An abstraction layer across user-space Linux, baremetal, and RTOS environments
|
Summary: An abstraction layer across user-space Linux, baremetal, and RTOS environments
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -8,6 +8,7 @@ URL: https://github.com/OpenAMP/libmetal/
|
|||||||
Source0: https://github.com/OpenAMP/libmetal/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz
|
Source0: https://github.com/OpenAMP/libmetal/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
Patch0: libmetal-add-additional-arches.patch
|
Patch0: libmetal-add-additional-arches.patch
|
||||||
|
Patch1: add-riscv-support.patch
|
||||||
|
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
@ -71,6 +72,9 @@ done
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 28 2023 Jingwiw <wangjingwei@iscas.ac.cn> - 2022.10.0-4
|
||||||
|
- add riscv support
|
||||||
|
|
||||||
* Mon Feb 27 2023 hanzongcheng <hanzongcheng@huawei.com> - 2022.10.0-3
|
* Mon Feb 27 2023 hanzongcheng <hanzongcheng@huawei.com> - 2022.10.0-3
|
||||||
- update to 2022.10.0
|
- update to 2022.10.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user