From 115f3662b8c3e3c4c489c6ad8c6b5fdf11f1f3f8 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 03 2021 17:03:37 +0000 Subject: import rshim-2.0.5-2.el9 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8c1d87e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/rshim-2.0.5.tar.gz diff --git a/.rshim.metadata b/.rshim.metadata new file mode 100644 index 0000000..1aa8fd9 --- /dev/null +++ b/.rshim.metadata @@ -0,0 +1 @@ +1e2a3562dac3764b29f101c2ca49711e9728fb04 SOURCES/rshim-2.0.5.tar.gz diff --git a/SOURCES/rshim-sysconfig.patch b/SOURCES/rshim-sysconfig.patch new file mode 100644 index 0000000..87a5156 --- /dev/null +++ b/SOURCES/rshim-sysconfig.patch @@ -0,0 +1,24 @@ +From 37b1523b39d7fb0d58d57b8f58c943055b1e83e2 Mon Sep 17 00:00:00 2001 +From: Jeffrey Bastian +Date: Tue, 6 Apr 2021 14:24:16 -0500 +Subject: [PATCH] add rshim sysconfig file for setting + +--- + rshim.service | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/rshim.service b/rshim.service +index 84f0e2f49eba..7539133f869c 100644 +--- a/rshim.service ++++ b/rshim.service +@@ -9,6 +9,7 @@ After=network.target + [Service] + Restart=always + Type=forking ++EnvironmentFile=-/etc/sysconfig/rshim + ExecStart=-/usr/sbin/rshim $OPTIONS + KillMode=control-group + +-- +2.26.3 + diff --git a/SPECS/rshim.spec b/SPECS/rshim.spec new file mode 100644 index 0000000..7a5556b --- /dev/null +++ b/SPECS/rshim.spec @@ -0,0 +1,125 @@ +# SPDX-License-Identifier: GPL-2.0-only +# Copyright (C) 2019 Mellanox Technologies. All Rights Reserved. +# + +Name: rshim +Version: 2.0.5 +Release: 2%{?dist} +Summary: User-space driver for Mellanox BlueField SoC + +License: GPLv2 + +URL: https://github.com/mellanox/rshim-user-space +Source0: https://github.com/Mellanox/rshim-user-space/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz +Patch0: rshim-sysconfig.patch + +BuildRequires: gcc, autoconf, automake, make +BuildRequires: pkgconfig(libpci), pkgconfig(libusb-1.0), pkgconfig(fuse) +BuildRequires: systemd +BuildRequires: systemd-rpm-macros + +Requires: kmod(cuse.ko) +Suggests: kernel-modules-extra + +%description +This is the user-space driver to access the BlueField SoC via the rshim +interface. It provides ways to push boot stream, debug the target or login +via the virtual console or network interface. + +%prep +%autosetup -p1 -n %{name}-%{version} + +%build +./bootstrap.sh +%configure +%make_build + +%install +%make_install + +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig +cat > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/rshim < - 2.0.5-2 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Tue May 18 2021 Dean Nelson - 2.0.5-1 +- Update user-space rshim driver source to version 2.0.5 +- Modify rshim.spec accordingly +- Switch to %%autosetup to handle Patch0 and any future patches +- Resolves: rhbz#1858577 + +* Tue Apr 20 2021 Jeff Bastian - 2.0.4-6 +- Add sysconfig/rshim file and update rshim.service to source it +- Resolves: rhbz#1960060 + +* Fri Apr 16 2021 Mohan Boddu - 2.0.4-5 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Wed Jan 27 2021 Fedora Release Engineering - 2.0.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sat Aug 01 2020 Fedora Release Engineering - 2.0.4-3 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 2.0.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Apr 21 2020 Liming Sun - 2.0.4-1 +- Update .spec file according to review comments +- Fix the 'KillMode' in rshim.service +- Support process termination by SIGTERM +- Fix some compiling warnings and configure issue for FreeBSD +- Fix a read()/write() issue in rshim_pcie.c caused by optimization + +* Tue Apr 14 2020 Liming Sun - 2.0.3-1 +- Enable pci device during probing +- Map the pci resource0 file instead of /dev/mem +- Add copyright header in bootstrap.sh +- Add 'Requires' tag check in the rpm .spec for kernel-modules-extra +- Fix the 'rshim --version' output + +* Thu Apr 09 2020 Liming Sun - 2.0.2-1 +- Remove unnecessary dependency in .spec and use make_build +- Add package build for debian/ubuntu +- Fix some format in the man page +- Add check for syslog headers + +* Mon Mar 23 2020 Liming Sun - 2.0.1-1 +- Rename bfrshim to rshim +- Remove rshim.spec since it's auto-generated from rshim.spec.in +- Fix warnings reported by coverity +- Add rhel/rshim.spec.in for fedora +- Move rshim to sbin and move man page to man8 + +* Fri Mar 13 2020 Liming Sun - 2.0-1 +- Update the spec file according to fedora packaging-guidelines + +* Mon Dec 16 2019 Liming Sun +- Initial packaging