diff --git a/add-sw_64-support-for-libmetal.patch b/add-sw_64-support-for-libmetal.patch new file mode 100644 index 0000000000000000000000000000000000000000..9031375db75dc9669ceac9cc578b2bf317a91621 --- /dev/null +++ b/add-sw_64-support-for-libmetal.patch @@ -0,0 +1,47 @@ +From 45efccd7042df956566914d686001eb42285461c Mon Sep 17 00:00:00 2001 +From: mahailiang +Date: Mon, 4 Nov 2024 11:15:36 +0800 +Subject: [PATCH] add sw_64 support + +--- + lib/processor/sw_64/CMakeLists.txt | 3 +++ + lib/processor/sw_64/cpu.h | 17 +++++++++++++++++ + 2 files changed, 20 insertions(+) + create mode 100644 lib/processor/sw_64/CMakeLists.txt + create mode 100644 lib/processor/sw_64/cpu.h + +diff --git a/lib/processor/sw_64/CMakeLists.txt b/lib/processor/sw_64/CMakeLists.txt +new file mode 100644 +index 0000000..c06e951 +--- /dev/null ++++ b/lib/processor/sw_64/CMakeLists.txt +@@ -0,0 +1,3 @@ ++collect (PROJECT_LIB_HEADERS cpu.h) ++ ++# vim: expandtab:ts=2:sw=2:smartindent +diff --git a/lib/processor/sw_64/cpu.h b/lib/processor/sw_64/cpu.h +new file mode 100644 +index 0000000..ea34eb6 +--- /dev/null ++++ b/lib/processor/sw_64/cpu.h +@@ -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_SW_64_CPU__H__ ++#define __METAL_SW_64_CPU__H__ ++ ++#define metal_cpu_yield() ++ ++#endif /* __METAL_SW_64_CPU__H__ */ +-- +2.43.0 + diff --git a/libmetal.spec b/libmetal.spec index a94d33c7315562ce6a170b2af06985851113884c..1651594692d26e4ce383a97a234e7d06fe2e4d45 100644 --- a/libmetal.spec +++ b/libmetal.spec @@ -1,6 +1,6 @@ Name: libmetal Version: 2022.10.0 -Release: 5 +Release: 6 Summary: An abstraction layer across user-space Linux, baremetal, and RTOS environments License: BSD @@ -10,6 +10,7 @@ Source0: https://github.com/OpenAMP/libmetal/archive/refs/tags/v%{version}/%{nam Patch0: libmetal-add-additional-arches.patch Patch1: add-riscv-support.patch Patch2: add-loongarch64-support-for-libmetal.patch +Patch3: add-sw_64-support-for-libmetal.patch BuildRequires: cmake BuildRequires: doxygen @@ -73,6 +74,9 @@ done %changelog +* Tue Mar 18 2025 mahailiang - 2022.10.0-6 +- add sw_64 support for libmetal + * Tue Jun 18 2024 Wenlong Zhang - 2022.10.0-5 - add loongarch64 support for libmetal