|
|
ac690b |
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
ac690b |
# Copyright (C) 2019 Mellanox Technologies. All Rights Reserved.
|
|
|
ac690b |
#
|
|
|
ac690b |
|
|
|
ac690b |
Name: rshim
|
|
|
3aa64b |
Version: 2.0.5
|
|
|
3aa64b |
Release: 2%{?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
|
|
|
3aa64b |
Patch0: rshim-sysconfig.patch
|
|
|
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
|
|
|
3aa64b |
%autosetup -p1 -n %{name}-%{version}
|
|
|
ac690b |
|
|
|
ac690b |
%build
|
|
|
ac690b |
./bootstrap.sh
|
|
|
ac690b |
%configure
|
|
|
ac690b |
%make_build
|
|
|
ac690b |
|
|
|
ac690b |
%install
|
|
|
ac690b |
%make_install
|
|
|
ac690b |
|
|
|
3aa64b |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
|
|
|
3aa64b |
cat > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/rshim <
|
|
|
3aa64b |
# Command-line options for rshim
|
|
|
3aa64b |
OPTIONS=""
|
|
|
3aa64b |
EOF
|
|
|
3aa64b |
|
|
|
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
|
|
|
3aa64b |
%config(noreplace) %{_sysconfdir}/rshim.conf
|
|
|
3aa64b |
%config(noreplace) %{_sysconfdir}/sysconfig/rshim
|
|
|
ac690b |
%{_unitdir}/rshim.service
|
|
|
3aa64b |
%{_sbindir}/rshim
|
|
|
3aa64b |
%{_sbindir}/bfb-install
|
|
|
ac690b |
%{_mandir}/man8/rshim.8.gz
|
|
|
3aa64b |
%{_mandir}/man8/bfb-install.8.gz
|
|
|
ac690b |
|
|
|
ac690b |
%changelog
|
|
|
3aa64b |
* Tue Apr 20 2021 Dean Nelson <dnelson@redhat.com> - 2.0.5-2
|
|
|
3aa64b |
- Add sysconfig/rshim file and update rshim.service to source it.
|
|
|
3aa64b |
- jbastian made the first cut of this patch, which needed to be
|
|
|
3aa64b |
modified due to the update to 2.0.5. And I chose to go with
|
|
|
3aa64b |
%%autosetup to handle Patch0, instead of sticking with %%setup.
|
|
|
3aa64b |
- Resolves: rhbz#1946349
|
|
|
3aa64b |
|
|
|
3aa64b |
* Tue Apr 20 2021 Dean Nelson <dnelson@redhat.com> - 2.0.5-1
|
|
|
3aa64b |
- Update user-space rshim driver source to version 2.0.5.
|
|
|
3aa64b |
- Modify rshim.spec accordingly.
|
|
|
3aa64b |
- Resolves: rhbz#1950425
|
|
|
3aa64b |
|
|
|
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
|