From a8d41308ba833f1d110ff63490846d3f2bbc4eb1 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Wed, 14 Oct 2020 21:53:57 -0700 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/rshim#02a9e7aefbb8e174ee14cc52513d6926329055b7 --- .gitignore | 1 + README.md | 3 ++ rshim.spec | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 99 insertions(+) create mode 100644 README.md create mode 100644 rshim.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..e9d7318 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/rshim-2.0.4.tar.gz diff --git a/README.md b/README.md new file mode 100644 index 0000000..3b4db78 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# rshim + +The rshim package \ No newline at end of file diff --git a/rshim.spec b/rshim.spec new file mode 100644 index 0000000..86ae7a4 --- /dev/null +++ b/rshim.spec @@ -0,0 +1,94 @@ +# SPDX-License-Identifier: GPL-2.0-only +# Copyright (C) 2019 Mellanox Technologies. All Rights Reserved. +# + +Name: rshim +Version: 2.0.4 +Release: 3%{?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 + +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 +%setup -q -n %{name}-%{version} + +%build +./bootstrap.sh +%configure +%make_build + +%install +%make_install + +%post +%systemd_post rshim.service + +%preun +%systemd_preun rshim.service + +%postun +%systemd_postun_with_restart rshim.service + +%files +%license LICENSE +%doc README.md +%{_sbindir}/rshim +%{_unitdir}/rshim.service +%{_mandir}/man8/rshim.8.gz + +%changelog +* 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 diff --git a/sources b/sources new file mode 100644 index 0000000..fe6a78a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (rshim-2.0.4.tar.gz) = 76b420379bbaf459493e4956a2f8b3e92cf83ebc2cb0ad946c2028383ed5b1093e79a24d0c949776c1e42ce4cb7a1fc474ca35131419efef1484df000018ea18