3 Commits

5 changed files with 40 additions and 8 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6dc417c1ba1501d48bd3636f093c312bd8a3591c2b608b8db5c2ddea980824ab
size 229246

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9d0558c8160321e5fd84290d707332841f2650832b0e0cdab66e43170957ed29
size 233170

14
libmetal-gcc15.patch Normal file
View File

@@ -0,0 +1,14 @@
diff --git a/lib/atomic.h b/lib/atomic.h
index d49f1337..7f38a08c 100644
--- a/lib/atomic.h
+++ b/lib/atomic.h
@@ -114,4 +114,8 @@ using std::atomic_signal_fence;
#endif /* defined(HAVE_PROCESSOR_ATOMIC_H) */
#endif
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L && !defined(ATOMIC_VAR_INIT)
+# define ATOMIC_VAR_INIT(VAL) (VAL)
+#endif
+
#endif /* __METAL_ATOMIC__H__ */

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Tue Jul 1 13:12:09 UTC 2025 - pgajdos@suse.com
- fix devel package dependency
-------------------------------------------------------------------
Tue Jul 1 07:33:04 UTC 2025 - pgajdos@suse.com
- version update to 2025.04.0
* fixes issue to improve the library maturity
* Update the cmake minimum support to 3.16
* lot more https://github.com/OpenAMP/libmetal/releases
- added patches
https://github.com/OpenAMP/libmetal/commit/dcf121ab617443166e976afbdd848569cf773895
+ libmetal-gcc15.patch
-------------------------------------------------------------------
Thu Dec 29 20:18:22 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package libmetal
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,14 +16,16 @@
#
%define libname libmetal0
%define libname libmetal1
Name: libmetal
Version: 2020.10.0
Version: 2025.04.0
Release: 0
Summary: Bare metal interaction APIs
License: BSD-3-Clause
URL: https://github.com/OpenAMP/libmetal
Source: https://github.com/OpenAMP/libmetal/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# https://github.com/OpenAMP/libmetal/commit/dcf121ab617443166e976afbdd848569cf773895
Patch0: libmetal-gcc15.patch
BuildRequires: cmake
BuildRequires: libhugetlbfs-devel
BuildRequires: sysfsutils-devel
@@ -49,14 +51,14 @@ and request memory across the following operating environments:
%package devel
Summary: Include Files and Libraries mandatory for Development
Requires: libmetal0 = %{version}
Requires: %{libname} = %{version}
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
%prep
%setup -q -n libmetal-%{version}
%autosetup -p1 -n libmetal-%{version}
# set up our cpu names
ln -s arm lib/processor/armv6l
ln -s arm lib/processor/armv7l