Skip to content

Commit d7bc078

Browse files
binujpBinu Jose Philipchalamalasetty
authored
Bphilip/add mofed and dependencies (#11479)
Co-authored-by: Binu Jose Philip <bphilip@microsoft.com> Co-authored-by: chalamalasetty <chalamalasetty@live.com>
1 parent a4f754d commit d7bc078

50 files changed

Lines changed: 5064 additions & 3 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSES-AND-NOTICES/SPECS/data/licenses.json

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2455,13 +2455,46 @@
24552455
"NVIDIA": {
24562456
"license": "[ASL 2.0 License and spec specific licenses](http://www.apache.org/licenses/LICENSE-2.0)",
24572457
"specs": [
2458+
"fwctl",
2459+
"fwctl-signed",
2460+
"ibarr",
2461+
"ibsim",
2462+
"iser",
2463+
"iser-signed",
2464+
"isert",
2465+
"isert-signed",
2466+
"knem",
2467+
"knem-modules-signed",
24582468
"libnvidia-container",
2469+
"mft_kernel",
2470+
"mft_kernel-signed",
2471+
"mlnx-ethtool",
2472+
"mlnx-iproute2",
2473+
"mlnx-nfsrdma",
2474+
"mlnx-nfsrdma-signed",
2475+
"mlnx-ofa_kernel",
2476+
"mlnx-ofa_kernel-modules-signed",
24592477
"mlnx-tools",
24602478
"mlx-bootctl",
2479+
"mlx-steering-dump",
2480+
"multiperf",
24612481
"nvidia-container-toolkit",
24622482
"ofed-docs",
24632483
"ofed-scripts",
2464-
"perftest"
2484+
"perftest",
2485+
"rshim",
2486+
"sockperf",
2487+
"srp",
2488+
"srp-signed",
2489+
"xpmem",
2490+
"xpmem-lib",
2491+
"xpmem-modules-signed"
2492+
]
2493+
},
2494+
"NVIDIA (BSD)": {
2495+
"license": "[BSD](https://github.com/Mellanox/sockperf/blob/sockperf_v2/copying)",
2496+
"specs": [
2497+
"sockperf"
24652498
]
24662499
},
24672500
"OpenEuler": {
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
#
2+
# Copyright (c) 2024 Nvidia Inc. All rights reserved.
3+
#
4+
# This software is available to you under a choice of one of two
5+
# licenses. You may choose to be licensed under the terms of the GNU
6+
# General Public License (GPL) Version 2, available from the file
7+
# COPYING in the main directory of this source tree, or the
8+
# OpenIB.org BSD license below:
9+
#
10+
# Redistribution and use in source and binary forms, with or
11+
# without modification, are permitted provided that the following
12+
# conditions are met:
13+
#
14+
# - Redistributions of source code must retain the above
15+
# copyright notice, this list of conditions and the following
16+
# disclaimer.
17+
#
18+
# - Redistributions in binary form must reproduce the above
19+
# copyright notice, this list of conditions and the following
20+
# disclaimer in the documentation and/or other materials
21+
# provided with the distribution.
22+
#
23+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
27+
# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
28+
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
29+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30+
# SOFTWARE.
31+
#
32+
33+
%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers))
34+
%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers))
35+
%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1)
36+
37+
%global KVERSION %{target_kernel_version_full}
38+
39+
%{!?_name: %define _name fwctl}
40+
41+
Summary: %{_name} Driver
42+
Name: %{_name}
43+
Version: 24.10
44+
Release: 1%{?dist}
45+
License: GPLv2
46+
Url: http://nvidia.com
47+
Group: System Environment/Base
48+
49+
#
50+
# To populate these sources:
51+
# 1. Build the unsigned packages as normal
52+
# 2. Sign the desired binary
53+
# 3. Place the unsigned package and signed binary in this spec's folder
54+
# 4. Build this spec
55+
56+
Source0: %{name}-%{version}-%{release}.%{_arch}.rpm
57+
Source1: fwctl.ko
58+
Source2: mlx5_fwctl.ko
59+
60+
Vendor: Microsoft Corporation
61+
Distribution: Azure Linux
62+
ExclusiveArch: x86_64
63+
64+
Requires: mlnx-ofa_kernel = %{_version}
65+
Requires: mlnx-ofa_kernel-modules = %{_version}
66+
Requires: kernel = %{target_kernel_version_full}
67+
Requires: kmod
68+
69+
%description
70+
fwctl signed kernel modules
71+
72+
%prep
73+
74+
%build
75+
76+
%install
77+
rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot}
78+
79+
cp -r %{SOURCE1} %{buildroot}/lib/modules/%{KVERSION}/updates/fwctl/fwctl.ko
80+
cp -r %{SOURCE2} %{buildroot}/lib/modules/%{KVERSION}/updates/fwctl/mlx5/mlx5_fwctl.ko
81+
82+
%clean
83+
rm -rf %{buildroot}
84+
85+
%post
86+
if [ $1 -ge 1 ]; then # 1 : This package is being installed or reinstalled
87+
/sbin/depmod %{KVERSION}
88+
fi # 1 : closed
89+
# END of post
90+
91+
%postun
92+
/sbin/depmod %{KVERSION}
93+
94+
%files
95+
%defattr(-,root,root,-)
96+
%license %{_datadir}/licenses/%{name}/copyright
97+
/lib/modules/%{KVERSION}/updates/
98+
%config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf
99+
100+
101+
%changelog
102+
* Tue Dec 16 2024 Binu Jose Philip <bphilip@microsoft.com> - 24.10.0.6.7.1
103+
- Creating signed spec
104+
- Initial Azure Linux import from NVIDIA (license: GPLv2)
105+
- License verified
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
#
2+
# Copyright (c) 2014 Mellanox Technologies. All rights reserved.
3+
#
4+
# This Software is licensed under one of the following licenses:
5+
#
6+
# 1) under the terms of the "Common Public License 1.0" a copy of which is
7+
# available from the Open Source Initiative, see
8+
# http://www.opensource.org/licenses/cpl.php.
9+
#
10+
# 2) under the terms of the "The BSD License" a copy of which is
11+
# available from the Open Source Initiative, see
12+
# http://www.opensource.org/licenses/bsd-license.php.
13+
#
14+
# 3) under the terms of the "GNU General Public License (GPL) Version 2" a
15+
# copy of which is available from the Open Source Initiative, see
16+
# http://www.opensource.org/licenses/gpl-license.php.
17+
#
18+
# Licensee has the right to choose one of the above licenses.
19+
#
20+
# Redistributions of source code must retain the above copyright
21+
# notice and one of the license notices.
22+
#
23+
# Redistributions in binary form must reproduce both the above copyright
24+
# notice, one of the license notices in the documentation
25+
# and/or other materials provided with the distribution.
26+
#
27+
#
28+
29+
%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers))
30+
%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers))
31+
%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1)
32+
33+
%global KVERSION %{target_kernel_version_full}
34+
35+
%{!?_name: %define _name iser}
36+
37+
Summary: %{_name} Driver
38+
Name: %{_name}
39+
Version: 24.10
40+
Release: 1%{?dist}
41+
License: GPLv2
42+
Url: http://www.mellanox.com
43+
Group: System Environment/Base
44+
45+
#
46+
# To populate these sources:
47+
# 1. Build the unsigned packages as normal
48+
# 2. Sign the desired binary
49+
# 3. Place the unsigned package and signed binary in this spec's folder
50+
# 4. Build this spec
51+
52+
Source0: %{name}-%{version}-%{release}.%{_arch}.rpm
53+
Source1: ib_iser.ko
54+
55+
Vendor: Microsoft Corporation
56+
Distribution: Azure Linux
57+
ExclusiveArch: x86_64
58+
59+
Requires: mlnx-ofa_kernel = %{_version}
60+
Requires: mlnx-ofa_kernel-modules = %{_version}
61+
Requires: kernel = %{target_kernel_version_full}
62+
Requires: kmod
63+
64+
%description
65+
iser signed kernel modules
66+
67+
%prep
68+
69+
%build
70+
71+
72+
%install
73+
rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot}
74+
75+
cp -r %{SOURCE1} %{buildroot}/lib/modules/%{KVERSION}/updates/iser/ib_iser.ko
76+
77+
%clean
78+
rm -rf %{buildroot}
79+
80+
%post
81+
if [ $1 -ge 1 ]; then # 1 : This package is being installed or reinstalled
82+
/sbin/depmod %{KVERSION}
83+
fi # 1 : closed
84+
# END of post
85+
86+
%postun
87+
/sbin/depmod %{KVERSION}
88+
89+
%files
90+
%defattr(-,root,root,-)
91+
%license %{_datadir}/licenses/%{name}/copyright
92+
/lib/modules/%{KVERSION}/updates/
93+
%config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf
94+
95+
96+
%changelog
97+
* Tue Dec 16 2024 Binu Jose Philip <bphilip@microsoft.com> - 24.10.0.6.7.1
98+
- Creating signed spec
99+
- License verified
100+
- Initial Azure Linux import from NVIDIA (license: GPLv2)
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
#
2+
# Copyright (c) 2014 Mellanox Technologies. All rights reserved.
3+
#
4+
# This Software is licensed under one of the following licenses:
5+
#
6+
# 1) under the terms of the "Common Public License 1.0" a copy of which is
7+
# available from the Open Source Initiative, see
8+
# http://www.opensource.org/licenses/cpl.php.
9+
#
10+
# 2) under the terms of the "The BSD License" a copy of which is
11+
# available from the Open Source Initiative, see
12+
# http://www.opensource.org/licenses/bsd-license.php.
13+
#
14+
# 3) under the terms of the "GNU General Public License (GPL) Version 2" a
15+
# copy of which is available from the Open Source Initiative, see
16+
# http://www.opensource.org/licenses/gpl-license.php.
17+
#
18+
# Licensee has the right to choose one of the above licenses.
19+
#
20+
# Redistributions of source code must retain the above copyright
21+
# notice and one of the license notices.
22+
#
23+
# Redistributions in binary form must reproduce both the above copyright
24+
# notice, one of the license notices in the documentation
25+
# and/or other materials provided with the distribution.
26+
#
27+
#
28+
29+
%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers))
30+
%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers))
31+
%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1)
32+
33+
%global KVERSION %{target_kernel_version_full}
34+
35+
%{!?_name: %define _name isert}
36+
37+
Summary: %{_name} Driver
38+
Name: %{_name}
39+
Version: 24.10
40+
Release: 1%{?dist}
41+
License: GPLv2
42+
Url: http://www.mellanox.com
43+
Group: System Environment/Base
44+
45+
#
46+
# To populate these sources:
47+
# 1. Build the unsigned packages as normal
48+
# 2. Sign the desired binary
49+
# 3. Place the unsigned package and signed binary in this spec's folder
50+
# 4. Build this spec
51+
52+
Source0: %{name}-%{version}-%{release}.%{_arch}.rpm
53+
Source1: ib_isert.ko
54+
55+
Vendor: Microsoft Corporation
56+
Distribution: Azure Linux
57+
ExclusiveArch: x86_64
58+
59+
Requires: mlnx-ofa_kernel = %{_version}
60+
Requires: mlnx-ofa_kernel-modules = %{_version}
61+
Requires: kernel = %{target_kernel_version_full}
62+
Requires: kmod
63+
64+
%description
65+
isert signed kernel modules
66+
67+
%prep
68+
69+
%build
70+
71+
72+
%install
73+
rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot}
74+
75+
cp -r %{SOURCE1} %{buildroot}/lib/modules/%{KVERSION}/updates/isert/ib_isert.ko
76+
77+
%clean
78+
rm -rf %{buildroot}
79+
80+
%post
81+
if [ $1 -ge 1 ]; then # 1 : This package is being installed or reinstalled
82+
/sbin/depmod %{KVERSION}
83+
fi # 1 : closed
84+
# END of post
85+
86+
%postun
87+
/sbin/depmod %{KVERSION}
88+
89+
%files
90+
%defattr(-,root,root,-)
91+
%license %{_datadir}/licenses/%{name}/copyright
92+
/lib/modules/%{KVERSION}/updates/
93+
%config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf
94+
95+
96+
%changelog
97+
* Tue Dec 16 2024 Binu Jose Philip <bphilip@microsoft.com> - 24.10.0.6.7.1
98+
- Creating signed spec
99+
- License verified
100+
- Initial Azure Linux import from NVIDIA (license: GPLv2)

0 commit comments

Comments
 (0)