|
|
ac690b |
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
ac690b |
# Copyright (C) 2019 Mellanox Technologies. All Rights Reserved.
|
|
|
ac690b |
#
|
|
|
ac690b |
|
|
|
ac690b |
Name: rshim
|
|
|
ac690b |
Version: 2.0.4
|
|
|
ac690b |
Release: 4%{?dist}
|
|
|
ac690b |
Summary: User-space driver for Mellanox BlueField SoC
|
|
|
ac690b |
|
|
|
ac690b |
License: GPLv2
|
|
|
ac690b |
|
|
|
ac690b |
URL: https://github.com/mellanox/rshim-user-space
|
|
|
ac690b |
Source0: https://github.com/Mellanox/rshim-user-space/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
|
|
|
ac690b |
|
|
|
ac690b |
BuildRequires: gcc, autoconf, automake, make
|
|
|
ac690b |
BuildRequires: pkgconfig(libpci), pkgconfig(libusb-1.0), pkgconfig(fuse)
|
|
|
ac690b |
BuildRequires: systemd
|
|
|
ac690b |
BuildRequires: systemd-rpm-macros
|
|
|
ac690b |
|
|
|
ac690b |
Requires: kmod(cuse.ko)
|
|
|
ac690b |
Suggests: kernel-modules-extra
|
|
|
ac690b |
|
|
|
ac690b |
%description
|
|
|
ac690b |
This is the user-space driver to access the BlueField SoC via the rshim
|
|
|
ac690b |
interface. It provides ways to push boot stream, debug the target or login
|
|
|
ac690b |
via the virtual console or network interface.
|
|
|
ac690b |
|
|
|
ac690b |
%prep
|
|
|
ac690b |
%setup -q -n %{name}-%{version}
|
|
|
ac690b |
|
|
|
ac690b |
%build
|
|
|
ac690b |
./bootstrap.sh
|
|
|
ac690b |
%configure
|
|
|
ac690b |
%make_build
|
|
|
ac690b |
|
|
|
ac690b |
%install
|
|
|
ac690b |
%make_install
|
|
|
ac690b |
|
|
|
ac690b |
%post
|
|
|
ac690b |
%systemd_post rshim.service
|
|
|
ac690b |
|
|
|
ac690b |
%preun
|
|
|
ac690b |
%systemd_preun rshim.service
|
|
|
ac690b |
|
|
|
ac690b |
%postun
|
|
|
ac690b |
%systemd_postun_with_restart rshim.service
|
|
|
ac690b |
|
|
|
ac690b |
%files
|
|
|
ac690b |
%license LICENSE
|
|
|
ac690b |
%doc README.md
|
|
|
ac690b |
%{_sbindir}/rshim
|
|
|
ac690b |
%{_unitdir}/rshim.service
|
|
|
ac690b |
%{_mandir}/man8/rshim.8.gz
|
|
|
ac690b |
|
|
|
ac690b |
%changelog
|
|
|
ac690b |
* Tue Jan 26 2021 Dean Nelson <dnelson@redhat.com> - 2.0.4-4
|
|
|
ac690b |
- Expose gating.yaml file in order to enable manual CI gating for rshim
|
|
|
ac690b |
in RHEL-8.4, by bumping release and doing a Brew build.
|
|
|
ac690b |
- Partially resolves: rhbz#1912248
|
|
|
ac690b |
|
|
|
ac690b |
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-3
|
|
|
ac690b |
- Second attempt - Rebuilt for
|
|
|
ac690b |
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
ac690b |
|
|
|
ac690b |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-2
|
|
|
ac690b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
ac690b |
|
|
|
ac690b |
* Tue Apr 21 2020 Liming Sun <lsun@mellanox.com> - 2.0.4-1
|
|
|
ac690b |
- Update .spec file according to review comments
|
|
|
ac690b |
- Fix the 'KillMode' in rshim.service
|
|
|
ac690b |
- Support process termination by SIGTERM
|
|
|
ac690b |
- Fix some compiling warnings and configure issue for FreeBSD
|
|
|
ac690b |
- Fix a read()/write() issue in rshim_pcie.c caused by optimization
|
|
|
ac690b |
|
|
|
ac690b |
* Tue Apr 14 2020 Liming Sun <lsun@mellanox.com> - 2.0.3-1
|
|
|
ac690b |
- Enable pci device during probing
|
|
|
ac690b |
- Map the pci resource0 file instead of /dev/mem
|
|
|
ac690b |
- Add copyright header in bootstrap.sh
|
|
|
ac690b |
- Add 'Requires' tag check in the rpm .spec for kernel-modules-extra
|
|
|
ac690b |
- Fix the 'rshim --version' output
|
|
|
ac690b |
|
|
|
ac690b |
* Thu Apr 09 2020 Liming Sun <lsun@mellanox.com> - 2.0.2-1
|
|
|
ac690b |
- Remove unnecessary dependency in .spec and use make_build
|
|
|
ac690b |
- Add package build for debian/ubuntu
|
|
|
ac690b |
- Fix some format in the man page
|
|
|
ac690b |
- Add check for syslog headers
|
|
|
ac690b |
|
|
|
ac690b |
* Mon Mar 23 2020 Liming Sun <lsun@mellanox.com> - 2.0.1-1
|
|
|
ac690b |
- Rename bfrshim to rshim
|
|
|
ac690b |
- Remove rshim.spec since it's auto-generated from rshim.spec.in
|
|
|
ac690b |
- Fix warnings reported by coverity
|
|
|
ac690b |
- Add rhel/rshim.spec.in for fedora
|
|
|
ac690b |
- Move rshim to sbin and move man page to man8
|
|
|
ac690b |
|
|
|
ac690b |
* Fri Mar 13 2020 Liming Sun <lsun@mellanox.com> - 2.0-1
|
|
|
ac690b |
- Update the spec file according to fedora packaging-guidelines
|
|
|
ac690b |
|
|
|
ac690b |
* Mon Dec 16 2019 Liming Sun <lsun@mellanox.com>
|
|
|
ac690b |
- Initial packaging
|