forked from Mellanox/mlxbf-bootctl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mlxbf-bootctl.spec
66 lines (52 loc) · 1.83 KB
/
mlxbf-bootctl.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Name: mlxbf-bootctl
Version: 2.1
Release: 1%{?dist}
Summary: Mellanox BlueField boot partition management utility
License: BSD
Url: https://github.com/Mellanox/mlxbf-bootctl
Source: mlxbf-bootctl-2.1.tar.gz
# mlxbf-bootctl will build for most architectures, however this program is
# designed only to control BlueField SoCs, which are all aarch64, so only
# build for that architecture.
ExclusiveArch: aarch64
BuildRequires: gcc
%description
mlxbf-bootctl is used to control the two boot firmware (ATF, UEFI, etc...)
partitions present on most Mellanox BlueField devices. This includes switching
active partitions, listing the state of boot registers, and installing new
firmware.
# this section is automatically generated by rpkg
%prep
%setup
%build
%{?set_build_flags}
%make_build
%install
# Note: make install normally installs to "/sbin"
%{__make} install DESTDIR=%{buildroot}%{_exec_prefix}
%{__install} -d %{buildroot}%{_mandir}/man8
%{__install} -m 0644 mlxbf-bootctl.8 %{buildroot}%{_mandir}/man8
%files
%{_sbindir}/mlxbf-bootctl
%{_mandir}/man8/mlxbf-bootctl.8.gz
%license LICENSE
%doc README.md
%changelog
* Thu Sep 3 2020 Spencer Lingard <[email protected]> - 2.1-1
- Bump version to sync up with others
- Modify spec.rpkg to depend less on rpkg
* Mon Jun 22 2020 Spencer Lingard <[email protected]> - 1.1-6
- Add set_build_flags macro to build step
- Warn user if mlxbf_bootctl kernel driver is not loaded
* Wed Jun 17 2020 Spencer Lingard <[email protected]> - 1.1-5
- Simplify release tag
- Add comment explaining ExclusiveArch tag
- Improve description
- Remove unneeded build dependency
- Move mlxbf-bootctl from /sbin to /usr/sbin
- Pull in code coverage fixes
* Wed Jun 10 2020 Spencer Lingard <[email protected]> - 1.1-4
- Add man page
- Add license
* Tue May 12 2020 Spencer Lingard <[email protected]> - 1.1-3
Initial packaging.