From ce37cb5f38b7912027f42535193454247e98fff4 Mon Sep 17 00:00:00 2001 From: Binu Jose Philip Date: Sun, 15 Dec 2024 20:31:26 +0000 Subject: [PATCH 01/29] Adding mofed driver, dependencies and tools Infiniband is a requirement for AI/ML deployments for inter-GPU communication and scale out GPU clusters. HPC team built HPC azure linux image needs infiniband mofed drivers. Their major customer singularity is on a deadline to move from Ubuntu to azure linux for AI/ML workloads. All of the required sources are open source and have spec's which are already being used by NVIDIA. This PR brings to Azure Linux MOFED driver for infiniband driver and all dependencies to help use, manage and debug the stack. These modules have already been built, integrated into an HPC image and tested on an existing 16 mode cluster owned by HPC team. Performance characteristics are within specified tolerance limits. --- SPECS/fwctl/fwctl.signatures.json | 5 + SPECS/fwctl/fwctl.spec | 256 ++++++ SPECS/ibarr/ibarr.signatures.json | 5 + SPECS/ibarr/ibarr.spec | 60 ++ SPECS/ibsim/ibsim.signatures.json | 5 + SPECS/ibsim/ibsim.spec | 51 ++ SPECS/iser/iser.signatures.json | 5 + SPECS/iser/iser.spec | 250 ++++++ SPECS/isert/isert.signatures.json | 5 + SPECS/isert/isert.spec | 250 ++++++ SPECS/knem/knem.signatures.json | 5 + SPECS/knem/knem.spec | 286 +++++++ SPECS/mft_kernel/mft_kernel.signatures.json | 5 + SPECS/mft_kernel/mft_kernel.spec | 232 ++++++ .../mlnx-ethtool/mlnx-ethtool.signatures.json | 5 + SPECS/mlnx-ethtool/mlnx-ethtool.spec | 46 ++ .../mlnx-iproute2.signatures.json | 5 + SPECS/mlnx-iproute2/mlnx-iproute2.spec | 116 +++ .../mlnx-nfsrdma/mlnx-nfsrdma.signatures.json | 5 + SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec | 250 ++++++ .../mlnx-ofa_kernel.signatures.json | 5 + SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec | 765 ++++++++++++++++++ .../mlx-steering-dump.signatures.json | 5 + .../mlx-steering-dump/mlx-steering-dump.spec | 80 ++ SPECS/multiperf/multiperf.signatures.json | 5 + SPECS/multiperf/multiperf.spec | 44 + SPECS/rshim/rshim.signatures.json | 5 + SPECS/rshim/rshim.spec | 417 ++++++++++ SPECS/sockperf/sockperf.signatures.json | 5 + SPECS/sockperf/sockperf.spec | 88 ++ SPECS/xpmem-lib/xpmem-lib.signatures.json | 5 + SPECS/xpmem-lib/xpmem-lib.spec | 88 ++ SPECS/xpmem/xpmem.signatures.json | 5 + SPECS/xpmem/xpmem.spec | 246 ++++++ 34 files changed, 3610 insertions(+) create mode 100644 SPECS/fwctl/fwctl.signatures.json create mode 100644 SPECS/fwctl/fwctl.spec create mode 100644 SPECS/ibarr/ibarr.signatures.json create mode 100644 SPECS/ibarr/ibarr.spec create mode 100644 SPECS/ibsim/ibsim.signatures.json create mode 100644 SPECS/ibsim/ibsim.spec create mode 100644 SPECS/iser/iser.signatures.json create mode 100644 SPECS/iser/iser.spec create mode 100644 SPECS/isert/isert.signatures.json create mode 100644 SPECS/isert/isert.spec create mode 100644 SPECS/knem/knem.signatures.json create mode 100644 SPECS/knem/knem.spec create mode 100644 SPECS/mft_kernel/mft_kernel.signatures.json create mode 100644 SPECS/mft_kernel/mft_kernel.spec create mode 100644 SPECS/mlnx-ethtool/mlnx-ethtool.signatures.json create mode 100644 SPECS/mlnx-ethtool/mlnx-ethtool.spec create mode 100644 SPECS/mlnx-iproute2/mlnx-iproute2.signatures.json create mode 100644 SPECS/mlnx-iproute2/mlnx-iproute2.spec create mode 100644 SPECS/mlnx-nfsrdma/mlnx-nfsrdma.signatures.json create mode 100644 SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec create mode 100644 SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.signatures.json create mode 100644 SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec create mode 100644 SPECS/mlx-steering-dump/mlx-steering-dump.signatures.json create mode 100644 SPECS/mlx-steering-dump/mlx-steering-dump.spec create mode 100644 SPECS/multiperf/multiperf.signatures.json create mode 100644 SPECS/multiperf/multiperf.spec create mode 100644 SPECS/rshim/rshim.signatures.json create mode 100644 SPECS/rshim/rshim.spec create mode 100644 SPECS/sockperf/sockperf.signatures.json create mode 100644 SPECS/sockperf/sockperf.spec create mode 100644 SPECS/xpmem-lib/xpmem-lib.signatures.json create mode 100644 SPECS/xpmem-lib/xpmem-lib.spec create mode 100644 SPECS/xpmem/xpmem.signatures.json create mode 100644 SPECS/xpmem/xpmem.spec diff --git a/SPECS/fwctl/fwctl.signatures.json b/SPECS/fwctl/fwctl.signatures.json new file mode 100644 index 00000000000..e5d4ed40f30 --- /dev/null +++ b/SPECS/fwctl/fwctl.signatures.json @@ -0,0 +1,5 @@ +{ + "Signatures": { + "fwctl-24.10.tgz": "ec00a549851d9c506a8e2aed365db2506e3d8bb31dad970da82f8f665191deec" + } +} \ No newline at end of file diff --git a/SPECS/fwctl/fwctl.spec b/SPECS/fwctl/fwctl.spec new file mode 100644 index 00000000000..6faf1bb7286 --- /dev/null +++ b/SPECS/fwctl/fwctl.spec @@ -0,0 +1,256 @@ +# +# Copyright (c) 2024 Nvidia Inc. All rights reserved. +# +# This software is available to you under a choice of one of two +# licenses. You may choose to be licensed under the terms of the GNU +# General Public License (GPL) Version 2, available from the file +# COPYING in the main directory of this source tree, or the +# OpenIB.org BSD license below: +# +# Redistribution and use in source and binary forms, with or +# without modification, are permitted provided that the following +# conditions are met: +# +# - Redistributions of source code must retain the above +# copyright notice, this list of conditions and the following +# disclaimer. +# +# - Redistributions in binary form must reproduce the above +# copyright notice, this list of conditions and the following +# disclaimer in the documentation and/or other materials +# provided with the distribution. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS +# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. +# + +%{!?_name: %define _name fwctl} +%{!?_version: %define _version 24.10} +%{!?_release: %define _release OFED.24.10.0.6.7.1} + +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) + +%global KVERSION %{target_kernel_version_full} +%global K_SRC /lib/modules/%{target_kernel_version_full}/build + +# KMP is disabled by default +%{!?KMP: %global KMP 0} + +# take kernel version or default to uname -r +# %{!?KVERSION: %global KVERSION %(uname -r)} +%{!?KVERSION: %global KVERSION %{target_kernel_version_full}} +%global kernel_version %{KVERSION} +%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') +# take path to kernel sources if provided, otherwise look in default location (for non KMP rpms). +%{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} + +# define release version +%{!?src_release: %global src_release %{_release}_%{krelver}} +%if "%{KMP}" != "1" +%global _release1 %{src_release} +%else +%global _release1 %{_release} +%endif +%global _kmp_rel %{_release1}%{?_kmp_build_num}%{?_dist} + +Summary: %{_name} Driver +Name: %{_name} +Version: %{_version} +Release: 1_%{_release1}%{?_dist} +License: GPLv2 +Url: http://nvidia.com +Group: System Environment/Base +# Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/fwctl-24.10.tgz +Source: %{_name}-%{_version}.tgz +BuildRoot: /var/tmp/%{name}-%{version}-build +Vendor: Microsoft Corporation +Distribution: Azure Linux + +BuildRequires: gcc +BuildRequires: make +BuildRequires: kernel-devel = %{target_kernel_version_full} +BuildRequires: kernel-headers = %{target_kernel_version_full} +BuildRequires: binutils +BuildRequires: systemd +BuildRequires: kmod +BuildRequires: mlnx-ofa_kernel-devel = %{_version} +BuildRequires: mlnx-ofa_kernel-source = %{_version} + +Requires: mlnx-ofa_kernel = %{_version} +Requires: mlnx-ofa_kernel-modules = %{_version} +Requires: kernel = %{target_kernel_version_full} +Requires: kmod + +%description +%{name} kernel modules + +# build KMP rpms? +%if "%{KMP}" == "1" +%global kernel_release() $(make -s -C %{1} kernelrelease M=$PWD) +BuildRequires: %kernel_module_package_buildreqs +%(mkdir -p %{buildroot}) +%(echo '%defattr (-,root,root)' > %{buildroot}/file_list) +%(echo '/lib/modules/%2-%1' >> %{buildroot}/file_list) +%(echo '%config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*-%1.conf' >> %{buildroot}/file_list) +%{kernel_module_package -f %{buildroot}/file_list -x xen -r %{_kmp_rel} } +%else +%global kernel_source() %{K_SRC} +%global kernel_release() %{KVERSION} +%global flavors_to_build default +%endif + +# +# setup module sign scripts if paths to the keys are given +# +%global WITH_MOD_SIGN %(if ( test -f "$MODULE_SIGN_PRIV_KEY" && test -f "$MODULE_SIGN_PUB_KEY" ); \ + then \ + echo -n '1'; \ + else \ + echo -n '0'; fi) + +%if "%{WITH_MOD_SIGN}" == "1" +# call module sign script +%global __modsign_install_post \ + %{_builddir}/%{name}-%{version}/source/tools/sign-modules %{buildroot}/lib/modules/ %{kernel_source default} || exit 1 \ +%{nil} + +%global __debug_package 1 +%global buildsubdir %{name}-%{version} +# Disgusting hack alert! We need to ensure we sign modules *after* all +# invocations of strip occur, which is in __debug_install_post if +# find-debuginfo.sh runs, and __os_install_post if not. +# +%global __spec_install_post \ + %{?__debug_package:%{__debug_install_post}} \ + %{__arch_install_post} \ + %{__os_install_post} \ + %{__modsign_install_post} \ +%{nil} + +%endif # end of setup module sign scripts +# + +%if "%{_vendor}" == "suse" +%debug_package +%endif + +%if 0%{?anolis} == 8 +%global __find_requires %{nil} +%endif + +# set modules dir +%if "%{_vendor}" == "redhat" || ("%{_vendor}" == "openEuler") +%if 0%{?fedora} +%global install_mod_dir updates/%{name} +%else +%global install_mod_dir extra/%{name} +%endif +%endif + +%if "%{_vendor}" == "suse" +%global install_mod_dir updates/%{name} +%endif + +%{!?install_mod_dir: %global install_mod_dir updates/%{name}} + +%prep +%setup +set -- * +mkdir source +mv "$@" source/ +mkdir obj + +%build +export EXTRA_CFLAGS='-DVERSION=\"%version\"' +export INSTALL_MOD_DIR=%{install_mod_dir} +export CONF_OPTIONS="%{configure_options}" +for flavor in %{flavors_to_build}; do + export K_BUILD=%{kernel_source $flavor} + export KVER=%{kernel_release $K_BUILD} + export LIB_MOD_DIR=/lib/modules/$KVER/$INSTALL_MOD_DIR + rm -rf obj/$flavor + cp -r source obj/$flavor + cd $PWD/obj/$flavor + make + cd - +done + +%install +export INSTALL_MOD_PATH=%{buildroot} +export INSTALL_MOD_DIR=%{install_mod_dir} +export PREFIX=%{_prefix} +for flavor in %flavors_to_build; do + export K_BUILD=%{kernel_source $flavor} + export KVER=%{kernel_release $K_BUILD} + cd $PWD/obj/$flavor + make install KERNELRELEASE=$KVER + # Cleanup unnecessary kernel-generated module dependency files. + find $INSTALL_MOD_PATH/lib/modules -iname 'modules.*' -exec rm {} \; + cd - +done + +# Set the module(s) to be executable, so that they will be stripped when packaged. +find %{buildroot} \( -type f -name '*.ko' -o -name '*ko.gz' \) -exec %{__chmod} u+x \{\} \; + +%{__install} -d %{buildroot}%{_sysconfdir}/depmod.d/ +for module in `find %{buildroot}/ -name '*.ko' -o -name '*.ko.gz' | sort` +do +ko_name=${module##*/} +mod_name=${ko_name/.ko*/} +mod_path=${module/*\/%{name}} +mod_path=${mod_path/\/${ko_name}} +%if "%{_vendor}" == "suse" + for flavor in %{flavors_to_build}; do + if [[ $module =~ $flavor ]] || [ "X%{KMP}" != "X1" ];then + echo "override ${mod_name} * updates/%{name}${mod_path}" >> %{buildroot}%{_sysconfdir}/depmod.d/zz02-%{name}-${mod_name}-$flavor.conf + fi + done +%else + %if 0%{?fedora} + echo "override ${mod_name} * updates/%{name}${mod_path}" >> %{buildroot}%{_sysconfdir}/depmod.d/zz02-%{name}-${mod_name}.conf + %else + %if "%{_vendor}" == "redhat" || ("%{_vendor}" == "openEuler") + echo "override ${mod_name} * weak-updates/%{name}${mod_path}" >> %{buildroot}%{_sysconfdir}/depmod.d/zz02-%{name}-${mod_name}.conf + %endif + echo "override ${mod_name} * extra/%{name}${mod_path}" >> %{buildroot}%{_sysconfdir}/depmod.d/zz02-%{name}-${mod_name}.conf + %endif +%endif +done + + +%clean +rm -rf %{buildroot} + +%post +if [ $1 -ge 1 ]; then # 1 : This package is being installed or reinstalled + /sbin/depmod %{KVERSION} +fi # 1 : closed +# END of post + +%postun +/sbin/depmod %{KVERSION} + +%if "%{KMP}" != "1" +%files +%defattr(-,root,root,-) +/lib/modules/%{KVERSION}/%{install_mod_dir}/ +%config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf +%endif + +%changelog +* Tue Dec 3 2024 Binu Jose Philip +- Moving to proprietary repo and adding minor version prefix + +* Thu Nov 07 2024 Suresh Babu Chalamalasetty +- Initial version Azure Linux + +* Mon Jul 29 2024 +- Initial packaging diff --git a/SPECS/ibarr/ibarr.signatures.json b/SPECS/ibarr/ibarr.signatures.json new file mode 100644 index 00000000000..741df92c21e --- /dev/null +++ b/SPECS/ibarr/ibarr.signatures.json @@ -0,0 +1,5 @@ +{ + "Signatures": { + "ibarr-0.1.3.tar.gz": "db24745abfd49af9ed2b3f1990b9b00e0bd51258c282caa6fa3cf420f90b8b25" + } +} \ No newline at end of file diff --git a/SPECS/ibarr/ibarr.spec b/SPECS/ibarr/ibarr.spec new file mode 100644 index 00000000000..266b2220e4e --- /dev/null +++ b/SPECS/ibarr/ibarr.spec @@ -0,0 +1,60 @@ +Name: ibarr +Version: 0.1.3 +Release: 2%{?dist}.2410068 +Summary: Nvidia address and route userspace resolution services for Infiniband +Vendor: Microsoft Corporation +Distribution: Azure Linux +# Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/ibarr-0.1.3.tar.gz +Source0: %{name}-%{version}.tar.gz +Group: Applications/System +License: (GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause + +BuildRequires: cmake +BuildRequires: gcc +BuildRequires: libnl3-devel +BuildRequires: rdma-core-devel + +# The SLES cmake macros do more than the RHEL ones, and have an extra +# cmake_install with a 'cd build' inside. +%if %{undefined cmake_install} +%global cmake_install %make_install +%endif +%if %{undefined cmake_build} + %if %{defined make_jobs} + # SLES12 + %global cmake_build %make_jobs + %else + # RHEL < 9, Fedora < ?? + %global cmake_build %make_build + %endif +%endif + +%description +a userspace application that interacts over NetLink with the Linux RDMA +subsystem and provides 2 services: ip2gid (address resolution) and gid2lid +(PathRecord resolution). + +%prep +%setup -q + +%build +%cmake +%cmake_build + +%install +%cmake_install + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%doc README.md +%{_bindir}/ibarr +# FIXME: should be in the standard directory, under _prefix. +/lib/systemd/system/%{name}.service + +%changelog +* Tue Dec 3 2024 Binu Jose Philip +- Moving to proprietary repo and add minor version prefix +* Thu Nov 07 2024 Suresh Babu Chalamalasetty +- Initial version Azure Linux diff --git a/SPECS/ibsim/ibsim.signatures.json b/SPECS/ibsim/ibsim.signatures.json new file mode 100644 index 00000000000..bd36bdca1e6 --- /dev/null +++ b/SPECS/ibsim/ibsim.signatures.json @@ -0,0 +1,5 @@ +{ + "Signatures": { + "ibsim-0.12.tar.gz": "f137872bf1ec1ca56c9f301ddef237a5f9c4111d6b83b4be853b58c054e454a3" + } +} \ No newline at end of file diff --git a/SPECS/ibsim/ibsim.spec b/SPECS/ibsim/ibsim.spec new file mode 100644 index 00000000000..8dffec9cf1f --- /dev/null +++ b/SPECS/ibsim/ibsim.spec @@ -0,0 +1,51 @@ + +%define RELEASE 2 +%define rel %{?CUSTOM_RELEASE}%{!?CUSTOM_RELEASE:%RELEASE} + +Summary: InfiniBand fabric simulator for management +Name: ibsim +Version: 0.12 +Release: %rel.2410068%{?dist} +License: GPLv2 or BSD +Group: System Environment/Libraries +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +# Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/ibsim-0.12.tar.gz +Source: ibsim-%{version}.tar.gz +Url: https://github.com/linux-rdma/ibsim + +BuildRequires: libibmad-devel +BuildRequires: libibumad-devel +BuildRequires: gcc + +%description +ibsim provides simulation of infiniband fabric for using with +OFA OpenSM, diagnostic and management tools. + +%prep +%setup -q + +%build +export CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" +export LDFLAGS="${LDFLAGS:-${RPM_OPT_FLAGS}}" +make prefix=%_prefix libpath=%_libdir binpath=%_bindir %{?_smp_mflags} + +%install +export CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" +export LDFLAGS="${LDFLAGS:-${RPM_OPT_FLAGS}}" +make DESTDIR=${RPM_BUILD_ROOT} prefix=%_prefix libpath=%_libdir binpath=%_bindir install + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%{_libdir}/umad2sim/libumad2sim*.so* +%{_bindir}/ibsim +%{_bindir}/ibsim-run +%doc README COPYING TODO net-examples scripts + +%changelog +* Tue Dec 3 2024 Binu Jose Philip +- Moving to proprietary repo +* Thu Nov 07 2024 Suresh Babu Chalamalasetty +- Initial version Azure Linux diff --git a/SPECS/iser/iser.signatures.json b/SPECS/iser/iser.signatures.json new file mode 100644 index 00000000000..7091fd70f69 --- /dev/null +++ b/SPECS/iser/iser.signatures.json @@ -0,0 +1,5 @@ +{ + "Signatures": { + "iser-24.10.tgz": "d9c1344146697664a32d47e933b1ab26d4ba1899ea5936c2b6216316a1d974a5" + } +} \ No newline at end of file diff --git a/SPECS/iser/iser.spec b/SPECS/iser/iser.spec new file mode 100644 index 00000000000..4c006931c42 --- /dev/null +++ b/SPECS/iser/iser.spec @@ -0,0 +1,250 @@ +# +# Copyright (c) 2014 Mellanox Technologies. All rights reserved. +# +# This Software is licensed under one of the following licenses: +# +# 1) under the terms of the "Common Public License 1.0" a copy of which is +# available from the Open Source Initiative, see +# http://www.opensource.org/licenses/cpl.php. +# +# 2) under the terms of the "The BSD License" a copy of which is +# available from the Open Source Initiative, see +# http://www.opensource.org/licenses/bsd-license.php. +# +# 3) under the terms of the "GNU General Public License (GPL) Version 2" a +# copy of which is available from the Open Source Initiative, see +# http://www.opensource.org/licenses/gpl-license.php. +# +# Licensee has the right to choose one of the above licenses. +# +# Redistributions of source code must retain the above copyright +# notice and one of the license notices. +# +# Redistributions in binary form must reproduce both the above copyright +# notice, one of the license notices in the documentation +# and/or other materials provided with the distribution. +# +# + +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) + +%global KVERSION %{target_kernel_version_full} +%global K_SRC /lib/modules/%{target_kernel_version_full}/build + +%{!?_name: %define _name iser} +%{!?_version: %define _version 24.10} +%{!?_release: %define _release OFED.24.10.0.6.7.1} + +# KMP is disabled by default +%{!?KMP: %global KMP 0} + +# take kernel version or default to uname -r +# %{!?KVERSION: %global KVERSION %(uname -r)} +%{!?KVERSION: %global KVERSION %{target_kernel_version_full}} +%global kernel_version %{KVERSION} +%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') +# take path to kernel sources if provided, otherwise look in default location (for non KMP rpms). +# %{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} + +# define release version +%{!?src_release: %global src_release %{_release}_%{krelver}} +%if "%{KMP}" != "1" +%global _release1 %{src_release} +%else +%global _release1 %{_release} +%endif +%global _kmp_rel %{_release1}%{?_kmp_build_num}%{?_dist} + +Summary: %{_name} Driver +Name: %{_name} +Version: %{_version} +Release: 1_%{_release1}%{?_dist} +License: GPLv2 +Url: http://www.mellanox.com +Group: System Environment/Base +# Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/iser-24.10.tgz +Source: iser-%{_version}.tgz +BuildRoot: /var/tmp/%{name}-%{version}-build +Vendor: Microsoft Corporation +Distribution: Azure Linux + +BuildRequires: gcc +BuildRequires: make +BuildRequires: kernel-devel = %{target_kernel_version_full} +BuildRequires: kernel-headers = %{target_kernel_version_full} +BuildRequires: binutils +BuildRequires: systemd +BuildRequires: kmod +BuildRequires: mlnx-ofa_kernel-devel = %{_version} +BuildRequires: mlnx-ofa_kernel-source = %{_version} + +Requires: mlnx-ofa_kernel = %{_version} +Requires: mlnx-ofa_kernel-modules = %{_version} +Requires: kernel = %{target_kernel_version_full} +Requires: kmod + +%description +%{name} kernel modules + +# build KMP rpms? +%if "%{KMP}" == "1" +%global kernel_release() $(make -s -C %{1} kernelrelease M=$PWD) +BuildRequires: %kernel_module_package_buildreqs +%(mkdir -p %{buildroot}) +%(echo '%defattr (-,root,root)' > %{buildroot}/file_list) +%(echo '/lib/modules/%2-%1' >> %{buildroot}/file_list) +%(echo '%config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*-%1.conf' >> %{buildroot}/file_list) +%{kernel_module_package -f %{buildroot}/file_list -x xen -r %{_kmp_rel} } +%else +%global kernel_source() %{K_SRC} +%global kernel_release() %{KVERSION} +%global flavors_to_build default +%endif + +# +# setup module sign scripts if paths to the keys are given +# +%global WITH_MOD_SIGN %(if ( test -f "$MODULE_SIGN_PRIV_KEY" && test -f "$MODULE_SIGN_PUB_KEY" ); \ + then \ + echo -n '1'; \ + else \ + echo -n '0'; fi) + +%if "%{WITH_MOD_SIGN}" == "1" +# call module sign script +%global __modsign_install_post \ + %{_builddir}/%{name}-%{version}/source/tools/sign-modules %{buildroot}/lib/modules/ %{kernel_source default} || exit 1 \ +%{nil} + +%global __debug_package 1 +%global buildsubdir %{name}-%{version} +# Disgusting hack alert! We need to ensure we sign modules *after* all +# invocations of strip occur, which is in __debug_install_post if +# find-debuginfo.sh runs, and __os_install_post if not. +# +%global __spec_install_post \ + %{?__debug_package:%{__debug_install_post}} \ + %{__arch_install_post} \ + %{__os_install_post} \ + %{__modsign_install_post} \ +%{nil} + +%endif # end of setup module sign scripts +# + +%if "%{_vendor}" == "suse" +%debug_package +%endif + +%if 0%{?anolis} == 8 +%global __find_requires %{nil} +%endif + +# set modules dir +%if "%{_vendor}" == "redhat" || ("%{_vendor}" == "openEuler") +%if 0%{?fedora} +%global install_mod_dir updates/%{name} +%else +%global install_mod_dir extra/%{name} +%endif +%endif + +%if "%{_vendor}" == "suse" +%global install_mod_dir updates/%{name} +%endif + +%{!?install_mod_dir: %global install_mod_dir updates/%{name}} + +%prep +%setup +set -- * +mkdir source +mv "$@" source/ +mkdir obj + +%build +export EXTRA_CFLAGS='-DVERSION=\"%version\"' +export INSTALL_MOD_DIR=%{install_mod_dir} +export CONF_OPTIONS="%{configure_options}" +for flavor in %{flavors_to_build}; do + export K_BUILD=%{kernel_source $flavor} + export KVER=%{kernel_release $K_BUILD} + export LIB_MOD_DIR=/lib/modules/$KVER/$INSTALL_MOD_DIR + rm -rf obj/$flavor + cp -r source obj/$flavor + cd $PWD/obj/$flavor + make + cd - +done + +%install +export INSTALL_MOD_PATH=%{buildroot} +export INSTALL_MOD_DIR=%{install_mod_dir} +export PREFIX=%{_prefix} +for flavor in %flavors_to_build; do + export K_BUILD=%{kernel_source $flavor} + export KVER=%{kernel_release $K_BUILD} + cd $PWD/obj/$flavor + make install KERNELRELEASE=$KVER + # Cleanup unnecessary kernel-generated module dependency files. + find $INSTALL_MOD_PATH/lib/modules -iname 'modules.*' -exec rm {} \; + cd - +done + +# Set the module(s) to be executable, so that they will be stripped when packaged. +find %{buildroot} \( -type f -name '*.ko' -o -name '*ko.gz' \) -exec %{__chmod} u+x \{\} \; + +%{__install} -d %{buildroot}%{_sysconfdir}/depmod.d/ +for module in `find %{buildroot}/ -name '*.ko' -o -name '*.ko.gz' | sort` +do +ko_name=${module##*/} +mod_name=${ko_name/.ko*/} +mod_path=${module/*\/%{name}} +mod_path=${mod_path/\/${ko_name}} +%if "%{_vendor}" == "suse" + for flavor in %{flavors_to_build}; do + if [[ $module =~ $flavor ]] || [ "X%{KMP}" != "X1" ];then + echo "override ${mod_name} * updates/%{name}${mod_path}" >> %{buildroot}%{_sysconfdir}/depmod.d/zz02-%{name}-${mod_name}-$flavor.conf + fi + done +%else + %if 0%{?fedora} + echo "override ${mod_name} * updates/%{name}${mod_path}" >> %{buildroot}%{_sysconfdir}/depmod.d/zz02-%{name}-${mod_name}.conf + %else + %if "%{_vendor}" == "redhat" || ("%{_vendor}" == "openEuler") + echo "override ${mod_name} * weak-updates/%{name}${mod_path}" >> %{buildroot}%{_sysconfdir}/depmod.d/zz02-%{name}-${mod_name}.conf + %endif + echo "override ${mod_name} * extra/%{name}${mod_path}" >> %{buildroot}%{_sysconfdir}/depmod.d/zz02-%{name}-${mod_name}.conf + %endif +%endif +done + + +%clean +rm -rf %{buildroot} + +%post +if [ $1 -ge 1 ]; then # 1 : This package is being installed or reinstalled + /sbin/depmod %{KVERSION} +fi # 1 : closed +# END of post + +%postun +/sbin/depmod %{KVERSION} + +%if "%{KMP}" != "1" +%files +%defattr(-,root,root,-) +/lib/modules/%{KVERSION}/%{install_mod_dir}/ +%config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf +%endif + +%changelog +* Tue Dec 3 2024 Binu Jose Philip +- Moving to proprietary repo and add minor version prefix +* Thu Nov 07 2024 Suresh Babu Chalamalasetty +- Initial version Azure Linux +* Thu Feb 20 2014 Alaa Hleihel +- Initial packaging diff --git a/SPECS/isert/isert.signatures.json b/SPECS/isert/isert.signatures.json new file mode 100644 index 00000000000..616d6a2865f --- /dev/null +++ b/SPECS/isert/isert.signatures.json @@ -0,0 +1,5 @@ +{ + "Signatures": { + "isert-24.10.tgz": "ee91338b063800563b7a1cc1adfb29ff8913b17b0bc941a24995211f3268d33a" + } +} \ No newline at end of file diff --git a/SPECS/isert/isert.spec b/SPECS/isert/isert.spec new file mode 100644 index 00000000000..cb96f411189 --- /dev/null +++ b/SPECS/isert/isert.spec @@ -0,0 +1,250 @@ +# +# Copyright (c) 2014 Mellanox Technologies. All rights reserved. +# +# This Software is licensed under one of the following licenses: +# +# 1) under the terms of the "Common Public License 1.0" a copy of which is +# available from the Open Source Initiative, see +# http://www.opensource.org/licenses/cpl.php. +# +# 2) under the terms of the "The BSD License" a copy of which is +# available from the Open Source Initiative, see +# http://www.opensource.org/licenses/bsd-license.php. +# +# 3) under the terms of the "GNU General Public License (GPL) Version 2" a +# copy of which is available from the Open Source Initiative, see +# http://www.opensource.org/licenses/gpl-license.php. +# +# Licensee has the right to choose one of the above licenses. +# +# Redistributions of source code must retain the above copyright +# notice and one of the license notices. +# +# Redistributions in binary form must reproduce both the above copyright +# notice, one of the license notices in the documentation +# and/or other materials provided with the distribution. +# +# + +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) + +%global KVERSION %{target_kernel_version_full} +%global K_SRC /lib/modules/%{target_kernel_version_full}/build + +%{!?_name: %define _name isert} +%{!?_version: %define _version 24.10} +%{!?_release: %define _release OFED.24.10.0.6.7.1} + +# KMP is disabled by default +%{!?KMP: %global KMP 0} + +# take kernel version or default to uname -r +# %{!?KVERSION: %global KVERSION %(uname -r)} +%{!?KVERSION: %global KVERSION %{target_kernel_version_full}} +%global kernel_version %{KVERSION} +%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') +# take path to kernel sources if provided, otherwise look in default location (for non KMP rpms). +# %{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} + +# define release version +%{!?src_release: %global src_release %{_release}_%{krelver}} +%if "%{KMP}" != "1" +%global _release1 %{src_release} +%else +%global _release1 %{_release} +%endif +%global _kmp_rel %{_release1}%{?_kmp_build_num}%{?_dist} + +Summary: %{_name} Driver +Name: %{_name} +Version: %{_version} +Release: 1_%{_release1}%{?_dist} +License: GPLv2 +Url: http://www.mellanox.com +Group: System Environment/Base +# Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/isert-24.10.tgz +Source: isert-%{_version}.tgz +BuildRoot: /var/tmp/%{name}-%{version}-build +Vendor: Microsoft Corporation +Distribution: Azure Linux + +BuildRequires: gcc +BuildRequires: make +BuildRequires: kernel-devel = %{target_kernel_version_full} +BuildRequires: kernel-headers = %{target_kernel_version_full} +BuildRequires: binutils +BuildRequires: systemd +BuildRequires: kmod +BuildRequires: mlnx-ofa_kernel-devel = %{_version} +BuildRequires: mlnx-ofa_kernel-source = %{_version} + +Requires: mlnx-ofa_kernel = %{_version} +Requires: mlnx-ofa_kernel-modules = %{_version} +Requires: kernel = %{target_kernel_version_full} +Requires: kmod + +%description +%{name} kernel modules + +# build KMP rpms? +%if "%{KMP}" == "1" +%global kernel_release() $(make -s -C %{1} kernelrelease M=$PWD) +BuildRequires: %kernel_module_package_buildreqs +%(mkdir -p %{buildroot}) +%(echo '%defattr (-,root,root)' > %{buildroot}/file_list) +%(echo '/lib/modules/%2-%1' >> %{buildroot}/file_list) +%(echo '%config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*-%1.conf' >> %{buildroot}/file_list) +%{kernel_module_package -f %{buildroot}/file_list -x xen -r %{_kmp_rel} } +%else +%global kernel_source() %{K_SRC} +%global kernel_release() %{KVERSION} +%global flavors_to_build default +%endif + +# +# setup module sign scripts if paths to the keys are given +# +%global WITH_MOD_SIGN %(if ( test -f "$MODULE_SIGN_PRIV_KEY" && test -f "$MODULE_SIGN_PUB_KEY" ); \ + then \ + echo -n '1'; \ + else \ + echo -n '0'; fi) + +%if "%{WITH_MOD_SIGN}" == "1" +# call module sign script +%global __modsign_install_post \ + %{_builddir}/%{name}-%{version}/source/tools/sign-modules %{buildroot}/lib/modules/ %{kernel_source default} || exit 1 \ +%{nil} + +%global __debug_package 1 +%global buildsubdir %{name}-%{version} +# Disgusting hack alert! We need to ensure we sign modules *after* all +# invocations of strip occur, which is in __debug_install_post if +# find-debuginfo.sh runs, and __os_install_post if not. +# +%global __spec_install_post \ + %{?__debug_package:%{__debug_install_post}} \ + %{__arch_install_post} \ + %{__os_install_post} \ + %{__modsign_install_post} \ +%{nil} + +%endif # end of setup module sign scripts +# + +%if "%{_vendor}" == "suse" +%debug_package +%endif + +%if 0%{?anolis} == 8 +%global __find_requires %{nil} +%endif + +# set modules dir +%if "%{_vendor}" == "redhat" || ("%{_vendor}" == "openEuler") +%if 0%{?fedora} +%global install_mod_dir updates/%{name} +%else +%global install_mod_dir extra/%{name} +%endif +%endif + +%if "%{_vendor}" == "suse" +%global install_mod_dir updates/%{name} +%endif + +%{!?install_mod_dir: %global install_mod_dir updates/%{name}} + +%prep +%setup +set -- * +mkdir source +mv "$@" source/ +mkdir obj + +%build +export EXTRA_CFLAGS='-DVERSION=\"%version\"' +export INSTALL_MOD_DIR=%{install_mod_dir} +export CONF_OPTIONS="%{configure_options}" +for flavor in %{flavors_to_build}; do + export K_BUILD=%{kernel_source $flavor} + export KVER=%{kernel_release $K_BUILD} + export LIB_MOD_DIR=/lib/modules/$KVER/$INSTALL_MOD_DIR + rm -rf obj/$flavor + cp -r source obj/$flavor + cd $PWD/obj/$flavor + make + cd - +done + +%install +export INSTALL_MOD_PATH=%{buildroot} +export INSTALL_MOD_DIR=%{install_mod_dir} +export PREFIX=%{_prefix} +for flavor in %flavors_to_build; do + export K_BUILD=%{kernel_source $flavor} + export KVER=%{kernel_release $K_BUILD} + cd $PWD/obj/$flavor + make install KERNELRELEASE=$KVER + # Cleanup unnecessary kernel-generated module dependency files. + find $INSTALL_MOD_PATH/lib/modules -iname 'modules.*' -exec rm {} \; + cd - +done + +# Set the module(s) to be executable, so that they will be stripped when packaged. +find %{buildroot} \( -type f -name '*.ko' -o -name '*ko.gz' \) -exec %{__chmod} u+x \{\} \; + +%{__install} -d %{buildroot}%{_sysconfdir}/depmod.d/ +for module in `find %{buildroot}/ -name '*.ko' -o -name '*.ko.gz' | sort` +do +ko_name=${module##*/} +mod_name=${ko_name/.ko*/} +mod_path=${module/*\/%{name}} +mod_path=${mod_path/\/${ko_name}} +%if "%{_vendor}" == "suse" + for flavor in %{flavors_to_build}; do + if [[ $module =~ $flavor ]] || [ "X%{KMP}" != "X1" ];then + echo "override ${mod_name} * updates/%{name}${mod_path}" >> %{buildroot}%{_sysconfdir}/depmod.d/zz02-%{name}-${mod_name}-$flavor.conf + fi + done +%else + %if 0%{?fedora} + echo "override ${mod_name} * updates/%{name}${mod_path}" >> %{buildroot}%{_sysconfdir}/depmod.d/zz02-%{name}-${mod_name}.conf + %else + %if "%{_vendor}" == "redhat" || ("%{_vendor}" == "openEuler") + echo "override ${mod_name} * weak-updates/%{name}${mod_path}" >> %{buildroot}%{_sysconfdir}/depmod.d/zz02-%{name}-${mod_name}.conf + %endif + echo "override ${mod_name} * extra/%{name}${mod_path}" >> %{buildroot}%{_sysconfdir}/depmod.d/zz02-%{name}-${mod_name}.conf + %endif +%endif +done + + +%clean +rm -rf %{buildroot} + +%post +if [ $1 -ge 1 ]; then # 1 : This package is being installed or reinstalled + /sbin/depmod %{KVERSION} +fi # 1 : closed +# END of post + +%postun +/sbin/depmod %{KVERSION} + +%if "%{KMP}" != "1" +%files +%defattr(-,root,root,-) +/lib/modules/%{KVERSION}/%{install_mod_dir}/ +%config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf +%endif + +%changelog +* Tue Dec 3 2024 Binu Jose Philip +- Moving to proprietary repo and add minor version prefix +* Thu Nov 07 2024 Suresh Babu Chalamalasetty +- Initial version Azure Linux +* Thu Feb 20 2014 Alaa Hleihel +- Initial packaging diff --git a/SPECS/knem/knem.signatures.json b/SPECS/knem/knem.signatures.json new file mode 100644 index 00000000000..d2d2c1af0c6 --- /dev/null +++ b/SPECS/knem/knem.signatures.json @@ -0,0 +1,5 @@ +{ + "Signatures": { + "knem-1.1.4.90mlnx3.tar.gz": "69e917448e76f402890d5e43065ab1afe5b222a678fa0c3f7b61bacde294f053" + } +} \ No newline at end of file diff --git a/SPECS/knem/knem.spec b/SPECS/knem/knem.spec new file mode 100644 index 00000000000..5b894f1defc --- /dev/null +++ b/SPECS/knem/knem.spec @@ -0,0 +1,286 @@ +# Copyright © INRIA 2009-2010 +# Brice Goglin +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. The name of the author may not be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# KMP is disabled by default +%{!?KMP: %global KMP 0} + +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) + +%global KVERSION %{target_kernel_version_full} +%global K_SRC /lib/modules/%{target_kernel_version_full}/build + +%{!?_release: %global _release OFED.23.10.0.2.1.1} +# %{!?KVERSION: %global KVERSION %(uname -r)} +%global kernel_version %{KVERSION} +%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') +%{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} +%global _kmp_rel %{_release}%{?_kmp_build_num}%{?_dist} +%global IS_RHEL_VENDOR "%{_vendor}" == "redhat" || ("%{_vendor}" == "bclinux") || ("%{_vendor}" == "openEuler") +%global KMOD_PREAMBLE "%{_vendor}" != "openEuler" + +# set package name +%{!?_name: %global _name knem} +%global non_kmp_pname %{_name}-modules + +Summary: KNEM: High-Performance Intra-Node MPI Communication +Name: %{_name} +Version: 1.1.4.90mlnx3 +Release: 1_%{_release}%{?_dist} +Provides: knem-mlnx = %{version}-%{release} +Obsoletes: knem-mlnx < %{version}-%{release} +License: BSD and GPLv2 +Group: System Environment/Libraries +Vendor: Microsoft Corporation +Distribution: Azure Linux +# Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/knem-1.1.4.90mlnx3.tar.gz +Source0: knem-%{version}.tar.gz +BuildRoot: /var/tmp/%{name}-%{version}-build + +BuildRequires: gcc +BuildRequires: make +BuildRequires: kernel-devel = %{target_kernel_version_full} +BuildRequires: kernel-headers = %{target_kernel_version_full} +BuildRequires: binutils +BuildRequires: systemd +BuildRequires: kmod + +Requires: kernel = %{target_kernel_version_full} +Requires: kmod + + +%description +KNEM is a Linux kernel module enabling high-performance intra-node MPI communication for large messages. KNEM offers support for asynchronous and vectorial data transfers as well as offloading memory copies on to Intel I/OAT hardware. +See http://knem.gitlabpages.inria.fr for details. + +%global debug_package %{nil} + +# build KMP rpms? +%if "%{KMP}" == "1" +%global kernel_release() $(make -C %{1} M=$PWD kernelrelease | grep -v make) +BuildRequires: %kernel_module_package_buildreqs +# prep file list for kmp rpm +%(cat > %{_builddir}/kmp.files << EOF +%defattr(644,root,root,755) +/lib/modules/%2-%1 +%if %{IS_RHEL_VENDOR} +%config(noreplace) %{_sysconfdir}/depmod.d/%{_name}.conf +%endif +EOF) +%(cat > %{_builddir}/preamble << EOF +Obsoletes: kmod-knem-mlnx < %{version}-%{release} +Obsoletes: knem-mlnx-kmp-default < %{version}-%{release} +Obsoletes: knem-mlnx-kmp-trace < %{version}-%{release} +Obsoletes: knem-mlnx-kmp-xen < %{version}-%{release} +Obsoletes: knem-mlnx-kmp-trace < %{version}-%{release} +Obsoletes: knem-mlnx-kmp-ppc64 < %{version}-%{release} +Obsoletes: knem-mlnx-kmp-ppc < %{version}-%{release} +Obsoletes: knem-mlnx-kmp-smp < %{version}-%{release} +Obsoletes: knem-mlnx-kmp-pae < %{version}-%{release} +EOF) +%if %KMOD_PREAMBLE +%kernel_module_package -f %{_builddir}/kmp.files -r %{_kmp_rel} -p %{_builddir}/preamble +%else +%kernel_module_package -f %{_builddir}/kmp.files -r %{_kmp_rel} +%endif +%else # not KMP +%global kernel_source() %{K_SRC} +%global kernel_release() %{KVERSION} +%global flavors_to_build default + +%package -n %{non_kmp_pname} +Release: %{_release}.kver.%{krelver} +Summary: KNEM: High-Performance Intra-Node MPI Communication +Group: System Environment/Libraries +%description -n %{non_kmp_pname} +KNEM is a Linux kernel module enabling high-performance intra-node MPI communication for large messages. KNEM offers support for asynchronous and vectorial data transfers as well as loading memory copies on to Intel I/OAT hardware. +See http://runtime.bordeaux.inria.fr/knem/ for details. +%endif #end if "%{KMP}" == "1" + +# +# setup module sign scripts if paths to the keys are given +# +%global WITH_MOD_SIGN %(if ( test -f "$MODULE_SIGN_PRIV_KEY" && test -f "$MODULE_SIGN_PUB_KEY" ); \ + then \ + echo -n '1'; \ + else \ + echo -n '0'; fi) + +%if "%{WITH_MOD_SIGN}" == "1" +# call module sign script +%global __modsign_install_post \ + $RPM_BUILD_DIR/knem-%{version}/source/tools/sign-modules $RPM_BUILD_ROOT/lib/modules/ %{kernel_source default} || exit 1 \ +%{nil} + +# Disgusting hack alert! We need to ensure we sign modules *after* all +# invocations of strip occur, which is in __debug_install_post if +# find-debuginfo.sh runs, and __os_install_post if not. +# +%global __spec_install_post \ + %{?__debug_package:%{__debug_install_post}} \ + %{__arch_install_post} \ + %{__os_install_post} \ + %{__modsign_install_post} \ +%{nil} + +%endif # end of setup module sign scripts +# + +%if "%{_vendor}" == "suse" +%global install_mod_dir updates +%endif + + +%global install_mod_dir extra/%{_name} +%global __find_requires %{nil} + +%prep +%setup -n knem-%{version} +set -- * +mkdir source +mv "$@" source/ +mkdir obj + +%build +rm -rf $RPM_BUILD_ROOT +export INSTALL_MOD_DIR=%install_mod_dir +for flavor in %flavors_to_build; do + export KSRC=%{kernel_source $flavor} + export KVERSION=%{kernel_release $KSRC} + export LIB_MOD_DIR=/lib/modules/$KVERSION/$INSTALL_MOD_DIR + export MODULE_DESTDIR=/lib/modules/$KVERSION/$INSTALL_MOD_DIR + rm -rf obj/$flavor + cp -a source obj/$flavor + cd $PWD/obj/$flavor + find . -type f -exec touch -t 200012201010 '{}' \; || true + ./configure --prefix=/opt/knem-%{version} --with-linux-release=$KVERSION --with-linux=/lib/modules/$KVERSION/source --with-linux-build=$KSRC --libdir=/opt/knem-%{version}/lib + make + cd - +done + +%install +export INSTALL_MOD_PATH=$RPM_BUILD_ROOT +export INSTALL_MOD_DIR=%install_mod_dir +export KPNAME=%{_name} +mkdir -p $RPM_BUILD_ROOT/etc/udev/rules.d +install -d $RPM_BUILD_ROOT/usr/lib64/pkgconfig +for flavor in %flavors_to_build; do + cd $PWD/obj/$flavor + export KSRC=%{kernel_source $flavor} + export KVERSION=%{kernel_release $KSRC} + make DESTDIR=$RPM_BUILD_ROOT install KERNELRELEASE=$KVERSION + export MODULE_DESTDIR=/lib/modules/$KVERSION/$INSTALL_MOD_DIR + mkdir -p $RPM_BUILD_ROOT/lib/modules/$KVERSION/$INSTALL_MOD_DIR + MODULE_DESTDIR=/lib/modules/$KVERSION/$INSTALL_MOD_DIR DESTDIR=$RPM_BUILD_ROOT KVERSION=$KVERSION $RPM_BUILD_ROOT/opt/knem-%{version}/sbin/knem_local_install + cp knem.pc $RPM_BUILD_ROOT/usr/lib64/pkgconfig + cd - +done + +/bin/rm -rf %{buildroot}/opt/knem-%{version}/lib/modules || true + +%if %{IS_RHEL_VENDOR} +# Set the module(s) to be executable, so that they will be stripped when packaged. +find %{buildroot} \( -type f -name '*.ko' -o -name '*ko.gz' \) -exec %{__chmod} u+x \{\} \; + +%if ! 0%{?fedora} +%{__install} -d $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d/ +echo "override knem * weak-updates/%{_name}" >> $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d/%{_name}.conf +echo "override knem * extra/%{_name}" >> $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d/%{_name}.conf +%endif +%else +find %{buildroot} \( -type f -name '*.ko' -o -name '*ko.gz' \) -exec %{__strip} -p --strip-debug --discard-locals -R .comment -R .note \{\} \; +%endif + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +getent group rdma >/dev/null 2>&1 || groupadd -r rdma +touch /etc/udev/rules.d/10-knem.rules +# load knem +/sbin/modprobe -r knem > /dev/null 2>&1 +/sbin/modprobe knem > /dev/null 2>&1 + +# automatically load knem onboot +if [ -d /etc/sysconfig/modules ]; then + # RH + echo "/sbin/modprobe knem > /dev/null 2>&1" > /etc/sysconfig/modules/knem.modules + chmod +x /etc/sysconfig/modules/knem.modules +elif [ -e /etc/sysconfig/kernel ]; then + # SLES + if ! (grep -w knem /etc/sysconfig/kernel); then + sed -i -r -e 's/^(MODULES_LOADED_ON_BOOT=)"(.*)"/\1"\2 knem"/' /etc/sysconfig/kernel + fi +fi + +%preun +# unload knem +/sbin/modprobe -r knem > /dev/null 2>&1 +# RH +/bin/rm -f /etc/sysconfig/modules/knem.modules +# SLES +if (grep -qw knem /etc/sysconfig/kernel 2>/dev/null); then + sed -i -e 's/ knem//g' /etc/sysconfig/kernel 2>/dev/null +fi + +%if "%{KMP}" != "1" +%post -n %{non_kmp_pname} +depmod %{KVERSION} -a + +%postun -n %{non_kmp_pname} +if [ $1 = 0 ]; then # 1 : Erase, not upgrade + depmod %{KVERSION} -a +fi +%endif # end KMP=1 + +%files +%defattr(-, root, root) +/opt/knem-%{version} +/usr/lib64/pkgconfig/knem.pc + +%config(noreplace) +/etc/udev/rules.d/10-knem.rules + + +%if "%{KMP}" != "1" +%files -n %{non_kmp_pname} +/lib/modules/%{KVERSION}/%{install_mod_dir}/ +%if %{IS_RHEL_VENDOR} +%if ! 0%{?fedora} +%config(noreplace) %{_sysconfdir}/depmod.d/%{_name}.conf +%endif +%endif +%endif + +%changelog +* Tue Dec 3 2024 Binu Jose Philip +- Moving to proprietary repo and add minor version prefix +* Thu Nov 07 2024 Suresh Babu Chalamalasetty +- Initial version Azure Linux +* Mon Mar 17 2014 Alaa Hleihel +- Use one spec for KMP and non-KMP OS's. +* Thu Apr 18 2013 Alaa Hleihel +- Added KMP support diff --git a/SPECS/mft_kernel/mft_kernel.signatures.json b/SPECS/mft_kernel/mft_kernel.signatures.json new file mode 100644 index 00000000000..71b70dfe5ed --- /dev/null +++ b/SPECS/mft_kernel/mft_kernel.signatures.json @@ -0,0 +1,5 @@ +{ + "Signatures": { + "kernel-mft-4.30.0.tgz": "9f882bd84a3345c1270e0d05233df66bffc5cb506484916bb15c80da50f41fe6" + } +} \ No newline at end of file diff --git a/SPECS/mft_kernel/mft_kernel.spec b/SPECS/mft_kernel/mft_kernel.spec new file mode 100644 index 00000000000..928cc10f5e3 --- /dev/null +++ b/SPECS/mft_kernel/mft_kernel.spec @@ -0,0 +1,232 @@ + +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) + +%global KVERSION %{target_kernel_version_full} +%global K_SRC /lib/modules/%{target_kernel_version_full}/build + +# KMP is disabled by default +%{!?KMP: %global KMP 0} + +# take cpu arch from uname -m +%global _cpu_arch %(uname -m) +%global docdir /etc/mft +%global mlxfwreset_ko_path %{docdir}/mlxfwreset/ + + +# take kernel version or default to uname -r +# %{!?KVERSION: %global KVERSION %(uname -r)} +%{!?KVERSION: %global KVERSION %{target_kernel_version_full}} +%global kernel_version %{KVERSION} +%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') +# take path to kernel sources if provided, otherwise look in default location (for non KMP rpms). +%{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} + +%if "%{KMP}" == "1" +%global _name kernel-mft-mlnx +%else +%global _name kernel-mft +%endif + +%{!?version: %global version 4.30.0} +%{!?_release: %global _release 1} +%global _kmp_rel %{_release}%{?_kmp_build_num}%{?_dist} + +Name: %{_name} +Summary: %{name} Kernel Module for the %{KVERSION} kernel +Version: %{version} +Release: 1_%{!?source:%{krelver}%{?_dist}}%{?source:%{_release}%{?_dist}} +License: Dual BSD/GPL +Group: System Environment/Kernel +BuildRoot: /var/tmp/%{name}-%{version}-build +#Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/kernel-mft-4.30.0.tgz +Source: kernel-mft-%{version}.tgz +Vendor: Microsoft Corporation +Distribution: Azure Linux + +BuildRequires: gcc +BuildRequires: make +BuildRequires: kernel-devel = %{target_kernel_version_full} +BuildRequires: kernel-headers = %{target_kernel_version_full} +BuildRequires: binutils +BuildRequires: systemd +BuildRequires: kmod + +Requires: kernel = %{target_kernel_version_full} +Requires: kmod + + +%description +mft kernel module(s) + +%global debug_package %{nil} + +%global IS_RHEL_VENDOR "%{_vendor}" == "redhat" || "%{_vendor}" == "bclinux" || "%{_vendor}" == "openEuler" + +# build KMP rpms? +%if "%{KMP}" == "1" +%global kernel_release() $(make -C %{1} M=$PWD kernelrelease | grep -v make | tail -1) +BuildRequires: %kernel_module_package_buildreqs +# prep file list for kmp rpm +%(cat > %{_builddir}/kmp.files << EOF +%defattr(644,root,root,755) +/lib/modules/%2-%1 +%if %{IS_RHEL_VENDOR} +%config(noreplace) %{_sysconfdir}/depmod.d/kernel-mft-*.conf +%endif +EOF) +%{kernel_module_package -f %{_builddir}/kmp.files -r %{_kmp_rel} } +%else +%global kernel_source() %{K_SRC} +%global kernel_release() %{KVERSION} +%global flavors_to_build default +%endif + +%description +This package provides a %{name} kernel module for kernel. + +%if "%{KMP}" == "1" +%package utils +Summary: KO utils for MFT +Group: System Environment/Kernel +Vendor: Mellanox Technologies Ltd. +Packager: Omer Dagan +%description utils +mft utils kernel module(s) +%endif +# +# setup module sign scripts if paths to the keys are given +# +%global WITH_MOD_SIGN %(if ( test -f "$MODULE_SIGN_PRIV_KEY" && test -f "$MODULE_SIGN_PUB_KEY" ); \ + then \ + echo -n '1'; \ + else \ + echo -n '0'; fi) + +%if "%{WITH_MOD_SIGN}" == "1" +# call module sign script +%global __modsign_install_post \ + $RPM_BUILD_DIR/kernel-mft-%{version}/source/tools/sign-modules $RPM_BUILD_ROOT/lib/modules/ %{kernel_source default} || exit 1 \ +%{nil} + +# Disgusting hack alert! We need to ensure we sign modules *after* all +# invocations of strip occur, which is in __debug_install_post if +# find-debuginfo.sh runs, and __os_install_post if not. +# +%global __spec_install_post \ + %{?__debug_package:%{__debug_install_post}} \ + %{__arch_install_post} \ + %{__os_install_post} \ + %{__modsign_install_post} \ +%{nil} + +%endif # end of setup module sign scripts + +%if %{IS_RHEL_VENDOR} +%global __find_requires %{nil} +%endif + +# set modules dir +%if %{IS_RHEL_VENDOR} +%if 0%{?fedora} +%global install_mod_dir updates +%else +%global install_mod_dir extra/%{name} +%endif +%endif + +%if "%{_vendor}" == "suse" +%global install_mod_dir updates +%endif + +%{!?install_mod_dir: %global install_mod_dir updates} + +%prep +%setup -n kernel-mft-%{version} +set -- * +mkdir source +mv "$@" source/ +mkdir obj + +%build +rm -rf $RPM_BUILD_ROOT +export EXTRA_CFLAGS='-DVERSION=\"%version\"' +for flavor in %{flavors_to_build}; do + rm -rf obj/$flavor + cp -a source obj/$flavor + cd $PWD/obj/$flavor + export KSRC=%{kernel_source $flavor} + export KVERSION=%{kernel_release $KSRC} + make KPVER=$KVERSION + cd - +done + +%install +export INSTALL_MOD_PATH=$RPM_BUILD_ROOT +export INSTALL_MOD_DIR=%{install_mod_dir} +mkdir -p %{install_mod_dir} +for flavor in %{flavors_to_build}; do + export KSRC=%{kernel_source $flavor} + export KVERSION=%{kernel_release $KSRC} + install -d $INSTALL_MOD_PATH/lib/modules/$KVERSION/%{install_mod_dir} + cp $PWD/obj/$flavor/mst_backward_compatibility/mst_pci/mst_pci.ko $INSTALL_MOD_PATH/lib/modules/$KVERSION/%{install_mod_dir} + cp $PWD/obj/$flavor/mst_backward_compatibility/mst_pciconf/mst_pciconf.ko $INSTALL_MOD_PATH/lib/modules/$KVERSION/%{install_mod_dir} + %if "%{_cpu_arch}" == "ppc64" || "%{_cpu_arch}" == "ppc64le" + install -d $INSTALL_MOD_PATH/%{mlxfwreset_ko_path}/$KVERSION + install $PWD/obj/$flavor/mst_backward_compatibility/mst_ppc/mst_ppc_pci_reset.ko $INSTALL_MOD_PATH/%{mlxfwreset_ko_path}/$KVERSION/ + %endif + %if "%{_cpu_arch}" == "aarch64" + cp $PWD/obj/$flavor/misc_drivers/bf3_livefish/bf3_livefish.ko $INSTALL_MOD_PATH/lib/modules/$KVERSION/%{install_mod_dir} + %endif +done + +%if %{IS_RHEL_VENDOR} +# Set the module(s) to be executable, so that they will be stripped when packaged. +find %{buildroot} -type f -name \*.ko -exec %{__chmod} u+x \{\} \; + +%if ! 0%{?fedora} +%{__install} -d %{buildroot}%{_sysconfdir}/depmod.d/ +for module in `find %{buildroot}/ -name '*.ko*' | grep -v "%{mlxfwreset_ko_path}" | sort` +do +ko_name=${module##*/} +mod_name=${ko_name/.ko*/} +mod_path=${module/*%{name}} +mod_path=${mod_path/\/${ko_name}} +echo "override ${mod_name} * weak-updates/%{name}${mod_path}" >> %{buildroot}%{_sysconfdir}/depmod.d/%{name}-${mod_name}.conf +echo "override ${mod_name} * extra/%{name}${mod_path}" >> %{buildroot}%{_sysconfdir}/depmod.d/%{name}-${mod_name}.conf +done +%endif +%else +find %{buildroot} -type f -name \*.ko -exec %{__strip} -p --strip-debug --discard-locals -R .comment -R .note \{\} \; +%endif + +%post +/sbin/depmod %{KVERSION} + +%postun +/sbin/depmod %{KVERSION} + +%if "%{KMP}" != "1" +%files +%defattr(-,root,root,-) +/lib/modules/%{KVERSION}/%{install_mod_dir}/ +%if %{IS_RHEL_VENDOR} +%if ! 0%{?fedora} +%config(noreplace) %{_sysconfdir}/depmod.d/kernel-mft-*.conf +%endif +%endif +%endif +%if "%{_cpu_arch}" == "ppc64" || "%{_cpu_arch}" == "ppc64le" +%if "%{KMP}" == "1" +%files utils +%defattr(-,root,root,-) +%endif +%{docdir} +%endif + +%changelog +* Tue Dec 3 2024 Binu Jose Philip +- Moving to proprietary repo and add minor release prefix +* Thu Nov 07 2024 Suresh Babu Chalamalasetty +- Initial version Azure Linux diff --git a/SPECS/mlnx-ethtool/mlnx-ethtool.signatures.json b/SPECS/mlnx-ethtool/mlnx-ethtool.signatures.json new file mode 100644 index 00000000000..eda2cb8014a --- /dev/null +++ b/SPECS/mlnx-ethtool/mlnx-ethtool.signatures.json @@ -0,0 +1,5 @@ +{ + "Signatures": { + "mlnx-ethtool-6.9.tar.gz": "927834fe390dda259484cebfa033c962eadcc293422817aa442847ce167b919a" + } +} \ No newline at end of file diff --git a/SPECS/mlnx-ethtool/mlnx-ethtool.spec b/SPECS/mlnx-ethtool/mlnx-ethtool.spec new file mode 100644 index 00000000000..d760476f31e --- /dev/null +++ b/SPECS/mlnx-ethtool/mlnx-ethtool.spec @@ -0,0 +1,46 @@ +Name: mlnx-ethtool +Version: 6.9 +Release: 2.2410068 +Group: Utilities +Summary: Settings tool for Ethernet and other network devices +License: GPL +Vendor: Microsoft Corporation +Distribution: Azure Linux +URL: https://ftp.kernel.org/pub/software/network/ethtool/ +Buildroot: /var/tmp/%{name}-%{version}-build +#Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/mlnx-ethtool-6.9.tar.gz +Source: %{name}-%{version}.tar.gz + +BuildRequires: libmnl-devel + +%description +This utility allows querying and changing settings such as speed, +port, auto-negotiation, PCI locations and checksum offload on many +network devices, especially Ethernet devices. + +%prep +%setup -q + + +%build +CFLAGS="${RPM_OPT_FLAGS}" ./configure --prefix=%{_prefix} --mandir=%{_mandir} +make + + +%install +make install DESTDIR=${RPM_BUILD_ROOT} + + +%files +%defattr(-,root,root) +%{_sbindir}/ethtool +%{_mandir}/man8/ethtool.8* +%{_datadir}/bash-completion/completions/ethtool +%doc AUTHORS COPYING NEWS README + + +%changelog +* Tue Dec 3 2024 Binu Jose Philip +- Moving to proprietary repo +* Thu Nov 07 2024 Suresh Babu Chalamalasetty +- Initial version Azure Linux diff --git a/SPECS/mlnx-iproute2/mlnx-iproute2.signatures.json b/SPECS/mlnx-iproute2/mlnx-iproute2.signatures.json new file mode 100644 index 00000000000..7a3487a6604 --- /dev/null +++ b/SPECS/mlnx-iproute2/mlnx-iproute2.signatures.json @@ -0,0 +1,5 @@ +{ + "Signatures": { + "mlnx-iproute2-6.10.0.tar.gz": "f8333badc404ccd6e79eb29d2761a4f53db122eb86ac4193c65fdb10d6f916f1" + } +} \ No newline at end of file diff --git a/SPECS/mlnx-iproute2/mlnx-iproute2.spec b/SPECS/mlnx-iproute2/mlnx-iproute2.spec new file mode 100644 index 00000000000..d9bbc8647e7 --- /dev/null +++ b/SPECS/mlnx-iproute2/mlnx-iproute2.spec @@ -0,0 +1,116 @@ +# This is a version of iproute2.spec sent to upstream with mlnx customization. + +# On e.g. Mariner, __make is set to {_bindir}/make which gets broken when +# you modify _prefix that modifies _bindir. Use 'global' to save this with +# the original value. This works with a simple macro such as __make but +# should probably not ne used with more complex ones: +%global __make %{__make} + +%global _prefix /opt/mellanox/iproute2 +%global _exec_prefix %{_prefix} +%global package_name mlnx-iproute2 +%global package_version 6.10.0 +%global configs_under_prefix 1 +%global netns_package_name netns-mlnx + +# Specify mandatory rpmbuild parameter package_version, like: +# rpmbuild -d'package_version 5.1.0' +# +# Other optional parameters are: package_name, netns_package_name +# and configs_under_prefix. + +%global debug_package %{nil} + +%{!?package_name: %global package_name iproute2} +%{!?netns_package_name: %global netns_package_name netns} + +%if 0%{?configs_under_prefix:1} + %global config_dir %{_prefix}%{_sysconfdir} + %global netns_config_dir %{config_dir}/netns +%else + %global config_dir %{_sysconfdir}/mlnx-iproute2 + %global netns_config_dir %{_sysconfdir}/%{netns_package_name} +%endif + +Summary: Advanced IP routing and network device configuration tools +Name: mlnx-iproute2 +Version: 6.10.0 +Release: 2.2410068 +License: GPL +Group: Networking/Admin +Vendor: Microsoft Corporation +Distribution: Azure Linux +# Source0: http://www.kernel.org/pub/linux/utils/net/iproute2/%{name}-%{version}.tar.gz +Source0: %{name}-%{version}.tar.gz +URL: http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2 + +BuildRequires: bison +BuildRequires: flex +BuildRoot: /var/tmp/%{name}-%{version}-build + +%description +The iproute package contains networking utilities (like ip and tc) +designed to use the advanced networking capabilities of the Linux kernel. + +%package -n libnetlink-devel +Summary: Library for the netlink interface +Group: Development/Libraries + +%description -n libnetlink-devel +This library provides an interface for kernel-user netlink interface. + +# The dependency on libdb-5.3 comes from arpd. This tool is not really +# used in our package. In some platforms libdb-5.3 is not available by +# default even though we include the devel package on the build system. +# But users don't really need arpd from this package. +%global __requires_exclude_from sbin/arpd + +%prep +%setup -q + +%build +./configure +%{__make} \ + CC="%{__cc}" \ + PREFIX="%{_prefix}" \ + LIBDIR="%{_libdir}" \ + SBINDIR="%{_sbindir}" \ + CONF_ETC_DIR="%{config_dir}/etc" \ + CONF_USR_DIR="%{config_dir}/usr" \ + NETNS_RUN_DIR="%{_var}/run/%{netns_package_name}" \ + NETNS_ETC_DIR="%{netns_config_dir}" \ + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_sbindir}} + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT \ + PREFIX="%{_prefix}" \ + LIBDIR="%{_libdir}" \ + SBINDIR="%{_sbindir}" \ + CONF_ETC_DIR="%{config_dir}/etc" \ + CONF_USR_DIR="%{config_dir}/usr" \ + NETNS_RUN_DIR="%{_var}/run/%{netns_package_name}" \ + NETNS_ETC_DIR="%{netns_config_subdir}" \ + +install -m 644 lib/libnetlink.a $RPM_BUILD_ROOT%{_libdir} +install -m 644 include/libnetlink.h $RPM_BUILD_ROOT%{_includedir} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc README README.devel +%config(noreplace) %verify(not md5 mtime size) %{config_dir}/* +%{_prefix}/include/* +%{_prefix}/share/* +%{_libdir}/* +%{_sbindir}/* + +%changelog +* Tue Dec 3 2024 Binu Jose Philip +- Moving to proprietary repo +* Thu Nov 07 2024 Suresh Babu Chalamalasetty +- Initial version Azure Linux diff --git a/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.signatures.json b/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.signatures.json new file mode 100644 index 00000000000..c4fe2cb95e4 --- /dev/null +++ b/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.signatures.json @@ -0,0 +1,5 @@ +{ + "Signatures": { + "mlnx-nfsrdma-24.10.tgz": "d2e66a9b6d6e40e621728ea25fa10b4b9ccd5ea3952fdaf2546e9420687a648c" + } +} \ No newline at end of file diff --git a/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec b/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec new file mode 100644 index 00000000000..abc11d30d25 --- /dev/null +++ b/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec @@ -0,0 +1,250 @@ +# +# Copyright (c) 2016 Mellanox Technologies. All rights reserved. +# +# This Software is licensed under one of the following licenses: +# +# 1) under the terms of the "Common Public License 1.0" a copy of which is +# available from the Open Source Initiative, see +# http://www.opensource.org/licenses/cpl.php. +# +# 2) under the terms of the "The BSD License" a copy of which is +# available from the Open Source Initiative, see +# http://www.opensource.org/licenses/bsd-license.php. +# +# 3) under the terms of the "GNU General Public License (GPL) Version 2" a +# copy of which is available from the Open Source Initiative, see +# http://www.opensource.org/licenses/gpl-license.php. +# +# Licensee has the right to choose one of the above licenses. +# +# Redistributions of source code must retain the above copyright +# notice and one of the license notices. +# +# Redistributions in binary form must reproduce both the above copyright +# notice, one of the license notices in the documentation +# and/or other materials provided with the distribution. +# +# + +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) + +%global KVERSION %{target_kernel_version_full} +%global K_SRC /lib/modules/%{target_kernel_version_full}/build + +%{!?_name: %define _name mlnx-nfsrdma} +%{!?_version: %define _version 24.10} +%{!?_release: %define _release OFED.24.10.0.6.7.1} + +# KMP is disabled by default +%{!?KMP: %global KMP 0} + +# take kernel version or default to uname -r +# %{!?KVERSION: %global KVERSION %(uname -r)} +%{!?KVERSION: %global KVERSION %{target_kernel_version_full}} +%global kernel_version %{KVERSION} +%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') +# take path to kernel sources if provided, otherwise look in default location (for non KMP rpms). +%{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} + +# define release version +%{!?src_release: %global src_release %{_release}_%{krelver}} +%if "%{KMP}" != "1" +%global _release1 %{src_release} +%else +%global _release1 %{_release} +%endif +%global _kmp_rel %{_release1}%{?_kmp_build_num}%{?_dist} + +Summary: %{_name} Driver +Name: %{_name} +Version: %{_version} +Release: 1_%{_release1}%{?_dist} +License: GPLv2 +Url: http://www.mellanox.com +Group: System Environment/Base +# Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/mlnx-nfsrdma-24.10.tgz +Source: %{_name}-%{_version}.tgz +BuildRoot: /var/tmp/%{name}-%{version}-build +Vendor: Microsoft Corporation +Distribution: Azure Linux + +BuildRequires: gcc +BuildRequires: make +BuildRequires: kernel-devel = %{target_kernel_version_full} +BuildRequires: kernel-headers = %{target_kernel_version_full} +BuildRequires: binutils +BuildRequires: systemd +BuildRequires: kmod +BuildRequires: mlnx-ofa_kernel-devel = %{_version} +BuildRequires: mlnx-ofa_kernel-source = %{_version} + +Requires: mlnx-ofa_kernel = %{_version} +Requires: mlnx-ofa_kernel-modules = %{_version} +Requires: kernel = %{target_kernel_version_full} +Requires: kmod + +%description +%{name} kernel modules + +# build KMP rpms? +%if "%{KMP}" == "1" +%global kernel_release() $(make -s -C %{1} kernelrelease M=$PWD) +BuildRequires: %kernel_module_package_buildreqs +%(mkdir -p %{buildroot}) +%(echo '%defattr (-,root,root)' > %{buildroot}/file_list) +%(echo '/lib/modules/%2-%1' >> %{buildroot}/file_list) +%(echo '%config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*-%1.conf' >> %{buildroot}/file_list) +%{kernel_module_package -f %{buildroot}/file_list -r %{_kmp_rel} } +%else +%global kernel_source() %{K_SRC} +%global kernel_release() %{KVERSION} +%global flavors_to_build default +%endif + +# +# setup module sign scripts if paths to the keys are given +# +%global WITH_MOD_SIGN %(if ( test -f "$MODULE_SIGN_PRIV_KEY" && test -f "$MODULE_SIGN_PUB_KEY" ); \ + then \ + echo -n '1'; \ + else \ + echo -n '0'; fi) + +%if "%{WITH_MOD_SIGN}" == "1" +# call module sign script +%global __modsign_install_post \ + %{_builddir}/%{name}-%{version}/source/tools/sign-modules %{buildroot}/lib/modules/ %{kernel_source default} || exit 1 \ +%{nil} + +%global __debug_package 1 +%global buildsubdir %{name}-%{version} +# Disgusting hack alert! We need to ensure we sign modules *after* all +# invocations of strip occur, which is in __debug_install_post if +# find-debuginfo.sh runs, and __os_install_post if not. +# +%global __spec_install_post \ + %{?__debug_package:%{__debug_install_post}} \ + %{__arch_install_post} \ + %{__os_install_post} \ + %{__modsign_install_post} \ +%{nil} + +%endif # end of setup module sign scripts +# + +%if "%{_vendor}" == "suse" +%debug_package +%endif + +%if 0%{?anolis} == 8 +%global __find_requires %{nil} +%endif + +# set modules dir +%if "%{_vendor}" == "redhat" || ("%{_vendor}" == "openEuler") +%if 0%{?fedora} +%global install_mod_dir updates/%{name} +%else +%global install_mod_dir extra/%{name} +%endif +%endif + +%if "%{_vendor}" == "suse" +%global install_mod_dir updates/%{name} +%endif + +%{!?install_mod_dir: %global install_mod_dir updates/%{name}} + +%prep +%setup +set -- * +mkdir source +mv "$@" source/ +mkdir obj + +%build +export EXTRA_CFLAGS='-DVERSION=\"%version\"' +export INSTALL_MOD_DIR=%{install_mod_dir} +export CONF_OPTIONS="%{configure_options}" +for flavor in %{flavors_to_build}; do + export K_BUILD=%{kernel_source $flavor} + export KVER=%{kernel_release $K_BUILD} + export LIB_MOD_DIR=/lib/modules/$KVER/$INSTALL_MOD_DIR + rm -rf obj/$flavor + cp -r source obj/$flavor + cd $PWD/obj/$flavor + make + cd - +done + +%install +export INSTALL_MOD_PATH=%{buildroot} +export INSTALL_MOD_DIR=%{install_mod_dir} +export PREFIX=%{_prefix} +for flavor in %flavors_to_build; do + export K_BUILD=%{kernel_source $flavor} + export KVER=%{kernel_release $K_BUILD} + cd $PWD/obj/$flavor + make install KERNELRELEASE=$KVER + # Cleanup unnecessary kernel-generated module dependency files. + find $INSTALL_MOD_PATH/lib/modules -iname 'modules.*' -exec rm {} \; + cd - +done + +# Set the module(s) to be executable, so that they will be stripped when packaged. +find %{buildroot} \( -type f -name '*.ko' -o -name '*ko.gz' \) -exec %{__chmod} u+x \{\} \; + +%{__install} -d %{buildroot}%{_sysconfdir}/depmod.d/ +for module in `find %{buildroot}/ -name '*.ko' -o -name '*.ko.gz' | sort` +do +ko_name=${module##*/} +mod_name=${ko_name/.ko*/} +mod_path=${module/*\/%{name}} +mod_path=${mod_path/\/${ko_name}} +%if "%{_vendor}" == "suse" + for flavor in %{flavors_to_build}; do + if [[ $module =~ $flavor ]] || [ "X%{KMP}" != "X1" ];then + echo "override ${mod_name} * updates/%{name}${mod_path}" >> %{buildroot}%{_sysconfdir}/depmod.d/zz02-%{name}-${mod_name}-$flavor.conf + fi + done +%else + %if 0%{?fedora} + echo "override ${mod_name} * updates/%{name}${mod_path}" >> %{buildroot}%{_sysconfdir}/depmod.d/zz02-%{name}-${mod_name}.conf + %else + %if "%{_vendor}" == "redhat" || ("%{_vendor}" == "openEuler") + echo "override ${mod_name} * weak-updates/%{name}${mod_path}" >> %{buildroot}%{_sysconfdir}/depmod.d/zz02-%{name}-${mod_name}.conf + %endif + echo "override ${mod_name} * extra/%{name}${mod_path}" >> %{buildroot}%{_sysconfdir}/depmod.d/zz02-%{name}-${mod_name}.conf + %endif +%endif +done + + +%clean +rm -rf %{buildroot} + +%post +if [ $1 -ge 1 ]; then # This package is being installed or reinstalled + /sbin/depmod %{KVERSION} +fi +# END of post + +%postun +/sbin/depmod %{KVERSION} + +%if "%{KMP}" != "1" +%files +%defattr(-,root,root,-) +/lib/modules/%{KVERSION}/%{install_mod_dir}/ +%config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf +%endif + +%changelog +* Tue Dec 3 2024 Binu Jose Philip +- Moving to proprietary repo and add minor release prefix +* Thu Nov 07 2024 Suresh Babu Chalamalasetty +- Initial version Azure Linux +* Mon Aug 15 2016 Alaa Hleihel +- Initial packaging diff --git a/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.signatures.json b/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.signatures.json new file mode 100644 index 00000000000..1bc6c70886f --- /dev/null +++ b/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.signatures.json @@ -0,0 +1,5 @@ +{ + "Signatures": { + "mlnx-ofa_kernel-24.10.tgz": "571588614a9f10409078703252357f69760577909191a3089b95258185b49d2f" + } +} \ No newline at end of file diff --git a/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec b/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec new file mode 100644 index 00000000000..418280dac34 --- /dev/null +++ b/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec @@ -0,0 +1,765 @@ +# +# Copyright (c) 2012 Mellanox Technologies. All rights reserved. +# +# This Software is licensed under one of the following licenses: +# +# 1) under the terms of the "Common Public License 1.0" a copy of which is +# available from the Open Source Initiative, see +# http://www.opensource.org/licenses/cpl.php. +# +# 2) under the terms of the "The BSD License" a copy of which is +# available from the Open Source Initiative, see +# http://www.opensource.org/licenses/bsd-license.php. +# +# 3) under the terms of the "GNU General Public License (GPL) Version 2" a +# copy of which is available from the Open Source Initiative, see +# http://www.opensource.org/licenses/gpl-license.php. +# +# Licensee has the right to choose one of the above licenses. +# +# Redistributions of source code must retain the above copyright +# notice and one of the license notices. +# +# Redistributions in binary form must reproduce both the above copyright +# notice, one of the license notices in the documentation +# and/or other materials provided with the distribution. +# +# + +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) + +%global KVERSION %{target_kernel_version_full} +%global K_SRC /lib/modules/%{target_kernel_version_full}/build + +# KMP is disabled by default +%{!?KMP: %global KMP 0} + +%global WITH_SYSTEMD %(if ( test -d "%{_unitdir}" > /dev/null); then echo -n '1'; else echo -n '0'; fi) + +%{!?configure_options: %global configure_options --with-core-mod --with-user_mad-mod --with-user_access-mod --with-addr_trans-mod --with-mlx5-mod --with-mlxfw-mod --with-ipoib-mod} + +%global MEMTRACK %(if ( echo %{configure_options} | grep "with-memtrack" > /dev/null ); then echo -n '1'; else echo -n '0'; fi) +%global MADEYE %(if ( echo %{configure_options} | grep "with-madeye-mod" > /dev/null ); then echo -n '1'; else echo -n '0'; fi) + +%global WINDRIVER %(if (grep -qiE "Wind River" /etc/issue /etc/*release* 2>/dev/null); then echo -n '1'; else echo -n '0'; fi) +%global POWERKVM %(if (grep -qiE "powerkvm" /etc/issue /etc/*release* 2>/dev/null); then echo -n '1'; else echo -n '0'; fi) +%global BLUENIX %(if (grep -qiE "Bluenix" /etc/issue /etc/*release* 2>/dev/null); then echo -n '1'; else echo -n '0'; fi) +%global XENSERVER65 %(if (grep -qiE "XenServer.*6\.5" /etc/issue /etc/*release* 2>/dev/null); then echo -n '1'; else echo -n '0'; fi) + +%global IS_RHEL_VENDOR "%{_vendor}" == "redhat" || ("%{_vendor}" == "bclinux") || ("%{_vendor}" == "openEuler") +%global KMOD_PREAMBLE "%{_vendor}" != "openEuler" + +# MarinerOS 1.0 sets -fPIE in the hardening cflags +# (in the gcc specs file). +# This seems to break only this package and not other kernel packages. +%if "%{_vendor}" == "mariner" || "%{_vendor}" == "azl" || "%{_vendor}" == "azurelinux" || (0%{?rhel} >= 10) +%global _hardened_cflags %{nil} +%endif + +# WA: Centos Stream 10 kernel doesn't support PIC mode, so we removed the following flags +%if (0%{?rhel} >= 10) +%global _hardening_gcc_ldflags %{nil} +%global _gcc_lto_cflags %{nil} +%endif + +# %{!?KVERSION: %global KVERSION %(uname -r)} +%{!?KVERSION: %global KVERSION %{target_kernel_version_full}} +%global kernel_version %{KVERSION} +%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') +# take path to kernel sources if provided, otherwise look in default location (for non KMP rpms). +%{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} + +# Select packages to build + +# Kernel module packages to be included into kernel-ib +%global build_ipoib %(if ( echo %{configure_options} | grep "with-ipoib-mod" > /dev/null ); then echo -n '1'; else echo -n '0'; fi) +%global build_oiscsi %(if ( echo %{configure_options} | grep "with-iscsi-mod" > /dev/null ); then echo -n '1'; else echo -n '0'; fi) +%global build_mlx5 %(if ( echo %{configure_options} | grep "with-mlx5-mod" > /dev/null ); then echo -n '1'; else echo -n '0'; fi) + +%{!?LIB_MOD_DIR: %global LIB_MOD_DIR /lib/modules/%{KVERSION}/updates} + +%{!?IB_CONF_DIR: %global IB_CONF_DIR /etc/infiniband} + +%{!?KERNEL_SOURCES: %global KERNEL_SOURCES /lib/modules/%{KVERSION}/source} + +%{!?_name: %global _name mlnx-ofa_kernel} +%{!?_version: %global _version 24.10} +%{!?_release: %global _release OFED.24.10.0.7.0.1} +%global _kmp_rel %{_release}%{?_kmp_build_num}%{?_dist} + +%global utils_pname %{_name} +%global devel_pname %{_name}-devel +%global non_kmp_pname %{_name}-modules + +Summary: Infiniband HCA Driver +Name: %{_name} +Version: %{_version} +Release: 1_%{_release}%{?_dist} +License: GPLv2 +Url: http://www.mellanox.com/ +Group: System Environment/Base +# Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/mlnx-ofa_kernel-24.10.tgz +Source: %{_name}-%{_version}.tgz +BuildRoot: /var/tmp/%{name}-%{version}-build +Vendor: Microsoft Corporation +Distribution: Azure Linux + +Obsoletes: kernel-ib +Obsoletes: mlnx-en +Obsoletes: mlnx_en +Obsoletes: mlnx-en-utils +Obsoletes: kmod-mlnx-en +Obsoletes: mlnx-en-kmp-default +Obsoletes: mlnx-en-kmp-xen +Obsoletes: mlnx-en-kmp-trace +Obsoletes: mlnx-en-doc +Obsoletes: mlnx-en-debuginfo +Obsoletes: mlnx-en-sources + +BuildRequires: kernel-devel = %{target_kernel_version_full} +BuildRequires: kernel-headers = %{target_kernel_version_full} +BuildRequires: binutils +BuildRequires: kmod +BuildRequires: libstdc++-devel +BuildRequires: libunwind-devel +BuildRequires: pkgconfig + +Requires: kernel = %{target_kernel_version_full} +Requires: kmod +Requires: libstdc++ +Requires: libunwind + +Requires: mlnx-tools >= 5.2.0 +Requires: coreutils +Requires: pciutils +Requires: grep +Requires: procps +Requires: module-init-tools +Requires: lsof +Requires: ofed-scripts + + +%if "%{KMP}" == "1" +BuildRequires: %kernel_module_package_buildreqs +BuildRequires: /usr/bin/perl +%endif +%description +InfiniBand "verbs", Access Layer and ULPs. +Utilities rpm. +The driver sources are located at: http://www.mellanox.com/downloads/ofed/mlnx-ofa_kernel-24.10-0.7.0.tgz + + +# build KMP rpms? +%if "%{KMP}" == "1" +%global kernel_release() $(make -s -C %{1} kernelrelease M=$PWD) +# prep file list for kmp rpm +%(cat > %{_builddir}/kmp.files << EOF +%defattr(644,root,root,755) +/lib/modules/%2-%1 +%if %{IS_RHEL_VENDOR} +%config(noreplace) %{_sysconfdir}/depmod.d/zz01-%{_name}-*.conf +%endif +EOF) +%(echo "Obsoletes: kmod-mlnx-rdma-rxe, mlnx-rdma-rxe-kmp" >> %{_builddir}/preamble) +%if %KMOD_PREAMBLE +%kernel_module_package -f %{_builddir}/kmp.files -r %{_kmp_rel} -p %{_builddir}/preamble +%else +%kernel_module_package -f %{_builddir}/kmp.files -r %{_kmp_rel} +%endif +%else # not KMP +%global kernel_source() %{K_SRC} +%global kernel_release() %{KVERSION} +%global flavors_to_build default +%package -n %{non_kmp_pname} +Obsoletes: kernel-ib +Obsoletes: mlnx-en +Obsoletes: mlnx_en +Obsoletes: mlnx-en-utils +Obsoletes: kmod-mlnx-en +Obsoletes: mlnx-en-kmp-default +Obsoletes: mlnx-en-kmp-xen +Obsoletes: mlnx-en-kmp-trace +Obsoletes: mlnx-en-doc +Obsoletes: mlnx-en-debuginfo +Obsoletes: mlnx-en-sources +Obsoletes: mlnx-rdma-rxe +Version: %{_version} +Release: %{_release}.kver.%{krelver} +Summary: Infiniband Driver and ULPs kernel modules +Group: System Environment/Libraries +%description -n %{non_kmp_pname} +Core, HW and ULPs kernel modules +Non-KMP format kernel modules rpm. +The driver sources are located at: http://www.mellanox.com/downloads/ofed/mlnx-ofa_kernel-24.10-0.7.0.tgz +%endif #end if "%{KMP}" == "1" + +%package -n %{devel_pname} +Version: %{_version} +# build KMP rpms? +%if "%{KMP}" == "1" +Release: %{_release}%{?_dist} +%else +Release: %{_release}.kver.%{krelver} +%endif +Obsoletes: kernel-ib-devel +Obsoletes: kernel-ib +Obsoletes: mlnx-en +Obsoletes: mlnx_en +Obsoletes: mlnx-en-utils +Obsoletes: kmod-mlnx-en +Obsoletes: mlnx-en-kmp-default +Obsoletes: mlnx-en-kmp-xen +Obsoletes: mlnx-en-kmp-trace +Obsoletes: mlnx-en-doc +Obsoletes: mlnx-en-debuginfo +Obsoletes: mlnx-en-sources +Requires: coreutils +Requires: pciutils +Requires(post): %{_sbindir}/update-alternatives +Requires(postun): %{_sbindir}/update-alternatives +Summary: Infiniband Driver and ULPs kernel modules sources +Group: System Environment/Libraries +%description -n %{devel_pname} +Core, HW and ULPs kernel modules sources +The driver sources are located at: http://www.mellanox.com/downloads/ofed/mlnx-ofa_kernel-24.10-0.7.0.tgz + +%package source +Summary: Source of the MLNX_OFED main kernel driver +Group: System Environment/Libraries +%description source +Source of the mlnx-ofa_kernel modules. + +You should probably only install this package if you want to view the +sourecs of driver. Use the -devel package if you want to build other +drivers against it. + +# +# setup module sign scripts if paths to the keys are given +# +%global WITH_MOD_SIGN %(if ( test -f "$MODULE_SIGN_PRIV_KEY" && test -f "$MODULE_SIGN_PUB_KEY" ); \ + then \ + echo -n '1'; \ + else \ + echo -n '0'; fi) + +%if "%{WITH_MOD_SIGN}" == "1" +# call module sign script +%global __modsign_install_post \ + %{_builddir}/$NAME-$VERSION/source/ofed_scripts/tools/sign-modules %{buildroot}/lib/modules/ %{kernel_source default} || exit 1 \ +%{nil} + +%global __debug_package 1 +%global buildsubdir %{_name}-%{version} +# Disgusting hack alert! We need to ensure we sign modules *after* all +# invocations of strip occur, which is in __debug_install_post if +# find-debuginfo.sh runs, and __os_install_post if not. +# +%global __spec_install_post \ + %{?__debug_package:%{__debug_install_post}} \ + %{__arch_install_post} \ + %{__os_install_post} \ + %{__modsign_install_post} \ +%{nil} + +%endif # end of setup module sign scripts +# +%if "%{_vendor}" == "suse" +%debug_package +%endif + +%if %{IS_RHEL_VENDOR} +%global __find_requires %{nil} +%endif + +# set modules dir +%if %{IS_RHEL_VENDOR} +%if 0%{?fedora} +%global install_mod_dir updates +%else +%global install_mod_dir extra/%{_name} +%endif +%endif + +%if "%{_vendor}" == "suse" +%global install_mod_dir updates +%endif + +%{!?install_mod_dir: %global install_mod_dir updates} + +%prep +%setup -n %{_name}-%{_version} +set -- * +mkdir source +mv "$@" source/ +mkdir obj + +%build +EXTRA_CFLAGS='-DVERSION=\"%version\"' +%if (0%{?rhel} >= 10) +EXTRA_CFLAGS+=' -fno-exceptions' +%endif +export EXTRA_CFLAGS +export CFLAGS="$CFLAGS -fno-exceptions " +export INSTALL_MOD_DIR=%{install_mod_dir} +export CONF_OPTIONS="%{configure_options}" +for flavor in %flavors_to_build; do + export KSRC=%{kernel_source $flavor} + export KVERSION=%{kernel_release $KSRC} + export LIB_MOD_DIR=/lib/modules/$KVERSION/$INSTALL_MOD_DIR + rm -rf obj/$flavor + cp -a source obj/$flavor + cd $PWD/obj/$flavor + find compat -type f -exec touch -t 200012201010 '{}' \; || true + ./configure --build-dummy-mods --prefix=%{_prefix} --kernel-version $KVERSION --kernel-sources $KSRC --modules-dir $LIB_MOD_DIR $CONF_OPTIONS %{?_smp_mflags} + make %{?_smp_mflags} kernel + make build_py_scripts + cd - +done + +%install +export RECORD_PY_FILES=1 +export INSTALL_MOD_PATH=%{buildroot} +export INSTALL_MOD_DIR=%{install_mod_dir} +export NAME=%{name} +export VERSION=%{version} +export PREFIX=%{_prefix} +mkdir -p %{buildroot}/%{_prefix}/src/ofa_kernel/%{_arch} +for flavor in %flavors_to_build; do + export KSRC=%{kernel_source $flavor} + export KVERSION=%{kernel_release $KSRC} + cd $PWD/obj/$flavor + make install_modules KERNELRELEASE=$KVERSION + # install script and configuration files + make install_scripts + mkdir -p %{_builddir}/src/$NAME/$flavor + cp -ar include/ %{_builddir}/src/$NAME/$flavor + cp -ar config* %{_builddir}/src/$NAME/$flavor + cp -ar compat* %{_builddir}/src/$NAME/$flavor + cp -ar ofed_scripts %{_builddir}/src/$NAME/$flavor + + modsyms=`find . -name Module.symvers -o -name Modules.symvers` + if [ -n "$modsyms" ]; then + for modsym in $modsyms + do + cat $modsym >> %{_builddir}/src/$NAME/$flavor/Module.symvers + done + else + ./ofed_scripts/create_Module.symvers.sh + cp ./Module.symvers %{_builddir}/src/$NAME/$flavor/Module.symvers + fi + cp -a %{_builddir}/src/$NAME/$flavor %{buildroot}/%{_prefix}/src/ofa_kernel/%{_arch}/$KVERSION + # Cleanup unnecessary kernel-generated module dependency files. + find $INSTALL_MOD_PATH/lib/modules -iname 'modules.*' -exec rm {} \; + cd - +done + +# Set the module(s) to be executable, so that they will be stripped when packaged. +find %{buildroot} \( -type f -name '*.ko' -o -name '*ko.gz' \) -exec %{__chmod} u+x \{\} \; + +%if %{IS_RHEL_VENDOR} +%if ! 0%{?fedora} +%{__install} -d %{buildroot}%{_sysconfdir}/depmod.d/ +for module in `find %{buildroot}/ -name '*.ko' -o -name '*.ko.gz' | sort` +do +ko_name=${module##*/} +mod_name=${ko_name/.ko*/} +mod_path=${module/*%{_name}} +mod_path=${mod_path/\/${ko_name}} +echo "override ${mod_name} * weak-updates/%{_name}${mod_path}" >> %{buildroot}%{_sysconfdir}/depmod.d/zz01-%{_name}-${mod_name}.conf +echo "override ${mod_name} * extra/%{_name}${mod_path}" >> %{buildroot}%{_sysconfdir}/depmod.d/zz01-%{_name}-${mod_name}.conf +done +%endif +%endif + +# copy sources +mkdir -p %{buildroot}/%{_prefix}/src/ofa_kernel-%{version} +cp -a %{_builddir}/%{name}-%{version}/source %{buildroot}/%{_prefix}/src/ofa_kernel-%{version}/source +ln -s ofa_kernel-%{version}/source %{buildroot}/%{_prefix}/src/mlnx-ofa_kernel-%{version} +# Fix path of BACKPORT_INCLUDES +sed -i -e "s@=-I.*backport_includes@=-I/usr/src/ofa_kernel-$VERSION/backport_includes@" %{buildroot}/%{_prefix}/src/ofa_kernel/%{_arch}/%{KVERSION}/configure.mk.kernel || true +rm -rf %{_builddir}/src + +INFO=${RPM_BUILD_ROOT}/etc/infiniband/info +/bin/rm -f ${INFO} +mkdir -p ${RPM_BUILD_ROOT}/etc/infiniband +touch ${INFO} + +cat >> ${INFO} << EOFINFO +#!/bin/bash + +echo prefix=%{_prefix} +echo Kernel=%{KVERSION} +echo +echo "Configure options: %{configure_options}" +echo +EOFINFO + +chmod +x ${INFO} > /dev/null 2>&1 + +%if "%{WITH_SYSTEMD}" == "1" +install -d %{buildroot}%{_unitdir} +install -d %{buildroot}/etc/systemd/system +install -m 0644 %{_builddir}/$NAME-$VERSION/source/ofed_scripts/openibd.service %{buildroot}%{_unitdir} +install -m 0644 %{_builddir}/$NAME-$VERSION/source/ofed_scripts/mlnx_interface_mgr\@.service %{buildroot}/etc/systemd/system +%endif + +install -d %{buildroot}/bin +install -m 0755 %{_builddir}/$NAME-$VERSION/source/ofed_scripts/mlnx_conf_mgr.sh %{buildroot}/bin/ +%if "%{WINDRIVER}" == "0" && "%{BLUENIX}" == "0" +install -m 0755 %{_builddir}/$NAME-$VERSION/source/ofed_scripts/mlnx_interface_mgr.sh %{buildroot}/bin/ +%else +# Wind River and Mellanox Bluenix are rpm based, however, interfaces management is done in Debian style +install -d %{buildroot}/usr/sbin +install -m 0755 %{_builddir}/$NAME-$VERSION/source/ofed_scripts/mlnx_interface_mgr_deb.sh %{buildroot}/bin/mlnx_interface_mgr.sh +install -m 0755 %{_builddir}/$NAME-$VERSION/source/ofed_scripts/net-interfaces %{buildroot}/usr/sbin +%endif + +# Install ibroute utilities +# TBD: move these utilities into standalone package +install -d %{buildroot}%{_sbindir} + +# update /etc/init.d/openibd header +is_euler=`grep 'NAME=".*Euler' /etc/os-release 2>/dev/null || :` +if [[ -f /etc/redhat-release || -f /etc/rocks-release || "$is_euler" != '' ]]; then +perl -i -ne 'if (m@^#!/bin/bash@) { + print q@#!/bin/bash +# +# Bring up/down openib +# +# chkconfig: 2345 05 95 +# description: Activates/Deactivates InfiniBand Driver to \ +# start at boot time. +# +### BEGIN INIT INFO +# Provides: openibd +### END INIT INFO +@; + } else { + print; + }' %{buildroot}/etc/init.d/openibd +fi + +if grep -qwE 'suse|SLES' /etc/os-release 2>/dev/null; then + local_fs='$local_fs' + openiscsi='' + %if %{build_oiscsi} + openiscsi='open-iscsi' + %endif + perl -i -ne "if (m@^#!/bin/bash@) { + print q@#!/bin/bash +### BEGIN INIT INFO +# Provides: openibd +# Required-Start: $local_fs +# Required-Stop: opensmd $openiscsi +# Default-Start: 2 3 5 +# Default-Stop: 0 1 2 6 +# Description: Activates/Deactivates InfiniBand Driver to \ +# start at boot time. +### END INIT INFO +@; + } else { + print; + }" %{buildroot}/etc/init.d/openibd +fi + +%if %{build_ipoib} +case $(uname -m) in + i[3-6]86) + # Decrease send/receive queue sizes on 32-bit arcitecture + echo "options ib_ipoib send_queue_size=64 recv_queue_size=128" >> %{buildroot}/etc/modprobe.d/ib_ipoib.conf + ;; +esac +%endif + +%clean +rm -rf %{buildroot} + + +%if "%{KMP}" != "1" +%post -n %{non_kmp_pname} +/sbin/depmod %{KVERSION} +# W/A for OEL6.7/7.x inbox modules get locked in memory +# in dmesg we get: Module mlx4_core locked in memory until next boot +if (grep -qiE "Oracle.*(6.([7-9]|10)| 7)" /etc/issue /etc/*release* 2>/dev/null); then + /sbin/dracut --force +fi + +%postun -n %{non_kmp_pname} +if [ $1 = 0 ]; then # 1 : Erase, not upgrade + /sbin/depmod %{KVERSION} + # W/A for OEL6.7/7.x inbox modules get locked in memory + # in dmesg we get: Module mlx4_core locked in memory until next boot + if (grep -qiE "Oracle.*(6.([7-9]|10)| 7)" /etc/issue /etc/*release* 2>/dev/null); then + /sbin/dracut --force + fi +fi +%endif # end KMP=1 + +%post -n %{utils_pname} +if [ $1 -eq 1 ]; then # 1 : This package is being installed +############################################################################################################# +is_euler=`grep 'NAME=".*Euler' /etc/os-release 2>/dev/null || :` +is_kylin=`grep 'NAME=".*Kylin' /etc/os-release 2>/dev/null || :` +if [[ -f /etc/redhat-release || -f /etc/rocks-release || -f /etc/UnionTech-release || -f /etc/ctyunos-release || "$is_euler" != '' || "$is_kylin" != '' ]]; then + /sbin/chkconfig openibd off >/dev/null 2>&1 || true + /usr/bin/systemctl disable openibd >/dev/null 2>&1 || true + /sbin/chkconfig --del openibd >/dev/null 2>&1 || true + +%if "%{WITH_SYSTEMD}" != "1" + /sbin/chkconfig --add openibd >/dev/null 2>&1 || true + /sbin/chkconfig openibd on >/dev/null 2>&1 || true +%else + /usr/bin/systemctl enable openibd >/dev/null 2>&1 || true +%endif +fi + +if grep -qwE 'suse|SLES' /etc/os-release 2>/dev/null; then + /sbin/chkconfig openibd off >/dev/null 2>&1 || true + /usr/bin/systemctl disable openibd >/dev/null 2>&1 || true + /sbin/insserv -r openibd >/dev/null 2>&1 || true + +%if "%{WITH_SYSTEMD}" != "1" + /sbin/insserv openibd >/dev/null 2>&1 || true + /sbin/chkconfig openibd on >/dev/null 2>&1 || true +%else + /usr/bin/systemctl enable openibd >/dev/null 2>&1 || true +%endif +fi + +%if "%{WINDRIVER}" == "1" || "%{BLUENIX}" == "1" +/usr/sbin/update-rc.d openibd defaults || true +%endif + +%if "%{POWERKVM}" == "1" +/usr/bin/systemctl disable openibd >/dev/null 2>&1 || true +/usr/bin/systemctl enable openibd >/dev/null 2>&1 || true +%endif + +%if "%{WITH_SYSTEMD}" == "1" +/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : +cat /proc/sys/kernel/random/boot_id 2>/dev/null | sed -e 's/-//g' > /var/run/openibd.bootid || true +test -s /var/run/openibd.bootid || echo manual > /var/run/openibd.bootid || true +%endif + +# Comment core modules loading hack +if [ -e /etc/modprobe.conf.dist ]; then + sed -i -r -e 's/^(\s*install ib_core.*)/#MLX# \1/' /etc/modprobe.conf.dist + sed -i -r -e 's/^(\s*alias ib.*)/#MLX# \1/' /etc/modprobe.conf.dist +fi + +%if %{build_ipoib} +if [ -e /etc/modprobe.d/ipv6 ]; then + sed -i -r -e 's/^(\s*install ipv6.*)/#MLX# \1/' /etc/modprobe.d/ipv6 +fi +%endif + +# Update limits.conf (but not for Containers) +if [ ! -e "/.dockerenv" ] && ! (grep -q docker /proc/self/cgroup 2>/dev/null); then + if [ -e /etc/security/limits.conf ]; then + LIMITS_UPDATED=0 + if ! (grep -qE "soft.*memlock" /etc/security/limits.conf 2>/dev/null); then + echo "* soft memlock unlimited" >> /etc/security/limits.conf + LIMITS_UPDATED=1 + fi + if ! (grep -qE "hard.*memlock" /etc/security/limits.conf 2>/dev/null); then + echo "* hard memlock unlimited" >> /etc/security/limits.conf + LIMITS_UPDATED=1 + fi + if [ $LIMITS_UPDATED -eq 1 ]; then + echo "Configured /etc/security/limits.conf" + fi + fi +fi + +# Make IPoIB interfaces be unmanaged on XenServer +if (grep -qi xenserver /etc/issue /etc/*-release 2>/dev/null); then + IPOIB_PNUM=$(lspci -d 15b3: 2>/dev/null | wc -l 2>/dev/null) + IPOIB_PNUM=$(($IPOIB_PNUM * 2)) + for i in $(seq 1 $IPOIB_PNUM) + do + uuid=$(xe pif-list 2>/dev/null | grep -B2 ib${i} | grep uuid | cut -d : -f 2 | sed -e 's/ //g') + if [ "X${uuid}" != "X" ]; then + xe pif-forget uuid=${uuid} >/dev/null 2>&1 || true + fi + done +fi + +fi # 1 : closed +# END of post + +%preun -n %{utils_pname} +is_euler=`grep 'NAME=".*Euler' /etc/os-release 2>/dev/null || :` +is_kylin=`grep 'NAME=".*Kylin' /etc/os-release 2>/dev/null || :` +if [ $1 = 0 ]; then # 1 : Erase, not upgrade + if [[ -f /etc/redhat-release || -f /etc/rocks-release || -f /etc/UnionTech-release || "$is_euler" != '' || "$is_kylin" != '' ]]; then + /sbin/chkconfig openibd off >/dev/null 2>&1 || true + /usr/bin/systemctl disable openibd >/dev/null 2>&1 || true + /sbin/chkconfig --del openibd >/dev/null 2>&1 || true + fi + if grep -qwE 'suse|SLES' /etc/os-release 2>/dev/null; then + /sbin/chkconfig openibd off >/dev/null 2>&1 || true + /usr/bin/systemctl disable openibd >/dev/null 2>&1 || true + /sbin/insserv -r openibd >/dev/null 2>&1 || true + fi + if [ -f /etc/debian_version ]; then + if ! ( /usr/sbin/update-rc.d openibd remove > /dev/null 2>&1 ); then + true + fi + fi +%if "%{WINDRIVER}" == "1" || "%{BLUENIX}" == "1" +/usr/sbin/update-rc.d -f openibd remove || true +%endif + +%if "%{POWERKVM}" == "1" +/usr/bin/systemctl disable openibd >/dev/null 2>&1 || true +%endif +fi + +%postun -n %{utils_pname} +%if "%{WITH_SYSTEMD}" == "1" +/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : +%endif + +# Uncomment core modules loading hack +if [ -e /etc/modprobe.conf.dist ]; then + sed -i -r -e 's/^#MLX# (.*)/\1/' /etc/modprobe.conf.dist +fi + +%if %{build_ipoib} +if [ -e /etc/modprobe.d/ipv6 ]; then + sed -i -r -e 's/^#MLX# (.*)/\1/' /etc/modprobe.d/ipv6 +fi +%endif + +#end of post uninstall + +%post -n %{devel_pname} +if [ -d "%{_prefix}/src/ofa_kernel/default" -a $1 -gt 1 ]; then + touch %{_prefix}/src/ofa_kernel/%{_arch}/%{KVERSION}.missing_link + # Will run update-alternatives in posttrans +else + update-alternatives --install \ + %{_prefix}/src/ofa_kernel/default \ + ofa_kernel_headers \ + %{_prefix}/src/ofa_kernel/%{_arch}/%{KVERSION} \ + 20 +fi + +%posttrans -n %{devel_pname} +symlink="%{_prefix}/src/ofa_kernel/default" +# Should only be used for upgrading from pre-5.5-0.2.6.0 packages: +# At the time of upgrade there was still a directory, so postpone +# generating the alternative symlink to that point: +for flag_file in %{_prefix}/src/ofa_kernel/*/*.missing_link; do + dir=${flag_file%.missing_link} + if [ ! -d "$dir" ]; then + # Directory is no longer there. Nothing left to handle + rm -f "$flag_file" + continue + fi + if [ -d "$symlink" ]; then + echo "%{devel_pname}-%{version}: $symlink is still a non-empty directory. Deleting in preparation for a symlink." + rm -rf "$symlink" + fi + update-alternatives --install \ + "$symlink" \ + ofa_kernel_headers \ + "$dir" \ + 20 + rm -f "$flag_file" +done + +%postun -n %{devel_pname} +update-alternatives --remove \ + ofa_kernel_headers \ + %{_prefix}/src/ofa_kernel/%{_arch}/%{KVERSION} \ + +%files -n %{utils_pname} +%defattr(-,root,root,-) +%doc source/ofed_scripts/82-net-setup-link.rules source/ofed_scripts/vf-net-link-name.sh +%if "%{KMP}" == "1" +%if %{IS_RHEL_VENDOR} +%endif # end rh +%endif # end KMP=1 +%dir /etc/infiniband +%config(noreplace) /etc/infiniband/openib.conf +%config(noreplace) /etc/infiniband/mlx5.conf +/etc/infiniband/info +/etc/init.d/openibd +%if "%{WITH_SYSTEMD}" == "1" +%{_unitdir}/openibd.service +/etc/systemd/system/mlnx_interface_mgr@.service +%endif +/lib/udev/sf-rep-netdev-rename +/lib/udev/auxdev-sf-netdev-rename +/usr/sbin/setup_mr_cache.sh +%_datadir/mlnx_ofed/mlnx_bf_assign_ct_cores.sh +%config(noreplace) /etc/modprobe.d/mlnx.conf +%config(noreplace) /etc/modprobe.d/mlnx-bf.conf +%{_sbindir}/* +/lib/udev/rules.d/83-mlnx-sf-name.rules +/lib/udev/rules.d/90-ib.rules +/bin/mlnx_interface_mgr.sh +/bin/mlnx_conf_mgr.sh +%if "%{WINDRIVER}" == "1" || "%{BLUENIX}" == "1" +/usr/sbin/net-interfaces +%endif +%if %{build_ipoib} +%config(noreplace) /etc/modprobe.d/ib_ipoib.conf +%endif +%if %{build_mlx5} +%{_sbindir}/ibdev2netdev +%endif + +%if "%{KMP}" != "1" +%files -n %{non_kmp_pname} +/lib/modules/%{KVERSION}/%{install_mod_dir}/ +%if %{IS_RHEL_VENDOR} +%if ! 0%{?fedora} +%config(noreplace) %{_sysconfdir}/depmod.d/zz01-%{_name}-*.conf +%endif +%endif +%endif + +%files -n %{devel_pname} +%defattr(-,root,root,-) +%{_prefix}/src/ofa_kernel/%{_arch}/[0-9]* + +%files source +%defattr(-,root,root,-) +%{_prefix}/src/ofa_kernel-%version/source +%{_prefix}/src/mlnx-ofa_kernel-%version + +%changelog +* Tue Dec 3 2024 Binu Jose Philip +- Moving to proprietary repo and add minor release prefix +* Thu Nov 07 2024 Suresh Babu Chalamalasetty +- Initial version Azure Linux +* Thu Jun 18 2015 Alaa Hleihel +- Renamed kernel-ib package to mlnx-ofa_kernel-modules +* Thu Apr 10 2014 Alaa Hleihel +- Add QoS utils. +* Thu Mar 13 2014 Alaa Hleihel +- Use one spec for KMP and non-KMP OS's. +* Tue Apr 24 2012 Vladimir Sokolovsky +- Remove FC support +* Tue Mar 6 2012 Vladimir Sokolovsky +- Add weak updates support +* Wed Jul 6 2011 Vladimir Sokolovsky +- Add KMP support +* Mon Oct 4 2010 Vladimir Sokolovsky +- Add mlx4_fc and mlx4_vnic support +* Mon May 10 2010 Vladimir Sokolovsky +- Support install macro that removes RPM_BUILD_ROOT +* Thu Feb 4 2010 Vladimir Sokolovsky +- Added ibdev2netdev script +* Mon Sep 8 2008 Vladimir Sokolovsky +- Added nfsrdma support +* Wed Aug 13 2008 Vladimir Sokolovsky +- Added mlx4_en support +* Tue Aug 21 2007 Vladimir Sokolovsky +- Added %build macro +* Sun Jan 28 2007 Vladimir Sokolovsky +- Created spec file for kernel-ib diff --git a/SPECS/mlx-steering-dump/mlx-steering-dump.signatures.json b/SPECS/mlx-steering-dump/mlx-steering-dump.signatures.json new file mode 100644 index 00000000000..831b41489af --- /dev/null +++ b/SPECS/mlx-steering-dump/mlx-steering-dump.signatures.json @@ -0,0 +1,5 @@ +{ + "Signatures": { + "mlx-steering-dump-1.0.0.tar.gz": "d0c5aa459fc248246d07a439a5ce0fa297c05be98654981d718ab74196d0334c" + } +} \ No newline at end of file diff --git a/SPECS/mlx-steering-dump/mlx-steering-dump.spec b/SPECS/mlx-steering-dump/mlx-steering-dump.spec new file mode 100644 index 00000000000..98480723237 --- /dev/null +++ b/SPECS/mlx-steering-dump/mlx-steering-dump.spec @@ -0,0 +1,80 @@ +# +# Copyright (c) 2017 Mellanox Technologies. All rights reserved. +# +# This Software is licensed under one of the following licenses: +# +# 1) under the terms of the "Common Public License 1.0" a copy of which is +# available from the Open Source Initiative, see +# http://www.opensource.org/licenses/cpl.php. +# +# 2) under the terms of the "The BSD License" a copy of which is +# available from the Open Source Initiative, see +# http://www.opensource.org/licenses/bsd-license.php. +# +# 3) under the terms of the "GNU General Public License (GPL) Version 2" a +# copy of which is available from the Open Source Initiative, see +# http://www.opensource.org/licenses/gpl-license.php. +# +# Licensee has the right to choose one of the above licenses. +# +# Redistributions of source code must retain the above copyright +# notice and one of the license notices. +# +# Redistributions in binary form must reproduce both the above copyright +# notice, one of the license notices in the documentation +# and/or other materials provided with the distribution. +# +# + +Summary: Mellanox steering dump parser +Name: mlx-steering-dump +Version: 1.0.0 +Release: 1%{?_dist}.2410068 +License: GPLv2 +Url: https://github.com/Mellanox/mlx_steering_dump +Group: Applications/System +# Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/mlx-steering-dump-1.0.0.tar.gz +Source: mlx-steering-dump-1.0.0.tar.gz +BuildRoot: /var/tmp/%{name}-%{version}-build +Vendor: Microsoft Corporation +Distribution: Azure Linux +Requires: python3 + +%description +This is Mellanox SW steering parser and triggering for dump files in CSV format. +The supported dump files are those generated by ConnectX5 and ConnectX6DX. + +%prep +%setup -q %{name}-%{version} + +%install +install -d %{buildroot}/usr/share/mlx-steering-dump/sws/src/parsers +install -d %{buildroot}/usr/share/mlx-steering-dump/hws/src +install -d %{buildroot}/usr/bin/ + +install -m 755 sws/mlx_steering_dump_parser.py %{buildroot}/usr/share/mlx-steering-dump/sws +install -m 644 sws/src/*.py %{buildroot}/usr/share/mlx-steering-dump/sws/src/ +install -m 644 sws/src/parsers/*.py %{buildroot}/usr/share/mlx-steering-dump/sws/src/parsers/ +install -m 755 sws/mlx_steering_dump %{buildroot}/usr/bin/ + +install -m 755 hws/mlx_hw_steering_parser.py %{buildroot}/usr/share/mlx-steering-dump/hws +install -m 644 hws/src/*.py %{buildroot}/usr/share/mlx-steering-dump/hws/src/ +install -m 755 hws/mlx_hw_steering_dump %{buildroot}/usr/bin/ + +%clean + +%preun + + +%files +/usr/share/mlx-steering-dump/* +/usr/bin/mlx_steering_dump +/usr/bin/mlx_hw_steering_dump + +%changelog +* Tue Dec 3 2024 Binu Jose Philip +- Moving to proprietary repo and add minor release prefix +* Thu Nov 07 2024 Suresh Babu Chalamalasetty +- Initial version Azure Linux +* Wed Oct 6 2021 Mohammad Kabat +- Add rpm support diff --git a/SPECS/multiperf/multiperf.signatures.json b/SPECS/multiperf/multiperf.signatures.json new file mode 100644 index 00000000000..29bc7c149fe --- /dev/null +++ b/SPECS/multiperf/multiperf.signatures.json @@ -0,0 +1,5 @@ +{ + "Signatures": { + "multiperf-3.0.tar.gz": "b9c43501a200c20ee5af7614da324372cd9f1fbd2fc3d7dfd775a9164bf3a68e" + } +} \ No newline at end of file diff --git a/SPECS/multiperf/multiperf.spec b/SPECS/multiperf/multiperf.spec new file mode 100644 index 00000000000..f4e695b27b7 --- /dev/null +++ b/SPECS/multiperf/multiperf.spec @@ -0,0 +1,44 @@ +Name: multiperf +Summary: IB Performance tests +Version: 3.0 +Release: 1_3.0.2410068 +License: BSD 3-Clause, GPL v2 or later +Vendor: Microsoft Corporation +Distribution: Azure Linux +Group: Productivity/Networking/Diagnostic +# Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/multiperf-3.0.tar.gz +Source: %{name}-%{version}.tar.gz +Url: "" +BuildRoot: /var/tmp/%{name}-%{version}-build + +BuildRequires: libibverbs-devel + +%description +gen3 uverbs microbenchmarks + +%prep +%setup -q + +%build +%configure +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=%{buildroot} install + +%clean +rm -rf ${RPM_BUILD_ROOT} + +%files +%defattr(-, root, root) +%doc README COPYING +%_bindir/* + +%changelog +* Tue Dec 3 2024 Binu Jose Philip +- Moving to proprietary repo and add minor release prefix +* Thu Nov 07 2024 Suresh Babu Chalamalasetty +- Initial version Azure Linux +* Sun Feb 08 2015 - gilr@mellanox.com +- Initial Package, Version 3.0 diff --git a/SPECS/rshim/rshim.signatures.json b/SPECS/rshim/rshim.signatures.json new file mode 100644 index 00000000000..89bdfe8312e --- /dev/null +++ b/SPECS/rshim/rshim.signatures.json @@ -0,0 +1,5 @@ +{ + "Signatures": { + "rshim-2.1.5.tar.gz": "a7776c66696dd7d1ff2983cfa536673f987394083f9e4c8434fb95f5bea15e8b" + } +} \ No newline at end of file diff --git a/SPECS/rshim/rshim.spec b/SPECS/rshim/rshim.spec new file mode 100644 index 00000000000..6c84512ec23 --- /dev/null +++ b/SPECS/rshim/rshim.spec @@ -0,0 +1,417 @@ +# SPDX-License-Identifier: GPL-2.0-only +# Copyright (C) 2019 Mellanox Technologies. All Rights Reserved. +# + +Name: rshim +Version: 2.1.5 +Release: 1.g8dfd6ea%{?dist} +Summary: User-space driver for Mellanox BlueField SoC +License: GPLv2 +Vendor: Microsoft Corporation +Distribution: Azure Linux +URL: https://github.com/mellanox/rshim-user-space +# Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/rshim-2.1.5.tar.gz +Source0: %{name}-%{version}.tar.gz +BuildRequires: gcc, autoconf, automake, pkgconfig, make +BuildRequires: pkgconfig(libpci), pkgconfig(libusb-1.0) fuse3-devel fuse3-libs + +%global with_systemd %(if (test -d "%{_unitdir}" > /dev/null); then echo -n '1'; else echo -n '0'; fi) +%global debug_package %{nil} + +%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 +rm -fr %{name}-%{version} +mkdir %{name}-%{version} +tar -axf %{SOURCE0} -C %{name}-%{version} --strip-components 1 +%setup -q -D -T + +%build +./bootstrap.sh +%configure +%if %{?make_build:1}%{!?make_build:0} +%make_build +%else +make +%endif + +%install +%undefine _missing_build_ids_terminate_build +%makeinstall -C src INSTALL_DIR="%{buildroot}%{_sbindir}" +%if "%{with_systemd}" == "1" + %{__install} -d %{buildroot}%{_unitdir} + %{__install} -m 0644 rshim.service %{buildroot}%{_unitdir} +%endif +%{__install} -d %{buildroot}%{_mandir}/man8 +%{__install} -m 0644 man/rshim.8 %{buildroot}%{_mandir}/man8 +%{__install} -m 0644 man/bfb-install.8 %{buildroot}%{_mandir}/man8 +%{__install} -m 0644 man/bf-reg.8 %{buildroot}%{_mandir}/man8 +%{__install} -d %{buildroot}%{_sysconfdir} +%{__install} -m 0644 etc/rshim.conf %{buildroot}%{_sysconfdir} +%{__install} -m 0755 scripts/bfb-install %{buildroot}%{_sbindir} +%{__install} -m 0755 scripts/bf-reg %{buildroot}%{_sbindir} + +%pre +%if "%{with_systemd}" == "1" + if systemctl is-active --quiet rshim ; then + systemctl stop rshim + fi +%endif + +%post +%if "%{with_systemd}" == "1" + echo "Installation complete. To enable and start the rshim service, run:" + echo " systemctl daemon-reload" + echo " systemctl enable rshim" + echo " systemctl start rshim" +%endif + +%preun +if [ "$1" = "0" ]; then +%if "%{with_systemd}" == "1" + if systemctl is-active --quiet rshim ; then + systemctl stop rshim + fi +%else + killall -9 rshim +%endif +fi + +%files +%{!?_licensedir:%global license %%doc} +%license LICENSE +%defattr(-,root,root,-) +%doc README.md +%config(noreplace) %{_sysconfdir}/rshim.conf +%if "%{with_systemd}" == "1" + %{_unitdir}/rshim.service +%endif +%{_sbindir}/rshim +%{_sbindir}/bfb-install +%{_sbindir}/bf-reg +%{_mandir}/man8/rshim.8.gz +%{_mandir}/man8/bfb-install.8.gz +%{_mandir}/man8/bf-reg.8.gz + +%changelog +* Tue Dec 3 2024 Binu Jose Philip +- Moving to proprietary repo + +* Thu Nov 07 2024 Suresh Babu Chalamalasetty +- Initial version Azure Linux + +* Mon Oct 14 2024 Penghe Geng - 2.1.5 +- Revert "Abort rshim rpm installation if no cuse.ko found" + +* Thu Oct 10 2024 Penghe Geng - 2.1.4 +- Make rshim run in single instance +- Abort rshim rpm installation if no cuse.ko found +- Increase default boot timeout to 300s +- bfb-install: Fix premature bfb-install exit when rebooting BMC + +* Tue Sep 10 2024 Penghe Geng - 2.1.3 +- Reduce the access_check() wait time + +* Fri Aug 30 2024 Liming Sun - 2.1.2 +- Improve access_check() to reduce likelihood of race condition +- Revert the 2-second delay + +* Thu Aug 15 2024 Liming Sun - 2.1.1 +- Add support for command mode +- Fix some coding style issues +- Cleanup rshim debug/syslog messages + +* Thu Aug 08 2024 Liming Sun - 2.0.41 +- Add a small delay to access the boot file +- Fix a valgrind warning + +* Mon Aug 05 2024 Penghe Geng - 2.0.40 +- Fix rshim deb package for DOCA build on Ubuntu + +* Fri Aug 02 2024 Penghe Geng - 2.0.39 +- Fix rshim masking issue on Ubuntu +- bfb-install: Fix NIC_MODE installation for BlueField-2 +- pcie: Add VFIO support for BlueField-3 + +* Fri Jul 26 2024 Penghe Geng - 2.0.38 +- Make sending the initial force command a one-time event +- bfb-install: adjust the log file to be per rshim + +* Tue Jul 16 2024 Penghe Geng - 2.0.37 +- add missing --force in help menu + +* Mon Jul 15 2024 Penghe Geng - 2.0.36 +- Allow /dev/rshim devfs creation only with --force option enabled +- bfb-install: fix for NIC mode +- bfb-install: Exit with error if running remote bfb-install without + password-less root SSH +- Fix compiling issue for FreeBSD + +* Fri Jul 05 2024 Penghe Geng - 2.0.35 +- Add ownership transfer feature (primarily via "FORCE_CMD") +- bfb-install: enhancement for NIC mode + +* Tue Jun 11 2024 Liming Sun - 2.0.34 +- bfb-install: Enable CLEAR_ON_READ +- bfb-install: add cleanup code for runtime update + +* Thu Jun 06 2024 Liming Sun - 2.0.33 +- misc: add 'CLEAR_ON_READ' command +- bfb-install: add runtime image support + +* Tue Jun 04 2024 Liming Sun - 2.0.32 +- bf3/pcie_lf: Fix the 4B access via MSN GW + +* Fri May 17 2024 Liming Sun - 2.0.31 +- bf3/pcie_lf: support register read/write via /dev/rshim0/rshim +- Only poll/check locked mode for PCIe backend +- Remove workaround support for BF2 A0 chip + +* Mon May 13 2024 Liming Sun - 2.0.30 +- pcie: Adjust default reset delay to 3 seconds +- Avoid polling blocked status during reset +- Disable installation of rshim on host by default + +* Tue Apr 30 2024 Liming Sun - 2.0.29 +- Some robust fixes for rshim over USB +- Lower log level for register read errors as it's normal during reset + +* Thu Apr 25 2024 Penghe Geng - 2.0.28 +- Secure NIC Mode: Prevent running simultaneously on both bmc and host + +* Fri Apr 12 2024 Penghe Geng - 2.0.27 +- bfb-install: Fix incorrect IP address resolution for multi-hop routing + +* Fri Apr 12 2024 Liming Sun - 2.0.26 +- rshim_pcie: set PCIE bit in scratchpad6 +- Revert semantics of --reverse-nc + +* Fri Apr 05 2024 Liming Sun - 2.0.25 +- Avoid a race of rshim ownership during bfb push + +* Thu Apr 04 2024 Liming Sun - 2.0.24 +- DROP_MODE: sync-up the Rx FIFO when clearing DROP_MODE + +* Tue Apr 02 2024 Liming Sun - 2.0.23 +- Add some robust fixes for the DROP_MODE + +* Fri Mar 22 2024 Penghe Geng - 2.0.22 +- bfb-install: add support for remote rshim update; add speed optimizations + +* Tue Mar 19 2024 Penghe Geng - 2.0.21 +- rshim_pci: output Secure NIC mode status in misc file + +* Fri Feb 16 2024 Liming Sun - 2.0.20 +- rshim_pci: adjust delay time for nic_fw reset +- bfb-install: Exit on "Linux up" + +* Wed Jan 10 2024 Liming Sun - 2.0.19 +- Fix incorrect console message drop +- Allow runtime debug code for DK cards + +* Thu Dec 14 2023 Liming Sun - 2.0.18 +- Clear scratchpad1 register when setting drop_mode + +* Wed Nov 22 2023 Liming Sun - 2.0.17 +- bfb-install: Fix duplicate output + +* Thu Nov 16 2023 Liming Sun - 2.0.16 +- Remove fuse build dependency + +* Tue Nov 14 2023 Liming Sun - 2.0.15 +- Add BFB completion condition for enhanced NIC mode + +* Fri Nov 10 2023 Liming Sun - 2.0.14 +- Fix 9f19cfb4a75687ae + +* Wed Nov 08 2023 Liming Sun - 2.0.13 +- Several robust fixes +- Add fuse3 support + +* Mon Oct 23 2023 Liming Sun - 2.0.12 +- BF3: Add UPTIME display in seconds + +* Tue Sep 26 2023 Liming Sun - 2.0.11 +- Remove version 0 support for NIC FW_RESET +- bfb-install: Return failure code + +* Mon Sep 18 2023 Liming Sun - 2.0.10 +- Fix interrupt handling for NIC FW_RESET + +* Sat Jun 17 2023 Liming Sun - 2.0.9 +- rshim/usb/bf3: fix timeout logic + +* Tue May 16 2023 Liming Sun - 2.0.8 +- Fix the fall-back logic of direct-mapping + +* Thu Mar 30 2023 Liming Sun - 2.0.7 +- Avoid opening /dev/uio multiple times +- Update common files to dual-license +- Adjust rshim reset delay + +* Sun Nov 20 2022 Liming Sun - 2.0.6-19 +- BF3: Support 4B access for PCIe + +* Tue Oct 25 2022 Liming Sun - 2.0.6-18 +- pcie: fix initialization issue when setting DROP_MODE in rshim.conf + +* Thu Oct 20 2022 Liming Sun - 2.0.6-17 +- pcie: Avoid using cached pci_dev +- rshim_fuse: display misc file even when rshim is not accessible + +* Thu Oct 06 2022 Liming Sun - 2.0.6-16 +- pcie: Support mixed vfio and direct mapping mode + +* Thu Sep 29 2022 Liming Sun - 2.0.6-15 +- Add dependency of libfuse2 for .deb +- rshim-pcie: add a new bad-access code +- Fix a potential NULL pointer access during USB disconnect +- Adjust default boot timeout to 150s + +* Tue Aug 16 2022 Liming Sun - 2.0.6-14 +- Avoid potential race when stopping the rshim process +- Add configuration option to enable/disable PCIe VFIO/UIO +- Fix warnings for compiling on 32-bit BMC +- Mustang rshim usb supports for 4B and 8B transactions + +* Sun Jul 17 2022 Liming Sun - 2.0.6-13 +- BF3: Support 32-bit CR-space access via USB +- Avoid kernel-modules-extra dependency on ctyunos + +* Thu Jun 16 2022 Liming Sun - 2.0.6-12 +- Optimize the rshim_work_fd +- Detect new USB/rshim hot plugin + +* Mon May 16 2022 Liming Sun - 2.0.6-11 +- Avoid kernel crash when unbind rshim from uio + +* Mon May 02 2022 Liming Sun - 2.0.6-10 +- Fix several compiling issues for FreeBSD + +* Thu Apr 28 2022 Liming Sun - 2.0.6-9 +- Use per-device memory-map mode + +* Mon Apr 18 2022 Liming Sun - 2.0.6-8 +- Add interrupt polling for direct mmap() mode +- Fix several coverity warnings + +* Thu Apr 07 2022 Liming Sun - 2.0.6-7 +- Keep intr_fd during rshim_pcie disable/enable +- Mustang: Add support for rshim over pcie and pcie_lf + +* Wed Mar 30 2022 Liming Sun - 2.0.6-6 +- Clear scratchpad1 to 0 before PCI resources are unmapped +- Fallback to UIO if VFIO failed + +* Fri Mar 18 2022 Liming Sun - 2.0.6-5 +- PCIe: Add UIO and IRQ support +- PCIe: Remove 32-bit support + +* Mon Feb 28 2022 Liming Sun - 2.0.6-4 +- VFIO support +- Fix potential race in rshim_work_signal + +* Mon Nov 29 2021 Liming Sun - 2.0.6-3 +- Adjust the defaul value of usb_reset_delay to 5 +- Add a delay after USB probe +- Make the reset delay configurable + +* Wed Nov 03 2021 Liming Sun - 2.0.6-2 +- bfb-install: Handle new indications for installation completion +- Clean up some un-needed register definition +- Fix MTU of the tmfifo_net0 interface on FreeBSD +- Several fixes to prevent hypervisor crash +- Refine some BF-2 Rev0 workaround condition + +* Wed May 12 2021 Liming Sun - 2.0.6-1 +- Disable the background timer if no rshim devices +- Setting default path for rshim config file + +* Wed Mar 10 2021 Liming Sun - 2.0.5-10 +- PCIe hotplug support +- Reduce CPU utilization when there is no rshim device + +* Wed Jan 27 2021 Liming Sun - 2.0.5-9 +- Fix potential tmfifo data loss +- Add workaround checking for Bluefield-2 REV-0 +- Fix network traffic stop issue when Tx buffer full + +* Fri Dec 11 2020 Liming Sun - 2.0.5-8 +- Don't allow any register access when DROP_MODE is set +- Avoid potential race in rshim_fifo_read + +* Wed Dec 09 2020 Liming Sun - 2.0.5-7 +- Fix potential dead-lock when calling rshim_access_check +- Ignore rshim access checking when global drop mode is enabled +- Fix some secure boot related issue + +* Wed Dec 02 2020 Liming Sun - 2.0.5-6 +- Add some default configuration in rshim.conf +- Change the debug level of Rshim byte access widget timeout +- Add bfb-install script + +* Thu Oct 29 2020 Liming Sun - 2.0.5-5 +- Check rshim accessibility when re-enabling it +- Enable console output during boot stream pushing +- Add some delay for the pcie_lf probe +- Auto-start rshim service after installation + +* Fri Sep 25 2020 Liming Sun - 2.0.5-4 +- Some robust fixes for USB rshim +- Fix a typo in pcie mmap + +* Mon Aug 17 2020 Liming Sun - 2.0.5-3 +- Fix several coverity warnings +- Add workaround to boot Viper rev A0 in LiveFish mode +- Display/configure OPN string for BlueField-2 + +* Fri Jul 24 2020 Liming Sun - 2.0.5-2 +- Add configuration file support +- misc: Display device version / revision ID +- Add service file for FreeBSD + +* Tue Jun 16 2020 Liming Sun - 2.0.5-1 +- Improve response time to ctrl+c for boot stream +- Fix a rpmbuild issue when make_build is not defined +- Add DROP_MODE configuration in misc file +- Avoid reading the fifo if still booting +- Fix configure issue for FreeBSD 12.1-RELEASE +- Add domain id to the DEV_NAME in the misc file +- Fix the debian copyright format +- Enhance rshim_pcie_enable function + +* 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 some warnings reported by coverity +- Add file 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/SPECS/sockperf/sockperf.signatures.json b/SPECS/sockperf/sockperf.signatures.json new file mode 100644 index 00000000000..ed3db5a58ca --- /dev/null +++ b/SPECS/sockperf/sockperf.signatures.json @@ -0,0 +1,5 @@ +{ + "Signatures": { + "sockperf-3.10.tar.gz": "9e16b8e7774d62c03b51c6161fd4950c9b81080fa11c09d180a2630a533f31af" + } +} \ No newline at end of file diff --git a/SPECS/sockperf/sockperf.spec b/SPECS/sockperf/sockperf.spec new file mode 100644 index 00000000000..bc521ddef57 --- /dev/null +++ b/SPECS/sockperf/sockperf.spec @@ -0,0 +1,88 @@ +%global version 3.10 +%global git_ref 5ebd327da983225321818c0355db922515e026bd +%global release 0.git5ebd327da983.2410068 +%global full_ver %{version}-%{release} + +Name: sockperf +Version: %{version} +Release: 1%{release}%{?dist} +Summary: Network benchmarking utility for testing latency and throughput +Group: Applications/Internet +License: BSD +Vendor: Microsoft Corporation +Distribution: Azure Linux +URL: https://github.com/mellanox/%{name} +# Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/sockperf-3.10.tar.gz +Source0: %{name}-%{version}.tar.gz + +BuildRequires: doxygen + +# can't use _pkgdocdir neither _docdir since it is not the same even where it is defined +%global _my_pkgdocdir /usr/share/doc/%{name} + + +%description +sockperf is a network benchmarking utility over socket API that was designed +for testing performance (latency and throughput) of high-performance systems +(it is also good for testing performance of regular networking systems as +well). It covers most of the socket API calls and options. + +Specifically, in addition to the standard throughput tests, sockperf, does the +following: + +* Measure latency of each discrete packet at sub-nanosecond resolution (using + TSC register that counts CPU ticks with very low overhead). + +* Does the above for both ping-pong mode and for latency under load mode. This + means that we measure latency of single packets even under load of millions + Packets Per Second (without waiting for reply of packet before sending + subsequent packet on time) + +* Enable spike analysis by providing histogram, with various percentiles of the + packets' latencies (for example: median, min, max, 99% percentile, and more), + (this is in addition to average and standard deviation). Also, sockperf + provides full log with all packet's tx/rx times that can be further analyzed + with external tools, such as MS-Excel or matplotlib - All this without + affecting the benchmark itself. + +* Support MANY optional settings for good coverage of socket API and network + configurations, while still keeping very low overhead in the fast path to + allow cleanest results. + +%prep +#%setup -q -n %{name}-%{git_ref} +%setup -q -n %{name}-%{version} + + +%build + +# Upstream wants and defaults to "-O3 --param inline-unit-growth=200". +# The Fedora optflags would override the former, so let's put it back. +# Avner wrote: +# > I reached that in the past after fine tuning the performance of sockperf. +# > We used sockperf for measuring latency of extremely fast networks. +# > Sometimes at sub microsecond resolution. This parameter helps us keeping +# > the entire fast path of the application as "one big function" with no +# > calls to other functions because it helps the compiler to respect all our +# > "inline" directive for other functions that we call (while still keeping +# > the "one big function" at a reasonable size for good performance at run +# > time). +export CXXFLAGS='%{optflags} -O3' +%configure --enable-doc +# --enable-tool --enable-test +make %{?_smp_mflags} + +%install +make install DESTDIR="%{?buildroot}" + +%files +%defattr(-,root,root,-) +%{_bindir}/%{name} +%{_mandir}/man3/%{name}.3.* +%{_my_pkgdocdir} + +%changelog +* Tue Dec 3 2024 Binu Jose Philip +- Moving to proprietary repo and add minor release prefix +* Thu Nov 07 2024 Suresh Babu Chalamalasetty +- Initial version Azure Linux diff --git a/SPECS/xpmem-lib/xpmem-lib.signatures.json b/SPECS/xpmem-lib/xpmem-lib.signatures.json new file mode 100644 index 00000000000..c2fe3accad7 --- /dev/null +++ b/SPECS/xpmem-lib/xpmem-lib.signatures.json @@ -0,0 +1,5 @@ +{ + "Signatures": { + "xpmem-lib-2.7.tar.gz": "0f3666d0e0a32be87cf625bc56b18bf3384b0068d3914e16c3e8808311319281" + } +} \ No newline at end of file diff --git a/SPECS/xpmem-lib/xpmem-lib.spec b/SPECS/xpmem-lib/xpmem-lib.spec new file mode 100644 index 00000000000..5d5c29527e3 --- /dev/null +++ b/SPECS/xpmem-lib/xpmem-lib.spec @@ -0,0 +1,88 @@ +#define buildforkernels newest +#define buildforkernels current +#define buildforkernels akmod + +Summary: XPMEM: Cross-partition memory +Name: xpmem-lib +Version: 2.7 +Release: 1.2310055 +License: LGPLv2.1 +Group: System Environment/Libraries +Vendor: Microsoft Corporation +Distribution: Azure Linux +# Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/xpmem-lib-2.7.tar.gz +Source: %{name}-%{version}.tar.gz + +BuildRequires: automake +BuildRequires: autoconf +BuildRequires: libtool +BuildRequires: pkg-config + +%{!?make_build: %global make_build %{__make} %{?_smp_mflags} %{?mflags} V=1} +%{!?run_ldconfig: %global run_ldconfig %{?ldconfig}} + +%description +XPMEM is a Linux kernel module that enables a process to map the +memory of another process into its virtual address space. Source code +can be obtained by cloning the Git repository, original Mercurial +repository or by downloading a tarball from the link above. + +%package -n libxpmem +Summary: XPMEM: user-space library + +%description -n libxpmem +XPMEM is a Linux kernel module that enables a process to map the +memory of another process into its virtual address space. Source code +can be obtained by cloning the Git repository, original Mercurial +repository or by downloading a tarball from the link above. + +This package contains the user-space library needed to interface with XPMEM. + +%package -n libxpmem-devel +Summary: XPMEM: user-space library headers +Group: System Environment/Libraries +Requires: libxpmem%{?_isa} = %{version}-%{release} + +%description -n libxpmem-devel +XPMEM is a Linux kernel module that enables a process to map the +memory of another process into its virtual address space. Source code +can be obtained by cloning the Git repository, original Mercurial +repository or by downloading a tarball from the link above. + +This package contains the development headers for the user-space library +needed to interface with XPMEM. + +%prep +%setup + +%build +%configure --disable-kernel-module +%make_build + +%install +%make_install +rm -rf ${RPM_BUILD_ROOT}/etc # /etc/.version , udev rules + +%post -n libxpmem +%if 0%{?fedora} || 0%{?rhel} > 7 +# https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets +%else +%{run_ldconfig} +%endif + +%files -n libxpmem +%doc README AUTHORS COPYING.LESSER +%{_libdir}/libxpmem.so.* + +%files -n libxpmem-devel +%{_includedir}/xpmem.h +%{_libdir}/libxpmem.a +%{_libdir}/libxpmem.la +%{_libdir}/libxpmem.so +%{_libdir}/pkgconfig/cray-xpmem.pc + +%changelog +* Tue Dec 3 2024 Binu Jose Philip +- Moving to proprietary repo +* Thu Nov 07 2024 Suresh Babu Chalamalasetty +- Initial version Azure Linux diff --git a/SPECS/xpmem/xpmem.signatures.json b/SPECS/xpmem/xpmem.signatures.json new file mode 100644 index 00000000000..06aa62d82ff --- /dev/null +++ b/SPECS/xpmem/xpmem.signatures.json @@ -0,0 +1,5 @@ +{ + "Signatures": { + "xpmem-2.7.4.tar.gz": "499fcb6d9206e433c14250d91599636ae753eb6172bb8aea30ca0a4a2e351128" + } +} \ No newline at end of file diff --git a/SPECS/xpmem/xpmem.spec b/SPECS/xpmem/xpmem.spec new file mode 100644 index 00000000000..953ced4e3a4 --- /dev/null +++ b/SPECS/xpmem/xpmem.spec @@ -0,0 +1,246 @@ +%{!?KMP: %global KMP 0} + +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) + +%global KVERSION %{target_kernel_version_full} +%global K_SRC /lib/modules/%{target_kernel_version_full}/build + +# %{!?KVERSION: %global KVERSION %(uname -r)} +%{!?KVERSION: %global KVERSION %{target_kernel_version_full}} +%global kernel_version %{KVERSION} +%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') +%{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} +# A separate variable _release is required because of the odd way the +# script append_number_to_package_release.sh works: +%global _release 1.2410068 + +%bcond_with kernel_only + +%if %{with kernel_only} +%undefine _debugsource_packages +%global debug_package %{nil} +%global make_kernel_only SUBDIRS=kernel +%else +%global make_kernel_only %{nil} +%endif + +%define need_firmware_dir 0%{?euleros} > 0 + +%if "%_vendor" == "openEuler" +%global __find_requires %{nil} +%endif + +Summary: Cross-partition memory +Name: xpmem +Version: 2.7.4 +Release: 1_%{_release}%{?_dist} +License: GPLv2 and LGPLv2.1 +Group: System Environment/Libraries +Vendor: Microsoft Corporation +Distribution: Azure Linux +BuildRequires: automake autoconf +URL: https://github.com/openucx/xpmem +# Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/xpmem-2.7.4.tar.gz +Source: %{name}-%{version}.tar.gz + +# name gets a different value in subpackages +%global _name %{name} +%global _kmp_rel %{release}%{?_kmp_build_num}%{?_dist} +# Required for e.g. SLES12: +%if %{undefined make_build} +%global make_build %{__make} %{?_smp_mflags} +%endif + +# Ugly workaround until anolis kmod package stops requiring +# 'kernel(' dependencies its kernel package does not provide. +# This uses the __find_provides from /usr/lib/rpm/redhat/macros +# rather than the one from /usr/lib/rpm/macros.d/macros.kmp +%if 0%{?anolis} > 0 +%{?filter_setup} +%endif + +BuildRequires: gcc +BuildRequires: make +BuildRequires: kernel-devel = %{target_kernel_version_full} +BuildRequires: kernel-headers = %{target_kernel_version_full} +BuildRequires: binutils +BuildRequires: systemd +BuildRequires: kmod +BuildRequires: mlnx-ofa_kernel-devel +BuildRequires: mlnx-ofa_kernel-source + +Requires: mlnx-ofa_kernel +Requires: mlnx-ofa_kernel-modules +Requires: kernel = %{target_kernel_version_full} +Requires: kmod + + +%description +XPMEM is a Linux kernel module that enables a process to map the +memory of another process into its virtual address space. Source code +can be obtained by cloning the Git repository, original Mercurial +repository or by downloading a tarball from the link above. + +This package includes helper tools for the kernel module. + +%if ! %{with kernel_only} +%package -n libxpmem +Summary: XPMEM: Userspace library +%description -n libxpmem +XPMEM is a Linux kernel module that enables a process to map the +memory of another process into its virtual address space. Source code +can be obtained by cloning the Git repository, original Mercurial +repository or by downloading a tarball from the link above. + + +%package -n libxpmem-devel +Summary: XPMEM: userspace library development headers +%description -n libxpmem-devel +XPMEM is a Linux kernel module that enables a process to map the +memory of another process into its virtual address space. Source code +can be obtained by cloning the Git repository, original Mercurial +repository or by downloading a tarball from the link above. + +This package includes development headers. +%endif + +# build KMP rpms? +%if "%{KMP}" == "1" +%global kernel_release() $(make -C %{1} M=$PWD kernelrelease | grep -v make) +BuildRequires: %kernel_module_package_buildreqs +%(cat > %{_builddir}/preamble << EOF +EOF) +%{kernel_module_package -r %{_kmp_rel} -p %{_builddir}/preamble} +%else # not KMP +%global kernel_source() %{K_SRC} +%global kernel_release() %{KVERSION} +%global flavors_to_build default + +%package modules +# %{nil}: to avoid having the script that build OFED-internal +# munge the release version here as well: +Release%{nil}: %{release}.kver.%{krelver} +Summary: XPMEM: kernel modules +Group: System Environment/Libraries +%description modules +XPMEM is a Linux kernel module that enables a process to map the +memory of another process into its virtual address space. Source code +can be obtained by cloning the Git repository, original Mercurial +repository or by downloading a tarball from the link above. + +This package includes the kernel module (non KMP version). +%endif #end if "%{KMP}" == "1" + +# +# setup module sign scripts if paths to the keys are given +# +%global WITH_MOD_SIGN %(if ( test -f "$MODULE_SIGN_PRIV_KEY" && test -f "$MODULE_SIGN_PUB_KEY" ); \ + then \ + echo -n '1'; \ + else \ + echo -n '0'; fi) + +%if "%{WITH_MOD_SIGN}" == "1" +# call module sign script +%global __modsign_install_post \ + $RPM_BUILD_DIR/xpmem-%{version}/tools/sign-modules $RPM_BUILD_ROOT/lib/modules/ %{kernel_source default} || exit 1 \ +%{nil} + +# Disgusting hack alert! We need to ensure we sign modules *after* all +# invocations of strip occur, which is in __debug_install_post if +# find-debuginfo.sh runs, and __os_install_post if not. +# +%define __spec_install_post \ + %{?__debug_package:%{__debug_install_post}} \ + %{__arch_install_post} \ + %{__os_install_post} \ + %{__modsign_install_post} \ +%{nil} + +%endif # end of setup module sign scripts +# + +%if 0%{?rhel} > 0 || 0%{?euleros} >= 2 +%global install_mod_dir extra/%{_name} +%endif + +%{!?install_mod_dir: %global install_mod_dir updates} + +%global moduledir /lib/modules/%{KVERSION}/%{install_mod_dir} + +%prep +%setup -q + +%build +env= +if [ "$CROSS_COMPILE" != '' ]; then + env="$env CC=${CROSS_COMPILE}gcc" +fi +./autogen.sh +%{configure} \ + --with-module-prefix= \ + --with-kerneldir=%{K_SRC} \ + $env \ + # +%{make_build} %{make_kernel_only} + +%install +%{make_install} moduledir=%{moduledir} %{make_kernel_only} +rm -rf $RPM_BUILD_ROOT/%{_libdir}/libxpmem.la +rm -rf $RPM_BUILD_ROOT/etc/init.d/xpmem +mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/modules-load.d +echo "xpmem" >$RPM_BUILD_ROOT%{_prefix}/lib/modules-load.d/xpmem.conf +%if %{with kernel_only} +rm -f $RPM_BUILD_ROOT/usr/lib*/pkgconfig/cray-xpmem.pc +%endif +%if %{need_firmware_dir} +mkdir -p $RPM_BUILD_ROOT/lib/firmware +%endif + +%clean +rm -rf $RPM_BUILD_ROOT + +%if ! %{with kernel_only} +%post -n libxpmem -p /sbin/ldconfig +%postun -n libxpmem -p /sbin/ldconfig +%endif + +%postun +if [ "$1" = 0 ]; then + if lsmod | grep -qw xpmem; then + # If the module fails to unload, give an error, + # but don't fail uninstall. User should handle this + # Maybe the module is in use + rmmod xpmem || : + fi +fi + +%files +/lib/udev/rules.d/*-xpmem.rules +%{_prefix}/lib/modules-load.d/xpmem.conf +%doc README AUTHORS COPYING COPYING.LESSER + +%if ! %{with kernel_only} +%files -n libxpmem +%{_libdir}/libxpmem.so.* + +%files -n libxpmem-devel +%{_prefix}/include/xpmem.h +%{_libdir}/libxpmem.a +%{_libdir}/libxpmem.so +%{_libdir}/pkgconfig/cray-xpmem.pc +%endif + +%if "%{KMP}" != "1" +%files modules +%{moduledir}/xpmem.ko +%endif + +%changelog +* Tue Dec 3 2024 Binu Jose Philip +- Moving to proprietary repo and add minor release prefix +* Thu Nov 07 2024 Suresh Babu Chalamalasetty +- Initial version Azure Linux + From 8389830d74accd1c4890eec829b09e83f4b8fa34 Mon Sep 17 00:00:00 2001 From: Binu Jose Philip Date: Tue, 17 Dec 2024 00:42:25 +0000 Subject: [PATCH 02/29] Add signed specs for kernel modules in mofed and dependencies --- SPECS-SIGNED/fwctl-signed/fwctl-signed.spec | 141 ++++++++++ SPECS-SIGNED/iser-signed/iser-signed.spec | 135 ++++++++++ SPECS-SIGNED/isert-signed/isert-signed.spec | 135 ++++++++++ .../knem-signed/knem-modules-signed.spec | 124 +++++++++ .../mft_kernel-signed/mft_kernel-signed.spec | 105 ++++++++ .../mlnx-nfsrdma-signed.spec | 140 ++++++++++ .../mlnx-ofa_kernel-modules-signed.spec | 252 ++++++++++++++++++ .../xpmem-signed/xpmem-modules-signed.spec | 107 ++++++++ 8 files changed, 1139 insertions(+) create mode 100644 SPECS-SIGNED/fwctl-signed/fwctl-signed.spec create mode 100644 SPECS-SIGNED/iser-signed/iser-signed.spec create mode 100644 SPECS-SIGNED/isert-signed/isert-signed.spec create mode 100644 SPECS-SIGNED/knem-signed/knem-modules-signed.spec create mode 100644 SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec create mode 100644 SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec create mode 100644 SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec create mode 100644 SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec diff --git a/SPECS-SIGNED/fwctl-signed/fwctl-signed.spec b/SPECS-SIGNED/fwctl-signed/fwctl-signed.spec new file mode 100644 index 00000000000..e4f5a47615d --- /dev/null +++ b/SPECS-SIGNED/fwctl-signed/fwctl-signed.spec @@ -0,0 +1,141 @@ +# +# Copyright (c) 2024 Nvidia Inc. All rights reserved. +# +# This software is available to you under a choice of one of two +# licenses. You may choose to be licensed under the terms of the GNU +# General Public License (GPL) Version 2, available from the file +# COPYING in the main directory of this source tree, or the +# OpenIB.org BSD license below: +# +# Redistribution and use in source and binary forms, with or +# without modification, are permitted provided that the following +# conditions are met: +# +# - Redistributions of source code must retain the above +# copyright notice, this list of conditions and the following +# disclaimer. +# +# - Redistributions in binary form must reproduce the above +# copyright notice, this list of conditions and the following +# disclaimer in the documentation and/or other materials +# provided with the distribution. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS +# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. +# + +%{!?_name: %define _name fwctl} +%{!?_version: %define _version 24.10} +%{!?_release: %define _release OFED.24.10.0.6.7.1} + +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) + +%global KVERSION %{target_kernel_version_full} +%global K_SRC /lib/modules/%{target_kernel_version_full}/build + +# KMP is disabled by default +%{!?KMP: %global KMP 0} + +# take kernel version or default to uname -r +# %{!?KVERSION: %global KVERSION %(uname -r)} +%{!?KVERSION: %global KVERSION %{target_kernel_version_full}} +%global kernel_version %{KVERSION} +%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') +# take path to kernel sources if provided, otherwise look in default location (for non KMP rpms). +%{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} + +# define release version +%{!?src_release: %global src_release %{_release}_%{krelver}} +%if "%{KMP}" != "1" +%global _release1 %{src_release} +%else +%global _release1 %{_release} +%endif +%global _kmp_rel %{_release1}%{?_kmp_build_num}%{?_dist} + +Summary: %{_name} Driver +Name: %{_name} +Version: %{_version} +Release: 1_%{_release1}%{?_dist} +License: GPLv2 +Url: http://nvidia.com +Group: System Environment/Base + +# This package's "version" and "release" must reflect the unsigned version that +# was signed. +# An important consequence is that when making a change to this package, the +# unsigned version/release must be increased to keep the two versions consistent. +# Ideally though, this spec will not change much or at all, so the version will +# just track the unsigned package's version/release. +# +# To populate these sources: +# 1. Build the unsigned packages as normal +# 2. Sign the desired binary +# 3. Place the unsigned package and signed binary in this spec's folder +# 4. Build this spec + +Source0: %{name}-%{version}-%{release}.%{_arch}.rpm +Source1: fwctl.ko +Source2: mlx5_fwctl.ko + +BuildRoot: /var/tmp/%{name}-%{version}-build +Vendor: Microsoft Corporation +Distribution: Azure Linux + +BuildRequires: gcc +BuildRequires: make +BuildRequires: kernel-devel = %{target_kernel_version_full} +BuildRequires: kernel-headers = %{target_kernel_version_full} +BuildRequires: binutils +BuildRequires: systemd +BuildRequires: kmod +BuildRequires: mlnx-ofa_kernel-devel = %{_version} +BuildRequires: mlnx-ofa_kernel-source = %{_version} + +Requires: mlnx-ofa_kernel = %{_version} +Requires: mlnx-ofa_kernel-modules = %{_version} +Requires: kernel = %{target_kernel_version_full} +Requires: kmod + +%description +fwctl signed kernel modules + +%prep + +%build +rpm2cpio %{Source0} | cpio -idmv -D %{buildroot} + +%install +cp %{Source1} %{buildroot}/lib/modules/%{KVERSION}/updates/fwctl/fwctl.ko +cp %{Source2} %{buildroot}/lib/modules/%{KVERSION}/updates/fwctl/mlx5/mlx5_fwctl.ko + +%clean +rm -rf %{buildroot} + +%post +if [ $1 -ge 1 ]; then # 1 : This package is being installed or reinstalled + /sbin/depmod %{KVERSION} +fi # 1 : closed +# END of post + +%postun +/sbin/depmod %{KVERSION} + +%if "%{KMP}" != "1" +%files +%defattr(-,root,root,-) +/lib/modules/%{KVERSION}/%{install_mod_dir}/ +%config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf +%endif + +%changelog +* Tue Dec 16 2024 Binu Jose Philip - 24.10.0.6.7.1 +- Creating signed spec diff --git a/SPECS-SIGNED/iser-signed/iser-signed.spec b/SPECS-SIGNED/iser-signed/iser-signed.spec new file mode 100644 index 00000000000..8da99405b7d --- /dev/null +++ b/SPECS-SIGNED/iser-signed/iser-signed.spec @@ -0,0 +1,135 @@ +# +# Copyright (c) 2014 Mellanox Technologies. All rights reserved. +# +# This Software is licensed under one of the following licenses: +# +# 1) under the terms of the "Common Public License 1.0" a copy of which is +# available from the Open Source Initiative, see +# http://www.opensource.org/licenses/cpl.php. +# +# 2) under the terms of the "The BSD License" a copy of which is +# available from the Open Source Initiative, see +# http://www.opensource.org/licenses/bsd-license.php. +# +# 3) under the terms of the "GNU General Public License (GPL) Version 2" a +# copy of which is available from the Open Source Initiative, see +# http://www.opensource.org/licenses/gpl-license.php. +# +# Licensee has the right to choose one of the above licenses. +# +# Redistributions of source code must retain the above copyright +# notice and one of the license notices. +# +# Redistributions in binary form must reproduce both the above copyright +# notice, one of the license notices in the documentation +# and/or other materials provided with the distribution. +# +# + +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) + +%global KVERSION %{target_kernel_version_full} +%global K_SRC /lib/modules/%{target_kernel_version_full}/build + +%{!?_name: %define _name iser} +%{!?_version: %define _version 24.10} +%{!?_release: %define _release OFED.24.10.0.6.7.1} + +# KMP is disabled by default +%{!?KMP: %global KMP 0} + +# take kernel version or default to uname -r +# %{!?KVERSION: %global KVERSION %(uname -r)} +%{!?KVERSION: %global KVERSION %{target_kernel_version_full}} +%global kernel_version %{KVERSION} +%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') +# take path to kernel sources if provided, otherwise look in default location (for non KMP rpms). +# %{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} + +# define release version +%{!?src_release: %global src_release %{_release}_%{krelver}} +%if "%{KMP}" != "1" +%global _release1 %{src_release} +%else +%global _release1 %{_release} +%endif +%global _kmp_rel %{_release1}%{?_kmp_build_num}%{?_dist} + +Summary: %{_name} Driver +Name: %{_name} +Version: %{_version} +Release: 1_%{_release1}%{?_dist} +License: GPLv2 +Url: http://www.mellanox.com +Group: System Environment/Base + +# This package's "version" and "release" must reflect the unsigned version that +# was signed. +# An important consequence is that when making a change to this package, the +# unsigned version/release must be increased to keep the two versions consistent. +# Ideally though, this spec will not change much or at all, so the version will +# just track the unsigned package's version/release. +# +# To populate these sources: +# 1. Build the unsigned packages as normal +# 2. Sign the desired binary +# 3. Place the unsigned package and signed binary in this spec's folder +# 4. Build this spec + +Source0: %{name}-%{version}-%{release}.%{_arch}.rpm +Source1: ib_iser.ko + +BuildRoot: /var/tmp/%{name}-%{version}-build +Vendor: Microsoft Corporation +Distribution: Azure Linux + +BuildRequires: gcc +BuildRequires: make +BuildRequires: kernel-devel = %{target_kernel_version_full} +BuildRequires: kernel-headers = %{target_kernel_version_full} +BuildRequires: binutils +BuildRequires: systemd +BuildRequires: kmod +BuildRequires: mlnx-ofa_kernel-devel = %{_version} +BuildRequires: mlnx-ofa_kernel-source = %{_version} + +Requires: mlnx-ofa_kernel = %{_version} +Requires: mlnx-ofa_kernel-modules = %{_version} +Requires: kernel = %{target_kernel_version_full} +Requires: kmod + +%description +iser signed kernel modules + +%prep + +%build +rpm2cpio %{Source0} | cpio -idmv -D %{buildroot} + +%install +cp %{Source1} %{buildroot}/lib/modules/%{KVERSION}/updates/iser/ib_iser.ko + +%clean +rm -rf %{buildroot} + +%post +if [ $1 -ge 1 ]; then # 1 : This package is being installed or reinstalled + /sbin/depmod %{KVERSION} +fi # 1 : closed +# END of post + +%postun +/sbin/depmod %{KVERSION} + +%if "%{KMP}" != "1" +%files +%defattr(-,root,root,-) +/lib/modules/%{KVERSION}/%{install_mod_dir}/ +%config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf +%endif + +%changelog +* Tue Dec 16 2024 Binu Jose Philip - 24.10.0.6.7.1 +- Creating signed spec diff --git a/SPECS-SIGNED/isert-signed/isert-signed.spec b/SPECS-SIGNED/isert-signed/isert-signed.spec new file mode 100644 index 00000000000..ba85dab187f --- /dev/null +++ b/SPECS-SIGNED/isert-signed/isert-signed.spec @@ -0,0 +1,135 @@ +# +# Copyright (c) 2014 Mellanox Technologies. All rights reserved. +# +# This Software is licensed under one of the following licenses: +# +# 1) under the terms of the "Common Public License 1.0" a copy of which is +# available from the Open Source Initiative, see +# http://www.opensource.org/licenses/cpl.php. +# +# 2) under the terms of the "The BSD License" a copy of which is +# available from the Open Source Initiative, see +# http://www.opensource.org/licenses/bsd-license.php. +# +# 3) under the terms of the "GNU General Public License (GPL) Version 2" a +# copy of which is available from the Open Source Initiative, see +# http://www.opensource.org/licenses/gpl-license.php. +# +# Licensee has the right to choose one of the above licenses. +# +# Redistributions of source code must retain the above copyright +# notice and one of the license notices. +# +# Redistributions in binary form must reproduce both the above copyright +# notice, one of the license notices in the documentation +# and/or other materials provided with the distribution. +# +# + +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) + +%global KVERSION %{target_kernel_version_full} +%global K_SRC /lib/modules/%{target_kernel_version_full}/build + +%{!?_name: %define _name isert} +%{!?_version: %define _version 24.10} +%{!?_release: %define _release OFED.24.10.0.6.7.1} + +# KMP is disabled by default +%{!?KMP: %global KMP 0} + +# take kernel version or default to uname -r +# %{!?KVERSION: %global KVERSION %(uname -r)} +%{!?KVERSION: %global KVERSION %{target_kernel_version_full}} +%global kernel_version %{KVERSION} +%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') +# take path to kernel sources if provided, otherwise look in default location (for non KMP rpms). +# %{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} + +# define release version +%{!?src_release: %global src_release %{_release}_%{krelver}} +%if "%{KMP}" != "1" +%global _release1 %{src_release} +%else +%global _release1 %{_release} +%endif +%global _kmp_rel %{_release1}%{?_kmp_build_num}%{?_dist} + +Summary: %{_name} Driver +Name: %{_name} +Version: %{_version} +Release: 1_%{_release1}%{?_dist} +License: GPLv2 +Url: http://www.mellanox.com +Group: System Environment/Base + +# This package's "version" and "release" must reflect the unsigned version that +# was signed. +# An important consequence is that when making a change to this package, the +# unsigned version/release must be increased to keep the two versions consistent. +# Ideally though, this spec will not change much or at all, so the version will +# just track the unsigned package's version/release. +# +# To populate these sources: +# 1. Build the unsigned packages as normal +# 2. Sign the desired binary +# 3. Place the unsigned package and signed binary in this spec's folder +# 4. Build this spec + +Source0: %{name}-%{version}-%{release}.%{_arch}.rpm +Source1: ib_isert.ko + +BuildRoot: /var/tmp/%{name}-%{version}-build +Vendor: Microsoft Corporation +Distribution: Azure Linux + +BuildRequires: gcc +BuildRequires: make +BuildRequires: kernel-devel = %{target_kernel_version_full} +BuildRequires: kernel-headers = %{target_kernel_version_full} +BuildRequires: binutils +BuildRequires: systemd +BuildRequires: kmod +BuildRequires: mlnx-ofa_kernel-devel = %{_version} +BuildRequires: mlnx-ofa_kernel-source = %{_version} + +Requires: mlnx-ofa_kernel = %{_version} +Requires: mlnx-ofa_kernel-modules = %{_version} +Requires: kernel = %{target_kernel_version_full} +Requires: kmod + +%description +isert signed kernel modules + +%prep + +%build +rpm2cpio %{Source0} | cpio -idmv -D %{buildroot} + +%install +cp %{Source1} %{buildroot}/lib/modules/%{KVERSION}/updates/isert/ib_isert.ko + +%clean +rm -rf %{buildroot} + +%post +if [ $1 -ge 1 ]; then # 1 : This package is being installed or reinstalled + /sbin/depmod %{KVERSION} +fi # 1 : closed +# END of post + +%postun +/sbin/depmod %{KVERSION} + +%if "%{KMP}" != "1" +%files +%defattr(-,root,root,-) +/lib/modules/%{KVERSION}/%{install_mod_dir}/ +%config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf +%endif + +%changelog +* Tue Dec 16 2024 Binu Jose Philip - 24.10.0.6.7.1 +- Creating signed spec diff --git a/SPECS-SIGNED/knem-signed/knem-modules-signed.spec b/SPECS-SIGNED/knem-signed/knem-modules-signed.spec new file mode 100644 index 00000000000..08d06deb169 --- /dev/null +++ b/SPECS-SIGNED/knem-signed/knem-modules-signed.spec @@ -0,0 +1,124 @@ +# Copyright © INRIA 2009-2010 +# Brice Goglin +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. The name of the author may not be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# KMP is disabled by default +%{!?KMP: %global KMP 0} + +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) + +%global KVERSION %{target_kernel_version_full} +%global K_SRC /lib/modules/%{target_kernel_version_full}/build + +%{!?_release: %global _release OFED.23.10.0.2.1.1} +# %{!?KVERSION: %global KVERSION %(uname -r)} +%global kernel_version %{KVERSION} +%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') +%{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} +%global _kmp_rel %{_release}%{?_kmp_build_num}%{?_dist} +%global IS_RHEL_VENDOR "%{_vendor}" == "redhat" || ("%{_vendor}" == "bclinux") || ("%{_vendor}" == "openEuler") +%global KMOD_PREAMBLE "%{_vendor}" != "openEuler" + +# set package name +%{!?_name: %global _name knem} +%global non_kmp_pname %{_name}-modules + +# knem-modules is a sub-package in SPECS/knem. We are making that into a +# main package for signing. + +Summary: KNEM: High-Performance Intra-Node MPI Communication +Name: %{_name}-modules +Version: 1.1.4.90mlnx3 +Release: 1_%{_release}%{?_dist} +Provides: knem-mlnx = %{version}-%{release} +Obsoletes: knem-mlnx < %{version}-%{release} +License: BSD and GPLv2 +Group: System Environment/Libraries +Vendor: Microsoft Corporation +Distribution: Azure Linux + +# This package's "version" and "release" must reflect the unsigned version that +# was signed. +# An important consequence is that when making a change to this package, the +# unsigned version/release must be increased to keep the two versions consistent. +# Ideally though, this spec will not change much or at all, so the version will +# just track the unsigned package's version/release. +# +# To populate these sources: +# 1. Build the unsigned packages as normal +# 2. Sign the desired binary +# 3. Place the unsigned package and signed binary in this spec's folder +# 4. Build this spec + +Source0: %{name}-%{version}-%{release}.%{_arch}.rpm +Source1: knem.ko +BuildRoot: /var/tmp/%{name}-%{version}-build + +BuildRequires: gcc +BuildRequires: make +BuildRequires: kernel-devel = %{target_kernel_version_full} +BuildRequires: kernel-headers = %{target_kernel_version_full} +BuildRequires: binutils +BuildRequires: systemd +BuildRequires: kmod + +Requires: kernel = %{target_kernel_version_full} +Requires: kmod + +%description +KNEM is a Linux kernel module enabling high-performance intra-node MPI communication for large messages. KNEM offers support for asynchronous and vectorial data transfers as well as offloading memory copies on to Intel I/OAT hardware. +See http://knem.gitlabpages.inria.fr for details. + +%global debug_package %{nil} + +%prep + +%build +rpm2cpio %{Source0} | cpio -idmv -D %{buildroot} + +%install +cp %{Source1} %{buildroot}/lib/modules/%{KVERSION}/extra/knem/knem.ko + +%clean +rm -rf %{buildroot} + +%post +depmod %{KVERSION} -a + +%postun +if [ $1 = 0 ]; then # 1 : Erase, not upgrade + depmod %{KVERSION} -a +fi +%endif # end KMP=1 + +%if "%{KMP}" != "1" +%files +/lib/modules/%{KVERSION}/%{install_mod_dir}/ +%endif + +%changelog +* Tue Dec 16 2024 Binu Jose Philip - 1.1.4.90mlnx3 +- Creating signed spec diff --git a/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec b/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec new file mode 100644 index 00000000000..2a6e7eddfdf --- /dev/null +++ b/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec @@ -0,0 +1,105 @@ + +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) + +%global KVERSION %{target_kernel_version_full} +%global K_SRC /lib/modules/%{target_kernel_version_full}/build + +# KMP is disabled by default +%{!?KMP: %global KMP 0} + +# take cpu arch from uname -m +%global _cpu_arch %(uname -m) +%global docdir /etc/mft +%global mlxfwreset_ko_path %{docdir}/mlxfwreset/ + + +# take kernel version or default to uname -r +# %{!?KVERSION: %global KVERSION %(uname -r)} +%{!?KVERSION: %global KVERSION %{target_kernel_version_full}} +%global kernel_version %{KVERSION} +%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') +# take path to kernel sources if provided, otherwise look in default location (for non KMP rpms). +%{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} + +%if "%{KMP}" == "1" +%global _name kernel-mft-mlnx +%else +%global _name kernel-mft +%endif + +%{!?version: %global version 4.30.0} +%{!?_release: %global _release 1} +%global _kmp_rel %{_release}%{?_kmp_build_num}%{?_dist} + +Name: %{_name} +Summary: %{name} Kernel Module for the %{KVERSION} kernel +Version: %{version} +Release: 1_%{!?source:%{krelver}%{?_dist}}%{?source:%{_release}%{?_dist}} +License: Dual BSD/GPL +Group: System Environment/Kernel +BuildRoot: /var/tmp/%{name}-%{version}-build + +# This package's "version" and "release" must reflect the unsigned version that +# was signed. +# An important consequence is that when making a change to this package, the +# unsigned version/release must be increased to keep the two versions consistent. +# Ideally though, this spec will not change much or at all, so the version will +# just track the unsigned package's version/release. +# +# To populate these sources: +# 1. Build the unsigned packages as normal +# 2. Sign the desired binary +# 3. Place the unsigned package and signed binary in this spec's folder +# 4. Build this spec + +Source0: %{name}-%{version}-%{release}.%{_arch}.rpm +Source1: mst_pci.ko +Source2: mst_pciconf.ko +Vendor: Microsoft Corporation +Distribution: Azure Linux + +BuildRequires: gcc +BuildRequires: make +BuildRequires: kernel-devel = %{target_kernel_version_full} +BuildRequires: kernel-headers = %{target_kernel_version_full} +BuildRequires: binutils +BuildRequires: systemd +BuildRequires: kmod + +Requires: kernel = %{target_kernel_version_full} +Requires: kmod + +%description +mft kernel module(s) + +%global debug_package %{nil} + +%prep + +%build +rpm2cpio %{Source0} | cpio -idmv -D %{buildroot} + +%install +cp %{Source1} %{buildroot}/lib/modules/%{KVERSION}/updates/mst_pci.ko +cp %{Source2} %{buildroot}/lib/modules/%{KVERSION}/updates/mst_pciconf.ko + +%clean +rm -rf %{buildroot} + +%post +/sbin/depmod %{KVERSION} + +%postun +/sbin/depmod %{KVERSION} + +%if "%{KMP}" != "1" +%files +%defattr(-,root,root,-) +/lib/modules/%{KVERSION}/%{install_mod_dir}/ +%endif + +%changelog +* Tue Dec 16 2024 Binu Jose Philip - 4.30.0 +- Creating signed spec diff --git a/SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec b/SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec new file mode 100644 index 00000000000..8fef5e2e361 --- /dev/null +++ b/SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec @@ -0,0 +1,140 @@ +# +# Copyright (c) 2016 Mellanox Technologies. All rights reserved. +# +# This Software is licensed under one of the following licenses: +# +# 1) under the terms of the "Common Public License 1.0" a copy of which is +# available from the Open Source Initiative, see +# http://www.opensource.org/licenses/cpl.php. +# +# 2) under the terms of the "The BSD License" a copy of which is +# available from the Open Source Initiative, see +# http://www.opensource.org/licenses/bsd-license.php. +# +# 3) under the terms of the "GNU General Public License (GPL) Version 2" a +# copy of which is available from the Open Source Initiative, see +# http://www.opensource.org/licenses/gpl-license.php. +# +# Licensee has the right to choose one of the above licenses. +# +# Redistributions of source code must retain the above copyright +# notice and one of the license notices. +# +# Redistributions in binary form must reproduce both the above copyright +# notice, one of the license notices in the documentation +# and/or other materials provided with the distribution. +# +# + +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) + +%global KVERSION %{target_kernel_version_full} +%global K_SRC /lib/modules/%{target_kernel_version_full}/build + +%{!?_name: %define _name mlnx-nfsrdma} +%{!?_version: %define _version 24.10} +%{!?_release: %define _release OFED.24.10.0.6.7.1} + +# KMP is disabled by default +%{!?KMP: %global KMP 0} + +# take kernel version or default to uname -r +# %{!?KVERSION: %global KVERSION %(uname -r)} +%{!?KVERSION: %global KVERSION %{target_kernel_version_full}} +%global kernel_version %{KVERSION} +%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') +# take path to kernel sources if provided, otherwise look in default location (for non KMP rpms). +%{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} + +# define release version +%{!?src_release: %global src_release %{_release}_%{krelver}} +%if "%{KMP}" != "1" +%global _release1 %{src_release} +%else +%global _release1 %{_release} +%endif +%global _kmp_rel %{_release1}%{?_kmp_build_num}%{?_dist} + +Summary: %{_name} Driver +Name: %{_name} +Version: %{_version} +Release: 1_%{_release1}%{?_dist} +License: GPLv2 +Url: http://www.mellanox.com +Group: System Environment/Base + + +# This package's "version" and "release" must reflect the unsigned version that +# was signed. +# An important consequence is that when making a change to this package, the +# unsigned version/release must be increased to keep the two versions consistent. +# Ideally though, this spec will not change much or at all, so the version will +# just track the unsigned package's version/release. +# +# To populate these sources: +# 1. Build the unsigned packages as normal +# 2. Sign the desired binary +# 3. Place the unsigned package and signed binary in this spec's folder +# 4. Build this spec + +Source0: %{name}-%{version}-%{release}.%{_arch}.rpm +Source1: rpcrdma.ko +Source2: svcrdma.ko +Source3: xprtrdma.ko + +BuildRoot: /var/tmp/%{name}-%{version}-build +Vendor: Microsoft Corporation +Distribution: Azure Linux + +BuildRequires: gcc +BuildRequires: make +BuildRequires: kernel-devel = %{target_kernel_version_full} +BuildRequires: kernel-headers = %{target_kernel_version_full} +BuildRequires: binutils +BuildRequires: systemd +BuildRequires: kmod +BuildRequires: mlnx-ofa_kernel-devel = %{_version} +BuildRequires: mlnx-ofa_kernel-source = %{_version} + +Requires: mlnx-ofa_kernel = %{_version} +Requires: mlnx-ofa_kernel-modules = %{_version} +Requires: kernel = %{target_kernel_version_full} +Requires: kmod + +%description +mellanox rdma signed kernel modules + +%prep + +%build +rpm2cpio %{Source0} | cpio -idmv -D %{buildroot} + +%install +cp %{Source1} %{buildroot}/lib/modules/%{KVERSION}/updates/mlnx-nfsrdma/rpcrdma.ko +cp %{Source2} %{buildroot}/lib/modules/%{KVERSION}/updates/mlnx-nfsrdma/svcrdma.ko +cp %{Source2} %{buildroot}/lib/modules/%{KVERSION}/updates/mlnx-nfsrdma/xprtrdma.ko + +%clean +rm -rf %{buildroot} + +%post +if [ $1 -ge 1 ]; then # This package is being installed or reinstalled + /sbin/depmod %{KVERSION} +fi +# END of post + +%postun +/sbin/depmod %{KVERSION} + +%if "%{KMP}" != "1" +%files +%defattr(-,root,root,-) +/lib/modules/%{KVERSION}/%{install_mod_dir}/ +%config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf +%endif + +%changelog +* Tue Dec 16 2024 Binu Jose Philip - 24.10.0.6.7.1 +- Creating signed spec diff --git a/SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec b/SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec new file mode 100644 index 00000000000..30ea215174e --- /dev/null +++ b/SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec @@ -0,0 +1,252 @@ +# +# Copyright (c) 2012 Mellanox Technologies. All rights reserved. +# +# This Software is licensed under one of the following licenses: +# +# 1) under the terms of the "Common Public License 1.0" a copy of which is +# available from the Open Source Initiative, see +# http://www.opensource.org/licenses/cpl.php. +# +# 2) under the terms of the "The BSD License" a copy of which is +# available from the Open Source Initiative, see +# http://www.opensource.org/licenses/bsd-license.php. +# +# 3) under the terms of the "GNU General Public License (GPL) Version 2" a +# copy of which is available from the Open Source Initiative, see +# http://www.opensource.org/licenses/gpl-license.php. +# +# Licensee has the right to choose one of the above licenses. +# +# Redistributions of source code must retain the above copyright +# notice and one of the license notices. +# +# Redistributions in binary form must reproduce both the above copyright +# notice, one of the license notices in the documentation +# and/or other materials provided with the distribution. +# +# + +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) + +%global KVERSION %{target_kernel_version_full} +%global K_SRC /lib/modules/%{target_kernel_version_full}/build + +# KMP is disabled by default +%{!?KMP: %global KMP 0} + +%global WITH_SYSTEMD %(if ( test -d "%{_unitdir}" > /dev/null); then echo -n '1'; else echo -n '0'; fi) + +%{!?configure_options: %global configure_options --with-core-mod --with-user_mad-mod --with-user_access-mod --with-addr_trans-mod --with-mlx5-mod --with-mlxfw-mod --with-ipoib-mod} + +%global MEMTRACK %(if ( echo %{configure_options} | grep "with-memtrack" > /dev/null ); then echo -n '1'; else echo -n '0'; fi) +%global MADEYE %(if ( echo %{configure_options} | grep "with-madeye-mod" > /dev/null ); then echo -n '1'; else echo -n '0'; fi) + +%global WINDRIVER %(if (grep -qiE "Wind River" /etc/issue /etc/*release* 2>/dev/null); then echo -n '1'; else echo -n '0'; fi) +%global POWERKVM %(if (grep -qiE "powerkvm" /etc/issue /etc/*release* 2>/dev/null); then echo -n '1'; else echo -n '0'; fi) +%global BLUENIX %(if (grep -qiE "Bluenix" /etc/issue /etc/*release* 2>/dev/null); then echo -n '1'; else echo -n '0'; fi) +%global XENSERVER65 %(if (grep -qiE "XenServer.*6\.5" /etc/issue /etc/*release* 2>/dev/null); then echo -n '1'; else echo -n '0'; fi) + +%global IS_RHEL_VENDOR "%{_vendor}" == "redhat" || ("%{_vendor}" == "bclinux") || ("%{_vendor}" == "openEuler") +%global KMOD_PREAMBLE "%{_vendor}" != "openEuler" + +# MarinerOS 1.0 sets -fPIE in the hardening cflags +# (in the gcc specs file). +# This seems to break only this package and not other kernel packages. +%if "%{_vendor}" == "mariner" || "%{_vendor}" == "azl" || "%{_vendor}" == "azurelinux" || (0%{?rhel} >= 10) +%global _hardened_cflags %{nil} +%endif + +# WA: Centos Stream 10 kernel doesn't support PIC mode, so we removed the following flags +%if (0%{?rhel} >= 10) +%global _hardening_gcc_ldflags %{nil} +%global _gcc_lto_cflags %{nil} +%endif + +# %{!?KVERSION: %global KVERSION %(uname -r)} +%{!?KVERSION: %global KVERSION %{target_kernel_version_full}} +%global kernel_version %{KVERSION} +%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') +# take path to kernel sources if provided, otherwise look in default location (for non KMP rpms). +%{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} + +# Select packages to build + +# Kernel module packages to be included into kernel-ib +%global build_ipoib %(if ( echo %{configure_options} | grep "with-ipoib-mod" > /dev/null ); then echo -n '1'; else echo -n '0'; fi) +%global build_oiscsi %(if ( echo %{configure_options} | grep "with-iscsi-mod" > /dev/null ); then echo -n '1'; else echo -n '0'; fi) +%global build_mlx5 %(if ( echo %{configure_options} | grep "with-mlx5-mod" > /dev/null ); then echo -n '1'; else echo -n '0'; fi) + +%{!?LIB_MOD_DIR: %global LIB_MOD_DIR /lib/modules/%{KVERSION}/updates} + +%{!?IB_CONF_DIR: %global IB_CONF_DIR /etc/infiniband} + +%{!?KERNEL_SOURCES: %global KERNEL_SOURCES /lib/modules/%{KVERSION}/source} + +%{!?_name: %global _name mlnx-ofa_kernel} +%{!?_version: %global _version 24.10} +%{!?_release: %global _release OFED.24.10.0.7.0.1} +%global _kmp_rel %{_release}%{?_kmp_build_num}%{?_dist} + +%global utils_pname %{_name} +%global devel_pname %{_name}-devel +%global non_kmp_pname %{_name}-modules + +# mlnx-ofa_kernel-modules is a sub-package in SPECS/mlnx-ofa_kernel. +# We are making that into a main package for signing. + +Summary: Infiniband HCA Driver +Name: %{_name}-modules +Version: %{_version} +Release: 1_%{_release}%{?_dist} +License: GPLv2 +Url: http://www.mellanox.com/ +Group: System Environment/Base + +# This package's "version" and "release" must reflect the unsigned version that +# was signed. +# An important consequence is that when making a change to this package, the +# unsigned version/release must be increased to keep the two versions consistent. +# Ideally though, this spec will not change much or at all, so the version will +# just track the unsigned package's version/release. +# +# To populate these sources: +# 1. Build the unsigned packages as normal +# 2. Sign the desired binary +# 3. Place the unsigned package and signed binary in this spec's folder +# 4. Build this spec + +Source0: %{name}-%{version}-%{release}.%{_arch}.rpm +Source1: mlx_compat.ko +Source2: ib_cm.ko +Source3: ib_core.ko +Source4: ib_ucm.ko +Source5: ib_umad.ko +Source6: ib_uverbs.ko +Source7: iw_cm.ko +Source8: rdma_cm.ko +Source9: rdma_ucm.ko +Source10: bnxt_re.ko +Source11: efa.ko +Source12: mlx4_ib.ko +Source13: mlx5_ib.ko +Source14: rdma_rxe.ko +Source15: ib_ipoib.ko +Source16: ib_iser.ko +Source17: ib_isert.ko +Source18: ib_srp.ko +Source19: mlx5_core.ko +Source10: mlxfw.ko +Source11: mlxsw_spectrum.ko +Source12: nvme-rdma.ko +Source13: nvmet-rdma.ko +Source14: mlxdevm.ko +Source15: smc.ko +Source16: smc_diag.ko +Source17: rpcrdma.ko +Source18: svcrdma.ko +Source19: xprtrdma.ko + +BuildRoot: /var/tmp/%{name}-%{version}-build +Vendor: Microsoft Corporation +Distribution: Azure Linux + +Obsoletes: kernel-ib +Obsoletes: mlnx-en +Obsoletes: mlnx_en +Obsoletes: mlnx-en-utils +Obsoletes: kmod-mlnx-en +Obsoletes: mlnx-en-kmp-default +Obsoletes: mlnx-en-kmp-xen +Obsoletes: mlnx-en-kmp-trace +Obsoletes: mlnx-en-doc +Obsoletes: mlnx-en-debuginfo +Obsoletes: mlnx-en-sources + +BuildRequires: kernel-devel = %{target_kernel_version_full} +BuildRequires: kernel-headers = %{target_kernel_version_full} +BuildRequires: binutils +BuildRequires: kmod +BuildRequires: libstdc++-devel +BuildRequires: libunwind-devel +BuildRequires: pkgconfig + +Requires: kernel = %{target_kernel_version_full} +Requires: kmod +Requires: libstdc++ +Requires: libunwind + +Requires: mlnx-tools >= 5.2.0 +Requires: coreutils +Requires: pciutils +Requires: grep +Requires: procps +Requires: module-init-tools +Requires: lsof +Requires: ofed-scripts + + +%if "%{KMP}" == "1" +BuildRequires: %kernel_module_package_buildreqs +BuildRequires: /usr/bin/perl +%endif + +%description +Mellanox infiniband kernel modules. +The driver sources are located at: http://www.mellanox.com/downloads/ + +%prep + +%build +rpm2cpio %{Source0} | cpio -idmv -D %{buildroot} + +%install +cp %{Source1} %{buildroot}/lib/modules/%{KVERSION}/updates/compat/mlx_compat.ko +cp %{Source2} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/ib_cm.ko +cp %{Source3} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/ib_core.ko +cp %{Source4} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/ib_ucm.ko +cp %{Source5} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/ib_umad.ko +cp %{Source6} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/ib_uverbs.ko +cp %{Source7} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/iw_cm.ko +cp %{Source8} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/rdma_cm.ko +cp %{Source9} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/rdma_ucm.ko +cp %{Source10} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/hw/bnxt_re/bnxt_re.ko +cp %{Source11} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/hw/efa/efa.ko +cp %{Source12} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/hw/mlx4/mlx4_ib.ko +cp %{Source13} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/hw/mlx5/mlx5_ib.ko +cp %{Source14} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/sw/rxe/rdma_rxe.ko +cp %{Source15} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/ulp/ipoib/ib_ipoib.ko +cp %{Source16} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/ulp/iser/ib_iser.ko +cp %{Source17} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/ulp/isert/ib_isert.ko +cp %{Source18} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/ulp/srp/ib_srp.ko +cp %{Source19} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.ko +cp %{Source10} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/net/ethernet/mellanox/mlxfw/mlxfw.ko +cp %{Source11} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/net/ethernet/mellanox/mlxsw/mlxsw_spectrum.ko +cp %{Source12} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/nvme/host/nvme-rdma.ko +cp %{Source13} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/nvme/target/nvmet-rdma.ko +cp %{Source14} %{buildroot}/lib/modules/%{KVERSION}/updates/net/mlxdevm/mlxdevm.ko +cp %{Source15} %{buildroot}/lib/modules/%{KVERSION}/updates/net/smc/smc.ko +cp %{Source16} %{buildroot}/lib/modules/%{KVERSION}/updates/net/smc/smc_diag.ko +cp %{Source17} %{buildroot}/lib/modules/%{KVERSION}/updates/net/sunrpc/xprtrdma/rpcrdma.ko +cp %{Source18} %{buildroot}/lib/modules/%{KVERSION}/updates/net/sunrpc/xprtrdma/svcrdma.ko +cp %{Source19} %{buildroot}/lib/modules/%{KVERSION}/updates/net/sunrpc/xprtrdma/xprtrdma.ko + +%clean +rm -rf %{buildroot} + +%post +/sbin/depmod %{KVERSION} + +%postun +if [ $1 = 0 ]; then # 1 : Erase, not upgrade + /sbin/depmod %{KVERSION} +fi + +%files +/lib/modules/%{KVERSION}/%{install_mod_dir}/ +%endif + +%changelog +* Tue Dec 16 2024 Binu Jose Philip - 24.10 +- Creating signed spec diff --git a/SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec b/SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec new file mode 100644 index 00000000000..222fec07863 --- /dev/null +++ b/SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec @@ -0,0 +1,107 @@ +%{!?KMP: %global KMP 0} + +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) +%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) + +%global KVERSION %{target_kernel_version_full} +%global K_SRC /lib/modules/%{target_kernel_version_full}/build + +# %{!?KVERSION: %global KVERSION %(uname -r)} +%{!?KVERSION: %global KVERSION %{target_kernel_version_full}} +%global kernel_version %{KVERSION} +%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') +%{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} +# A separate variable _release is required because of the odd way the +# script append_number_to_package_release.sh works: +%global _release 1.2410068 + +%bcond_with kernel_only + +%if %{with kernel_only} +%undefine _debugsource_packages +%global debug_package %{nil} +%global make_kernel_only SUBDIRS=kernel +%else +%global make_kernel_only %{nil} +%endif + +%define need_firmware_dir 0%{?euleros} > 0 + +%if "%_vendor" == "openEuler" +%global __find_requires %{nil} +%endif + +# xpmem-modules is a sub-package in SPECS/xpmem. +# We are making that into a main package for signing. + +Summary: Cross-partition memory +Name: xpmem-modules +Version: 2.7.4 +Release: 1_%{_release}%{?_dist} +License: GPLv2 and LGPLv2.1 +Group: System Environment/Libraries +Vendor: Microsoft Corporation +Distribution: Azure Linux +BuildRequires: automake autoconf +URL: https://github.com/openucx/xpmem + +# This package's "version" and "release" must reflect the unsigned version that +# was signed. +# An important consequence is that when making a change to this package, the +# unsigned version/release must be increased to keep the two versions consistent. +# Ideally though, this spec will not change much or at all, so the version will +# just track the unsigned package's version/release. +# +# To populate these sources: +# 1. Build the unsigned packages as normal +# 2. Sign the desired binary +# 3. Place the unsigned package and signed binary in this spec's folder +# 4. Build this spec + +Source0: %{name}-%{version}-%{release}.%{_arch}.rpm +Source1: xpmem.ko + +BuildRequires: gcc +BuildRequires: make +BuildRequires: kernel-devel = %{target_kernel_version_full} +BuildRequires: kernel-headers = %{target_kernel_version_full} +BuildRequires: binutils +BuildRequires: systemd +BuildRequires: kmod +BuildRequires: mlnx-ofa_kernel-devel +BuildRequires: mlnx-ofa_kernel-source + +Requires: mlnx-ofa_kernel +Requires: mlnx-ofa_kernel-modules +Requires: kernel = %{target_kernel_version_full} +Requires: kmod + +%description +XPMEM is a Linux kernel module that enables a process to map the +memory of another process into its virtual address space. Source code +can be obtained by cloning the Git repository, original Mercurial +repository or by downloading a tarball from the link above. + +This package includes the kernel module. + +%prep + +%build +rpm2cpio %{Source0} | cpio -idmv -D %{buildroot} + +%install +cp %{Source1} %{buildroot}/lib/modules/%{KVERSION}/updates/xpmem.ko + +%clean +rm -rf %{buildroot} + +%if "%{KMP}" != "1" +%files modules +/lib/modules/%{KVERSION}/%{install_mod_dir}/xpmem.ko +%endif + +%changelog +* Tue Dec 16 2024 Binu Jose Philip - 2.7.4 +- Creating signed spec + From 27600fbe45827da056f5538aa5def360b942cfd2 Mon Sep 17 00:00:00 2001 From: Binu Jose Philip Date: Tue, 17 Dec 2024 19:01:06 +0000 Subject: [PATCH 03/29] update cgmanifest with new packages --- SPECS/mlnx-iproute2/mlnx-iproute2.spec | 2 +- .../mlx-steering-dump/mlx-steering-dump.spec | 2 +- cgmanifest.json | 170 ++++++++++++++++++ 3 files changed, 172 insertions(+), 2 deletions(-) diff --git a/SPECS/mlnx-iproute2/mlnx-iproute2.spec b/SPECS/mlnx-iproute2/mlnx-iproute2.spec index d9bbc8647e7..b555f97423a 100644 --- a/SPECS/mlnx-iproute2/mlnx-iproute2.spec +++ b/SPECS/mlnx-iproute2/mlnx-iproute2.spec @@ -40,7 +40,7 @@ License: GPL Group: Networking/Admin Vendor: Microsoft Corporation Distribution: Azure Linux -# Source0: http://www.kernel.org/pub/linux/utils/net/iproute2/%{name}-%{version}.tar.gz +# Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/mlnx-iproute2-6.10.0.tar.gz Source0: %{name}-%{version}.tar.gz URL: http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2 diff --git a/SPECS/mlx-steering-dump/mlx-steering-dump.spec b/SPECS/mlx-steering-dump/mlx-steering-dump.spec index 98480723237..c2499d4bfd1 100644 --- a/SPECS/mlx-steering-dump/mlx-steering-dump.spec +++ b/SPECS/mlx-steering-dump/mlx-steering-dump.spec @@ -33,7 +33,7 @@ Release: 1%{?_dist}.2410068 License: GPLv2 Url: https://github.com/Mellanox/mlx_steering_dump Group: Applications/System -# Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/mlx-steering-dump-1.0.0.tar.gz +# Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/mlx-steering-dump-1.0.0.tar.gz Source: mlx-steering-dump-1.0.0.tar.gz BuildRoot: /var/tmp/%{name}-%{version}-build Vendor: Microsoft Corporation diff --git a/cgmanifest.json b/cgmanifest.json index 66a68e721c3..ea975ebef7d 100644 --- a/cgmanifest.json +++ b/cgmanifest.json @@ -3995,6 +3995,16 @@ } } }, + { + "component": { + "type": "other", + "other": { + "name": "fwctl", + "version": "24.10", + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/fwctl-24.10.tgz" + } + } + }, { "component": { "type": "other", @@ -6975,6 +6985,26 @@ } } }, + { + "component": { + "type": "other", + "other": { + "name": "ibarr", + "version": "0.1.3", + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/ibarr-0.1.3.tar.gz" + } + } + }, + { + "component": { + "type": "other", + "other": { + "name": "ibsim", + "version": "0.12", + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/ibsim-0.12.tar.gz" + } + } + }, { "component": { "type": "other", @@ -7506,6 +7536,26 @@ } } }, + { + "component": { + "type": "other", + "other": { + "name": "iser", + "version": "24.10", + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/iser-24.10.tgz" + } + } + }, + { + "component": { + "type": "other", + "other": { + "name": "isert", + "version": "24.10", + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/isert-24.10.tgz" + } + } + }, { "component": { "type": "other", @@ -8266,6 +8316,16 @@ } } }, + { + "component": { + "type": "other", + "other": { + "name": "knem", + "version": "1.1.4.90mlnx3", + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/knem-1.1.4.90mlnx3.tar.gz" + } + } + }, { "component": { "type": "other", @@ -13026,6 +13086,56 @@ } } }, + { + "component": { + "type": "other", + "other": { + "name": "mft_kernel", + "version": "4.30.0", + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/kernel-mft-4.30.0.tgz" + } + } + }, + { + "component": { + "type": "other", + "other": { + "name": "mlnx-ethtool", + "version": "6.9", + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/mlnx-ethtool-6.9.tar.gz" + } + } + }, + { + "component": { + "type": "other", + "other": { + "name": "mlnx-iproute2", + "version": "6.10.0", + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/mlnx-iproute2-6.10.0.tar.gz" + } + } + }, + { + "component": { + "type": "other", + "other": { + "name": "mlnx-nfsrdma", + "version": "24.10", + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/mlnx-nfsrdma-24.10.tgz" + } + } + }, + { + "component": { + "type": "other", + "other": { + "name": "mlnx-ofa_kernel", + "version": "24.10", + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/mlnx-ofa_kernel-24.10.tgz" + } + } + }, { "component": { "type": "other", @@ -13147,6 +13257,16 @@ } } }, + { + "component": { + "type": "other", + "other": { + "name": "mlx-steering-dump", + "version": "1.0.0", + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/mlx-steering-dump-1.0.0.tar.gz" + } + } + }, { "component": { "type": "other", @@ -13477,6 +13597,16 @@ } } }, + { + "component": { + "type": "other", + "other": { + "name": "multiperf", + "version": "3.0", + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/multiperf-3.0.tar.gz" + } + } + }, { "component": { "type": "other", @@ -25829,6 +25959,16 @@ } } }, + { + "component": { + "type": "other", + "other": { + "name": "rshim", + "version": "2.1.5", + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/rshim-2.1.5.tar.gz" + } + } + }, { "component": { "type": "other", @@ -27821,6 +27961,16 @@ } } }, + { + "component": { + "type": "other", + "other": { + "name": "sockperf", + "version": "3.10", + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/sockperf-3.10.tar.gz" + } + } + }, { "component": { "type": "other", @@ -30624,6 +30774,26 @@ } } }, + { + "component": { + "type": "other", + "other": { + "name": "xpmem-lib", + "version": "2.7", + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/xpmem-lib-2.7.tar.gz" + } + } + }, + { + "component": { + "type": "other", + "other": { + "name": "xpmem", + "version": "2.7.4", + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/xpmem-2.7.4.tar.gz" + } + } + }, { "component": { "type": "other", From dfe1400e4b37bea9bdf4e6a8bff5123b63140cfe Mon Sep 17 00:00:00 2001 From: Binu Jose Philip Date: Tue, 17 Dec 2024 19:32:13 +0000 Subject: [PATCH 04/29] fixing fwctl spec --- SPECS/fwctl/fwctl.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SPECS/fwctl/fwctl.spec b/SPECS/fwctl/fwctl.spec index 6faf1bb7286..f4ea884ceb8 100644 --- a/SPECS/fwctl/fwctl.spec +++ b/SPECS/fwctl/fwctl.spec @@ -68,8 +68,7 @@ Release: 1_%{_release1}%{?_dist} License: GPLv2 Url: http://nvidia.com Group: System Environment/Base -# Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/fwctl-24.10.tgz -Source: %{_name}-%{_version}.tgz +Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/fwctl-24.10.tgz#/%{_name}-%{_version}.tgz BuildRoot: /var/tmp/%{name}-%{version}-build Vendor: Microsoft Corporation Distribution: Azure Linux From 28a9e6443e786cd0a332eb5fd44649d56179f4ba Mon Sep 17 00:00:00 2001 From: Binu Jose Philip Date: Tue, 17 Dec 2024 19:35:50 +0000 Subject: [PATCH 05/29] fixing fwctl spec defines --- SPECS/fwctl/fwctl.spec | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SPECS/fwctl/fwctl.spec b/SPECS/fwctl/fwctl.spec index f4ea884ceb8..6355fa84504 100644 --- a/SPECS/fwctl/fwctl.spec +++ b/SPECS/fwctl/fwctl.spec @@ -45,7 +45,6 @@ %{!?KMP: %global KMP 0} # take kernel version or default to uname -r -# %{!?KVERSION: %global KVERSION %(uname -r)} %{!?KVERSION: %global KVERSION %{target_kernel_version_full}} %global kernel_version %{KVERSION} %global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') @@ -62,8 +61,8 @@ %global _kmp_rel %{_release1}%{?_kmp_build_num}%{?_dist} Summary: %{_name} Driver -Name: %{_name} -Version: %{_version} +Name: fwctl +Version: 24.10 Release: 1_%{_release1}%{?_dist} License: GPLv2 Url: http://nvidia.com From 676535fd67a10b1a8ac3af37a795261d32c29940 Mon Sep 17 00:00:00 2001 From: Binu Jose Philip Date: Wed, 18 Dec 2024 06:36:28 +0000 Subject: [PATCH 06/29] make specs aware of host environment for kernel-headers --- SPECS/fwctl/fwctl.spec | 16 +++++---- SPECS/ibarr/ibarr.spec | 7 ++-- SPECS/ibsim/ibsim.spec | 7 ++-- SPECS/iser/iser.spec | 15 ++++---- SPECS/isert/isert.spec | 15 ++++---- SPECS/knem/knem.spec | 15 ++++---- SPECS/mft_kernel/mft_kernel.spec | 15 ++++---- SPECS/mlnx-ethtool/mlnx-ethtool.spec | 7 ++-- SPECS/mlnx-iproute2/mlnx-iproute2.spec | 7 ++-- SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec | 15 ++++---- SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec | 15 ++++---- SPECS/mlx-bootctl/mlx-bootctl.spec | 2 +- .../mlx-steering-dump/mlx-steering-dump.spec | 7 ++-- SPECS/multiperf/multiperf.spec | 7 ++-- SPECS/rshim/rshim.spec | 7 ++-- SPECS/sockperf/sockperf.spec | 7 ++-- SPECS/xpmem-lib/xpmem-lib.spec | 7 ++-- SPECS/xpmem/xpmem.spec | 15 ++++---- cgmanifest.json | 36 +++++++++---------- 19 files changed, 111 insertions(+), 111 deletions(-) diff --git a/SPECS/fwctl/fwctl.spec b/SPECS/fwctl/fwctl.spec index 6355fa84504..da42b76e017 100644 --- a/SPECS/fwctl/fwctl.spec +++ b/SPECS/fwctl/fwctl.spec @@ -34,9 +34,11 @@ %{!?_version: %define _version 24.10} %{!?_release: %define _release OFED.24.10.0.6.7.1} -%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) -%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) -%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) +%if 0%{azl} +%global target_kernel_version_full f.a.k.e +%else +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers) +%endif %global KVERSION %{target_kernel_version_full} %global K_SRC /lib/modules/%{target_kernel_version_full}/build @@ -61,13 +63,13 @@ %global _kmp_rel %{_release1}%{?_kmp_build_num}%{?_dist} Summary: %{_name} Driver -Name: fwctl +Name: %{_name} Version: 24.10 Release: 1_%{_release1}%{?_dist} License: GPLv2 Url: http://nvidia.com Group: System Environment/Base -Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/fwctl-24.10.tgz#/%{_name}-%{_version}.tgz +Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/fwctl-24.10.tgz#/%{_name}-%{_version}.tgz BuildRoot: /var/tmp/%{name}-%{version}-build Vendor: Microsoft Corporation Distribution: Azure Linux @@ -244,8 +246,8 @@ fi # 1 : closed %endif %changelog -* Tue Dec 3 2024 Binu Jose Philip -- Moving to proprietary repo and adding minor version prefix +* Tue Dec 17 2024 Binu Jose Philip +- Moving to core from azlinux-ai-ml repo * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/ibarr/ibarr.spec b/SPECS/ibarr/ibarr.spec index 266b2220e4e..be9e8bed341 100644 --- a/SPECS/ibarr/ibarr.spec +++ b/SPECS/ibarr/ibarr.spec @@ -4,8 +4,7 @@ Release: 2%{?dist}.2410068 Summary: Nvidia address and route userspace resolution services for Infiniband Vendor: Microsoft Corporation Distribution: Azure Linux -# Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/ibarr-0.1.3.tar.gz -Source0: %{name}-%{version}.tar.gz +Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/ibarr-0.1.3.tar.gz#/%{name}-%{version}.tar.gz Group: Applications/System License: (GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause @@ -54,7 +53,7 @@ rm -rf $RPM_BUILD_ROOT /lib/systemd/system/%{name}.service %changelog -* Tue Dec 3 2024 Binu Jose Philip -- Moving to proprietary repo and add minor version prefix +* Tue Dec 17 2024 Binu Jose Philip +- Moving to core from azlinux-ai-ml repo * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/ibsim/ibsim.spec b/SPECS/ibsim/ibsim.spec index 8dffec9cf1f..528462b9671 100644 --- a/SPECS/ibsim/ibsim.spec +++ b/SPECS/ibsim/ibsim.spec @@ -9,8 +9,7 @@ Release: %rel.2410068%{?dist} License: GPLv2 or BSD Group: System Environment/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -# Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/ibsim-0.12.tar.gz -Source: ibsim-%{version}.tar.gz +Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/ibsim-0.12.tar.gz#/ibsim-%{version}.tar.gz Url: https://github.com/linux-rdma/ibsim BuildRequires: libibmad-devel @@ -45,7 +44,7 @@ rm -rf $RPM_BUILD_ROOT %doc README COPYING TODO net-examples scripts %changelog -* Tue Dec 3 2024 Binu Jose Philip -- Moving to proprietary repo +* Tue Dec 17 2024 Binu Jose Philip +- Moving to core from azlinux-ai-ml repo * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/iser/iser.spec b/SPECS/iser/iser.spec index 4c006931c42..ec47934817c 100644 --- a/SPECS/iser/iser.spec +++ b/SPECS/iser/iser.spec @@ -26,9 +26,11 @@ # # -%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) -%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) -%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) +%if 0%{azl} +%global target_kernel_version_full f.a.k.e +%else +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers) +%endif %global KVERSION %{target_kernel_version_full} %global K_SRC /lib/modules/%{target_kernel_version_full}/build @@ -64,8 +66,7 @@ Release: 1_%{_release1}%{?_dist} License: GPLv2 Url: http://www.mellanox.com Group: System Environment/Base -# Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/iser-24.10.tgz -Source: iser-%{_version}.tgz +Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/iser-24.10.tgz#/iser-%{_version}.tgz BuildRoot: /var/tmp/%{name}-%{version}-build Vendor: Microsoft Corporation Distribution: Azure Linux @@ -242,8 +243,8 @@ fi # 1 : closed %endif %changelog -* Tue Dec 3 2024 Binu Jose Philip -- Moving to proprietary repo and add minor version prefix +* Tue Dec 17 2024 Binu Jose Philip +- Moving to core from azlinux-ai-ml repo * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux * Thu Feb 20 2014 Alaa Hleihel diff --git a/SPECS/isert/isert.spec b/SPECS/isert/isert.spec index cb96f411189..db7b63f664c 100644 --- a/SPECS/isert/isert.spec +++ b/SPECS/isert/isert.spec @@ -26,9 +26,11 @@ # # -%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) -%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) -%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) +%if 0%{azl} +%global target_kernel_version_full f.a.k.e +%else +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers) +%endif %global KVERSION %{target_kernel_version_full} %global K_SRC /lib/modules/%{target_kernel_version_full}/build @@ -64,8 +66,7 @@ Release: 1_%{_release1}%{?_dist} License: GPLv2 Url: http://www.mellanox.com Group: System Environment/Base -# Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/isert-24.10.tgz -Source: isert-%{_version}.tgz +Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/isert-24.10.tgz#/isert-%{_version}.tgz BuildRoot: /var/tmp/%{name}-%{version}-build Vendor: Microsoft Corporation Distribution: Azure Linux @@ -242,8 +243,8 @@ fi # 1 : closed %endif %changelog -* Tue Dec 3 2024 Binu Jose Philip -- Moving to proprietary repo and add minor version prefix +* Tue Dec 17 2024 Binu Jose Philip +- Moving to core from azlinux-ai-ml repo * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux * Thu Feb 20 2014 Alaa Hleihel diff --git a/SPECS/knem/knem.spec b/SPECS/knem/knem.spec index 5b894f1defc..f2176b911c9 100644 --- a/SPECS/knem/knem.spec +++ b/SPECS/knem/knem.spec @@ -26,9 +26,11 @@ # KMP is disabled by default %{!?KMP: %global KMP 0} -%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) -%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) -%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) +%if 0%{azl} +%global target_kernel_version_full f.a.k.e +%else +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers) +%endif %global KVERSION %{target_kernel_version_full} %global K_SRC /lib/modules/%{target_kernel_version_full}/build @@ -56,8 +58,7 @@ License: BSD and GPLv2 Group: System Environment/Libraries Vendor: Microsoft Corporation Distribution: Azure Linux -# Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/knem-1.1.4.90mlnx3.tar.gz -Source0: knem-%{version}.tar.gz +Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/knem-1.1.4.90mlnx3.tar.gz#/knem-%{version}.tar.gz BuildRoot: /var/tmp/%{name}-%{version}-build BuildRequires: gcc @@ -276,8 +277,8 @@ fi %endif %changelog -* Tue Dec 3 2024 Binu Jose Philip -- Moving to proprietary repo and add minor version prefix +* Tue Dec 17 2024 Binu Jose Philip +- Moving to core from azlinux-ai-ml repo * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux * Mon Mar 17 2014 Alaa Hleihel diff --git a/SPECS/mft_kernel/mft_kernel.spec b/SPECS/mft_kernel/mft_kernel.spec index 928cc10f5e3..202395e0481 100644 --- a/SPECS/mft_kernel/mft_kernel.spec +++ b/SPECS/mft_kernel/mft_kernel.spec @@ -1,7 +1,9 @@ -%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) -%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) -%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) +%if 0%{azl} +%global target_kernel_version_full f.a.k.e +%else +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers) +%endif %global KVERSION %{target_kernel_version_full} %global K_SRC /lib/modules/%{target_kernel_version_full}/build @@ -40,8 +42,7 @@ Release: 1_%{!?source:%{krelver}%{?_dist}}%{?source:%{_release}%{?_dist}} License: Dual BSD/GPL Group: System Environment/Kernel BuildRoot: /var/tmp/%{name}-%{version}-build -#Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/kernel-mft-4.30.0.tgz -Source: kernel-mft-%{version}.tgz +Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/kernel-mft-4.30.0.tgz#/kernel-mft-%{version}.tgz Vendor: Microsoft Corporation Distribution: Azure Linux @@ -226,7 +227,7 @@ find %{buildroot} -type f -name \*.ko -exec %{__strip} -p --strip-debug --discar %endif %changelog -* Tue Dec 3 2024 Binu Jose Philip -- Moving to proprietary repo and add minor release prefix +* Tue Dec 17 2024 Binu Jose Philip +- Moving to core from azlinux-ai-ml repo * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/mlnx-ethtool/mlnx-ethtool.spec b/SPECS/mlnx-ethtool/mlnx-ethtool.spec index d760476f31e..2bd4bf0e8df 100644 --- a/SPECS/mlnx-ethtool/mlnx-ethtool.spec +++ b/SPECS/mlnx-ethtool/mlnx-ethtool.spec @@ -8,8 +8,7 @@ Vendor: Microsoft Corporation Distribution: Azure Linux URL: https://ftp.kernel.org/pub/software/network/ethtool/ Buildroot: /var/tmp/%{name}-%{version}-build -#Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/mlnx-ethtool-6.9.tar.gz -Source: %{name}-%{version}.tar.gz +Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/mlnx-ethtool-6.9.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: libmnl-devel @@ -40,7 +39,7 @@ make install DESTDIR=${RPM_BUILD_ROOT} %changelog -* Tue Dec 3 2024 Binu Jose Philip -- Moving to proprietary repo +* Tue Dec 17 2024 Binu Jose Philip +- Moving to core from azlinux-ai-ml repo * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/mlnx-iproute2/mlnx-iproute2.spec b/SPECS/mlnx-iproute2/mlnx-iproute2.spec index b555f97423a..493de933ffd 100644 --- a/SPECS/mlnx-iproute2/mlnx-iproute2.spec +++ b/SPECS/mlnx-iproute2/mlnx-iproute2.spec @@ -40,8 +40,7 @@ License: GPL Group: Networking/Admin Vendor: Microsoft Corporation Distribution: Azure Linux -# Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/mlnx-iproute2-6.10.0.tar.gz -Source0: %{name}-%{version}.tar.gz +Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/mlnx-iproute2-6.10.0.tar.gz#/%{name}-%{version}.tar.gz URL: http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2 BuildRequires: bison @@ -110,7 +109,7 @@ rm -rf $RPM_BUILD_ROOT %{_sbindir}/* %changelog -* Tue Dec 3 2024 Binu Jose Philip -- Moving to proprietary repo +* Tue Dec 17 2024 Binu Jose Philip +- Moving to core from azlinux-ai-ml repo * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec b/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec index abc11d30d25..8ea51383c0f 100644 --- a/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec +++ b/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec @@ -26,9 +26,11 @@ # # -%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) -%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) -%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) +%if 0%{azl} +%global target_kernel_version_full f.a.k.e +%else +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers) +%endif %global KVERSION %{target_kernel_version_full} %global K_SRC /lib/modules/%{target_kernel_version_full}/build @@ -64,8 +66,7 @@ Release: 1_%{_release1}%{?_dist} License: GPLv2 Url: http://www.mellanox.com Group: System Environment/Base -# Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/mlnx-nfsrdma-24.10.tgz -Source: %{_name}-%{_version}.tgz +Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/mlnx-nfsrdma-24.10.tgz#/%{_name}-%{_version}.tgz BuildRoot: /var/tmp/%{name}-%{version}-build Vendor: Microsoft Corporation Distribution: Azure Linux @@ -242,8 +243,8 @@ fi %endif %changelog -* Tue Dec 3 2024 Binu Jose Philip -- Moving to proprietary repo and add minor release prefix +* Tue Dec 17 2024 Binu Jose Philip +- Moving to core from azlinux-ai-ml repo * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux * Mon Aug 15 2016 Alaa Hleihel diff --git a/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec b/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec index 418280dac34..6a4b344083b 100644 --- a/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec +++ b/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec @@ -26,9 +26,11 @@ # # -%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) -%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) -%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) +%if 0%{azl} +%global target_kernel_version_full f.a.k.e +%else +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers) +%endif %global KVERSION %{target_kernel_version_full} %global K_SRC /lib/modules/%{target_kernel_version_full}/build @@ -100,8 +102,7 @@ Release: 1_%{_release}%{?_dist} License: GPLv2 Url: http://www.mellanox.com/ Group: System Environment/Base -# Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/mlnx-ofa_kernel-24.10.tgz -Source: %{_name}-%{_version}.tgz +Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/mlnx-ofa_kernel-24.10.tgz#/%{_name}-%{_version}.tgz BuildRoot: /var/tmp/%{name}-%{version}-build Vendor: Microsoft Corporation Distribution: Azure Linux @@ -733,8 +734,8 @@ update-alternatives --remove \ %{_prefix}/src/mlnx-ofa_kernel-%version %changelog -* Tue Dec 3 2024 Binu Jose Philip -- Moving to proprietary repo and add minor release prefix +* Tue Dec 17 2024 Binu Jose Philip +- Moving to core from azlinux-ai-ml repo * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux * Thu Jun 18 2015 Alaa Hleihel diff --git a/SPECS/mlx-bootctl/mlx-bootctl.spec b/SPECS/mlx-bootctl/mlx-bootctl.spec index 24a490ee13d..eb5f4ea3a85 100644 --- a/SPECS/mlx-bootctl/mlx-bootctl.spec +++ b/SPECS/mlx-bootctl/mlx-bootctl.spec @@ -44,7 +44,7 @@ Vendor: Microsoft Corporation Distribution: Azure Linux Group: System Environment/Base URL: https://www.mellanox.com/ -Source: https://linux.mellanox.com/public/repo/bluefield/%{BF_VERSION}/extras/SOURCES/%{name}-%{version}.tar.gz +Source0: https://linux.mellanox.com/public/repo/bluefield/%{BF_VERSION}/extras/SOURCES/%{name}-%{version}.tar.gz BuildRequires: kernel-devel BuildRequires: kmod diff --git a/SPECS/mlx-steering-dump/mlx-steering-dump.spec b/SPECS/mlx-steering-dump/mlx-steering-dump.spec index c2499d4bfd1..9ee9d5226a1 100644 --- a/SPECS/mlx-steering-dump/mlx-steering-dump.spec +++ b/SPECS/mlx-steering-dump/mlx-steering-dump.spec @@ -33,8 +33,7 @@ Release: 1%{?_dist}.2410068 License: GPLv2 Url: https://github.com/Mellanox/mlx_steering_dump Group: Applications/System -# Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/mlx-steering-dump-1.0.0.tar.gz -Source: mlx-steering-dump-1.0.0.tar.gz +Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/mlx-steering-dump-1.0.0.tar.gz#/%name}-%{version}.tar.gz BuildRoot: /var/tmp/%{name}-%{version}-build Vendor: Microsoft Corporation Distribution: Azure Linux @@ -72,8 +71,8 @@ install -m 755 hws/mlx_hw_steering_dump %{buildroot}/usr/bin/ /usr/bin/mlx_hw_steering_dump %changelog -* Tue Dec 3 2024 Binu Jose Philip -- Moving to proprietary repo and add minor release prefix +* Tue Dec 17 2024 Binu Jose Philip +- Moving to core from azlinux-ai-ml repo * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux * Wed Oct 6 2021 Mohammad Kabat diff --git a/SPECS/multiperf/multiperf.spec b/SPECS/multiperf/multiperf.spec index f4e695b27b7..a51066aea6f 100644 --- a/SPECS/multiperf/multiperf.spec +++ b/SPECS/multiperf/multiperf.spec @@ -6,8 +6,7 @@ License: BSD 3-Clause, GPL v2 or later Vendor: Microsoft Corporation Distribution: Azure Linux Group: Productivity/Networking/Diagnostic -# Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/multiperf-3.0.tar.gz -Source: %{name}-%{version}.tar.gz +Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/multiperf-3.0.tar.gz#/%{name}-%{version}.tar.gz Url: "" BuildRoot: /var/tmp/%{name}-%{version}-build @@ -36,8 +35,8 @@ rm -rf ${RPM_BUILD_ROOT} %_bindir/* %changelog -* Tue Dec 3 2024 Binu Jose Philip -- Moving to proprietary repo and add minor release prefix +* Tue Dec 17 2024 Binu Jose Philip +- Moving to core from azlinux-ai-ml repo * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux * Sun Feb 08 2015 - gilr@mellanox.com diff --git a/SPECS/rshim/rshim.spec b/SPECS/rshim/rshim.spec index 6c84512ec23..fca3cfe037d 100644 --- a/SPECS/rshim/rshim.spec +++ b/SPECS/rshim/rshim.spec @@ -10,8 +10,7 @@ License: GPLv2 Vendor: Microsoft Corporation Distribution: Azure Linux URL: https://github.com/mellanox/rshim-user-space -# Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/rshim-2.1.5.tar.gz -Source0: %{name}-%{version}.tar.gz +Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/rshim-2.1.5.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: gcc, autoconf, automake, pkgconfig, make BuildRequires: pkgconfig(libpci), pkgconfig(libusb-1.0) fuse3-devel fuse3-libs @@ -97,8 +96,8 @@ fi %{_mandir}/man8/bf-reg.8.gz %changelog -* Tue Dec 3 2024 Binu Jose Philip -- Moving to proprietary repo +* Tue Dec 17 2024 Binu Jose Philip +- Moving to core from azlinux-ai-ml repo * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/sockperf/sockperf.spec b/SPECS/sockperf/sockperf.spec index bc521ddef57..4da300c65b3 100644 --- a/SPECS/sockperf/sockperf.spec +++ b/SPECS/sockperf/sockperf.spec @@ -12,8 +12,7 @@ License: BSD Vendor: Microsoft Corporation Distribution: Azure Linux URL: https://github.com/mellanox/%{name} -# Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/sockperf-3.10.tar.gz -Source0: %{name}-%{version}.tar.gz +Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/sockperf-3.10.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: doxygen @@ -82,7 +81,7 @@ make install DESTDIR="%{?buildroot}" %{_my_pkgdocdir} %changelog -* Tue Dec 3 2024 Binu Jose Philip -- Moving to proprietary repo and add minor release prefix +* Tue Dec 17 2024 Binu Jose Philip +- Moving to core from azlinux-ai-ml repo * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/xpmem-lib/xpmem-lib.spec b/SPECS/xpmem-lib/xpmem-lib.spec index 5d5c29527e3..b2478085d51 100644 --- a/SPECS/xpmem-lib/xpmem-lib.spec +++ b/SPECS/xpmem-lib/xpmem-lib.spec @@ -10,8 +10,7 @@ License: LGPLv2.1 Group: System Environment/Libraries Vendor: Microsoft Corporation Distribution: Azure Linux -# Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/xpmem-lib-2.7.tar.gz -Source: %{name}-%{version}.tar.gz +Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/xpmem-lib-2.7.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: automake BuildRequires: autoconf @@ -82,7 +81,7 @@ rm -rf ${RPM_BUILD_ROOT}/etc # /etc/.version , udev rules %{_libdir}/pkgconfig/cray-xpmem.pc %changelog -* Tue Dec 3 2024 Binu Jose Philip -- Moving to proprietary repo +* Tue Dec 17 2024 Binu Jose Philip +- Moving to core from azlinux-ai-ml repo * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/xpmem/xpmem.spec b/SPECS/xpmem/xpmem.spec index 953ced4e3a4..07432d82772 100644 --- a/SPECS/xpmem/xpmem.spec +++ b/SPECS/xpmem/xpmem.spec @@ -1,8 +1,10 @@ %{!?KMP: %global KMP 0} -%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) -%global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) -%global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) +%if 0%{azl} +%global target_kernel_version_full f.a.k.e +%else +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers) +%endif %global KVERSION %{target_kernel_version_full} %global K_SRC /lib/modules/%{target_kernel_version_full}/build @@ -42,8 +44,7 @@ Vendor: Microsoft Corporation Distribution: Azure Linux BuildRequires: automake autoconf URL: https://github.com/openucx/xpmem -# Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/xpmem-2.7.4.tar.gz -Source: %{name}-%{version}.tar.gz +Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/xpmem-2.7.4.tar.gz#/%{name}-%{version}.tar.gz # name gets a different value in subpackages %global _name %{name} @@ -239,8 +240,8 @@ fi %endif %changelog -* Tue Dec 3 2024 Binu Jose Philip -- Moving to proprietary repo and add minor release prefix +* Tue Dec 17 2024 Binu Jose Philip +- Moving to core from azlinux-ai-ml repo * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/cgmanifest.json b/cgmanifest.json index ea975ebef7d..5985e14e9a0 100644 --- a/cgmanifest.json +++ b/cgmanifest.json @@ -4001,7 +4001,7 @@ "other": { "name": "fwctl", "version": "24.10", - "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/fwctl-24.10.tgz" + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/fwctl-24.10.tgz" } } }, @@ -6991,7 +6991,7 @@ "other": { "name": "ibarr", "version": "0.1.3", - "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/ibarr-0.1.3.tar.gz" + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/ibarr-0.1.3.tar.gz" } } }, @@ -7001,7 +7001,7 @@ "other": { "name": "ibsim", "version": "0.12", - "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/ibsim-0.12.tar.gz" + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/ibsim-0.12.tar.gz" } } }, @@ -7542,7 +7542,7 @@ "other": { "name": "iser", "version": "24.10", - "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/iser-24.10.tgz" + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/iser-24.10.tgz" } } }, @@ -7552,7 +7552,7 @@ "other": { "name": "isert", "version": "24.10", - "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/isert-24.10.tgz" + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/isert-24.10.tgz" } } }, @@ -8322,7 +8322,7 @@ "other": { "name": "knem", "version": "1.1.4.90mlnx3", - "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/knem-1.1.4.90mlnx3.tar.gz" + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/knem-1.1.4.90mlnx3.tar.gz" } } }, @@ -13090,9 +13090,9 @@ "component": { "type": "other", "other": { - "name": "mft_kernel", + "name": "kernel-mft", "version": "4.30.0", - "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/kernel-mft-4.30.0.tgz" + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/kernel-mft-4.30.0.tgz" } } }, @@ -13102,7 +13102,7 @@ "other": { "name": "mlnx-ethtool", "version": "6.9", - "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/mlnx-ethtool-6.9.tar.gz" + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/mlnx-ethtool-6.9.tar.gz" } } }, @@ -13112,7 +13112,7 @@ "other": { "name": "mlnx-iproute2", "version": "6.10.0", - "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/mlnx-iproute2-6.10.0.tar.gz" + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/mlnx-iproute2-6.10.0.tar.gz" } } }, @@ -13122,7 +13122,7 @@ "other": { "name": "mlnx-nfsrdma", "version": "24.10", - "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/mlnx-nfsrdma-24.10.tgz" + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/mlnx-nfsrdma-24.10.tgz" } } }, @@ -13132,7 +13132,7 @@ "other": { "name": "mlnx-ofa_kernel", "version": "24.10", - "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/mlnx-ofa_kernel-24.10.tgz" + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/mlnx-ofa_kernel-24.10.tgz" } } }, @@ -13263,7 +13263,7 @@ "other": { "name": "mlx-steering-dump", "version": "1.0.0", - "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/mlx-steering-dump-1.0.0.tar.gz" + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/mlx-steering-dump-1.0.0.tar.gz" } } }, @@ -13603,7 +13603,7 @@ "other": { "name": "multiperf", "version": "3.0", - "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/multiperf-3.0.tar.gz" + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/multiperf-3.0.tar.gz" } } }, @@ -25965,7 +25965,7 @@ "other": { "name": "rshim", "version": "2.1.5", - "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/rshim-2.1.5.tar.gz" + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/rshim-2.1.5.tar.gz" } } }, @@ -27967,7 +27967,7 @@ "other": { "name": "sockperf", "version": "3.10", - "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/sockperf-3.10.tar.gz" + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/sockperf-3.10.tar.gz" } } }, @@ -30780,7 +30780,7 @@ "other": { "name": "xpmem-lib", "version": "2.7", - "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/xpmem-lib-2.7.tar.gz" + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/xpmem-lib-2.7.tar.gz" } } }, @@ -30790,7 +30790,7 @@ "other": { "name": "xpmem", "version": "2.7.4", - "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/xpmem-2.7.4.tar.gz" + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/xpmem-2.7.4.tar.gz" } } }, From 04ef8abc400e65aacb8c170734dd43f31f0daa50 Mon Sep 17 00:00:00 2001 From: Binu Jose Philip Date: Thu, 19 Dec 2024 03:22:19 +0000 Subject: [PATCH 07/29] Add license and source verified clause. Fix tags. --- SPECS-SIGNED/fwctl-signed/fwctl-signed.spec | 4 +++- SPECS-SIGNED/iser-signed/iser-signed.spec | 4 +++- SPECS-SIGNED/isert-signed/isert-signed.spec | 4 +++- SPECS-SIGNED/knem-signed/knem-modules-signed.spec | 4 +++- SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec | 4 +++- .../mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec | 4 +++- .../mlnx-ofa_kernel-modules-signed.spec | 4 +++- SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec | 5 +++-- SPECS/fwctl/fwctl.spec | 8 ++++---- SPECS/ibarr/ibarr.spec | 6 ++++-- SPECS/ibsim/ibsim.spec | 6 +++++- SPECS/iser/iser.spec | 6 ++++-- SPECS/isert/isert.spec | 6 ++++-- SPECS/knem/knem.spec | 6 ++++-- SPECS/mft_kernel/mft_kernel.spec | 11 ++++++----- SPECS/mlnx-ethtool/mlnx-ethtool.spec | 4 +++- SPECS/mlnx-iproute2/mlnx-iproute2.spec | 4 +++- SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec | 6 ++++-- SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec | 6 ++++-- SPECS/mlx-steering-dump/mlx-steering-dump.spec | 6 ++++-- SPECS/multiperf/multiperf.spec | 4 +++- SPECS/rshim/rshim.spec | 4 +++- SPECS/sockperf/sockperf.spec | 4 +++- SPECS/xpmem-lib/xpmem-lib.spec | 4 +++- SPECS/xpmem/xpmem.spec | 4 +++- 25 files changed, 88 insertions(+), 40 deletions(-) diff --git a/SPECS-SIGNED/fwctl-signed/fwctl-signed.spec b/SPECS-SIGNED/fwctl-signed/fwctl-signed.spec index e4f5a47615d..24b7eb1b109 100644 --- a/SPECS-SIGNED/fwctl-signed/fwctl-signed.spec +++ b/SPECS-SIGNED/fwctl-signed/fwctl-signed.spec @@ -64,7 +64,7 @@ Summary: %{_name} Driver Name: %{_name} Version: %{_version} -Release: 1_%{_release1}%{?_dist} +Release: 1%{?dist} License: GPLv2 Url: http://nvidia.com Group: System Environment/Base @@ -139,3 +139,5 @@ fi # 1 : closed %changelog * Tue Dec 16 2024 Binu Jose Philip - 24.10.0.6.7.1 - Creating signed spec +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified diff --git a/SPECS-SIGNED/iser-signed/iser-signed.spec b/SPECS-SIGNED/iser-signed/iser-signed.spec index 8da99405b7d..7796e8fc954 100644 --- a/SPECS-SIGNED/iser-signed/iser-signed.spec +++ b/SPECS-SIGNED/iser-signed/iser-signed.spec @@ -60,7 +60,7 @@ Summary: %{_name} Driver Name: %{_name} Version: %{_version} -Release: 1_%{_release1}%{?_dist} +Release: 1%{?dist} License: GPLv2 Url: http://www.mellanox.com Group: System Environment/Base @@ -133,3 +133,5 @@ fi # 1 : closed %changelog * Tue Dec 16 2024 Binu Jose Philip - 24.10.0.6.7.1 - Creating signed spec +- License verified +- Initial Azure Linux import from NVIDIA (license: GPLv2) diff --git a/SPECS-SIGNED/isert-signed/isert-signed.spec b/SPECS-SIGNED/isert-signed/isert-signed.spec index ba85dab187f..4472d533f5c 100644 --- a/SPECS-SIGNED/isert-signed/isert-signed.spec +++ b/SPECS-SIGNED/isert-signed/isert-signed.spec @@ -60,7 +60,7 @@ Summary: %{_name} Driver Name: %{_name} Version: %{_version} -Release: 1_%{_release1}%{?_dist} +Release: 1%{?dist} License: GPLv2 Url: http://www.mellanox.com Group: System Environment/Base @@ -133,3 +133,5 @@ fi # 1 : closed %changelog * Tue Dec 16 2024 Binu Jose Philip - 24.10.0.6.7.1 - Creating signed spec +- License verified +- Initial Azure Linux import from NVIDIA (license: GPLv2) diff --git a/SPECS-SIGNED/knem-signed/knem-modules-signed.spec b/SPECS-SIGNED/knem-signed/knem-modules-signed.spec index 08d06deb169..1436f02b63b 100644 --- a/SPECS-SIGNED/knem-signed/knem-modules-signed.spec +++ b/SPECS-SIGNED/knem-signed/knem-modules-signed.spec @@ -52,7 +52,7 @@ Summary: KNEM: High-Performance Intra-Node MPI Communication Name: %{_name}-modules Version: 1.1.4.90mlnx3 -Release: 1_%{_release}%{?_dist} +Release: 1%{?dist} Provides: knem-mlnx = %{version}-%{release} Obsoletes: knem-mlnx < %{version}-%{release} License: BSD and GPLv2 @@ -122,3 +122,5 @@ fi %changelog * Tue Dec 16 2024 Binu Jose Philip - 1.1.4.90mlnx3 - Creating signed spec +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified diff --git a/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec b/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec index 2a6e7eddfdf..33d682bcbe7 100644 --- a/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec +++ b/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec @@ -36,7 +36,7 @@ Name: %{_name} Summary: %{name} Kernel Module for the %{KVERSION} kernel Version: %{version} -Release: 1_%{!?source:%{krelver}%{?_dist}}%{?source:%{_release}%{?_dist}} +Release: 1%{?dist} License: Dual BSD/GPL Group: System Environment/Kernel BuildRoot: /var/tmp/%{name}-%{version}-build @@ -103,3 +103,5 @@ rm -rf %{buildroot} %changelog * Tue Dec 16 2024 Binu Jose Philip - 4.30.0 - Creating signed spec +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified diff --git a/SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec b/SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec index 8fef5e2e361..9433de4a293 100644 --- a/SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec +++ b/SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec @@ -60,7 +60,7 @@ Summary: %{_name} Driver Name: %{_name} Version: %{_version} -Release: 1_%{_release1}%{?_dist} +Release: 1%{?dist} License: GPLv2 Url: http://www.mellanox.com Group: System Environment/Base @@ -138,3 +138,5 @@ fi %changelog * Tue Dec 16 2024 Binu Jose Philip - 24.10.0.6.7.1 - Creating signed spec +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified diff --git a/SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec b/SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec index 30ea215174e..803aa1e26fd 100644 --- a/SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec +++ b/SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec @@ -99,7 +99,7 @@ Summary: Infiniband HCA Driver Name: %{_name}-modules Version: %{_version} -Release: 1_%{_release}%{?_dist} +Release: 1%{?dist} License: GPLv2 Url: http://www.mellanox.com/ Group: System Environment/Base @@ -250,3 +250,5 @@ fi %changelog * Tue Dec 16 2024 Binu Jose Philip - 24.10 - Creating signed spec +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified diff --git a/SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec b/SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec index 222fec07863..d16a532e7fb 100644 --- a/SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec +++ b/SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec @@ -38,7 +38,7 @@ Summary: Cross-partition memory Name: xpmem-modules Version: 2.7.4 -Release: 1_%{_release}%{?_dist} +Release: 1%{?dist} License: GPLv2 and LGPLv2.1 Group: System Environment/Libraries Vendor: Microsoft Corporation @@ -104,4 +104,5 @@ rm -rf %{buildroot} %changelog * Tue Dec 16 2024 Binu Jose Philip - 2.7.4 - Creating signed spec - +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified diff --git a/SPECS/fwctl/fwctl.spec b/SPECS/fwctl/fwctl.spec index da42b76e017..5184f3d727f 100644 --- a/SPECS/fwctl/fwctl.spec +++ b/SPECS/fwctl/fwctl.spec @@ -63,9 +63,9 @@ %global _kmp_rel %{_release1}%{?_kmp_build_num}%{?_dist} Summary: %{_name} Driver -Name: %{_name} +Name: fwctl Version: 24.10 -Release: 1_%{_release1}%{?_dist} +Release: 1%{?dist} License: GPLv2 Url: http://nvidia.com Group: System Environment/Base @@ -248,9 +248,9 @@ fi # 1 : closed %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo - +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux - * Mon Jul 29 2024 - Initial packaging diff --git a/SPECS/ibarr/ibarr.spec b/SPECS/ibarr/ibarr.spec index be9e8bed341..4df57e3da60 100644 --- a/SPECS/ibarr/ibarr.spec +++ b/SPECS/ibarr/ibarr.spec @@ -1,10 +1,10 @@ Name: ibarr Version: 0.1.3 -Release: 2%{?dist}.2410068 +Release: 2%{?dist} Summary: Nvidia address and route userspace resolution services for Infiniband Vendor: Microsoft Corporation Distribution: Azure Linux -Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/ibarr-0.1.3.tar.gz#/%{name}-%{version}.tar.gz +Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/ibarr-0.1.3.tar.gz#/%{name}-%{version}.tar.gz Group: Applications/System License: (GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause @@ -55,5 +55,7 @@ rm -rf $RPM_BUILD_ROOT %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/ibsim/ibsim.spec b/SPECS/ibsim/ibsim.spec index 528462b9671..51b117a1556 100644 --- a/SPECS/ibsim/ibsim.spec +++ b/SPECS/ibsim/ibsim.spec @@ -5,12 +5,14 @@ Summary: InfiniBand fabric simulator for management Name: ibsim Version: 0.12 -Release: %rel.2410068%{?dist} +Release: 1%{?dist} License: GPLv2 or BSD Group: System Environment/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/ibsim-0.12.tar.gz#/ibsim-%{version}.tar.gz Url: https://github.com/linux-rdma/ibsim +Vendor: Microsoft Corporation +Distribution: Azure Linux BuildRequires: libibmad-devel BuildRequires: libibumad-devel @@ -46,5 +48,7 @@ rm -rf $RPM_BUILD_ROOT %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/iser/iser.spec b/SPECS/iser/iser.spec index ec47934817c..a9a7c6f9c7f 100644 --- a/SPECS/iser/iser.spec +++ b/SPECS/iser/iser.spec @@ -60,9 +60,9 @@ %global _kmp_rel %{_release1}%{?_kmp_build_num}%{?_dist} Summary: %{_name} Driver -Name: %{_name} +Name: iser Version: %{_version} -Release: 1_%{_release1}%{?_dist} +Release: 1%{?dist} License: GPLv2 Url: http://www.mellanox.com Group: System Environment/Base @@ -245,6 +245,8 @@ fi # 1 : closed %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux * Thu Feb 20 2014 Alaa Hleihel diff --git a/SPECS/isert/isert.spec b/SPECS/isert/isert.spec index db7b63f664c..85f13055f47 100644 --- a/SPECS/isert/isert.spec +++ b/SPECS/isert/isert.spec @@ -60,9 +60,9 @@ %global _kmp_rel %{_release1}%{?_kmp_build_num}%{?_dist} Summary: %{_name} Driver -Name: %{_name} +Name: isert Version: %{_version} -Release: 1_%{_release1}%{?_dist} +Release: 1%{?dist} License: GPLv2 Url: http://www.mellanox.com Group: System Environment/Base @@ -245,6 +245,8 @@ fi # 1 : closed %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux * Thu Feb 20 2014 Alaa Hleihel diff --git a/SPECS/knem/knem.spec b/SPECS/knem/knem.spec index f2176b911c9..de4554f9929 100644 --- a/SPECS/knem/knem.spec +++ b/SPECS/knem/knem.spec @@ -49,9 +49,9 @@ %global non_kmp_pname %{_name}-modules Summary: KNEM: High-Performance Intra-Node MPI Communication -Name: %{_name} +Name: knem Version: 1.1.4.90mlnx3 -Release: 1_%{_release}%{?_dist} +Release: 1%{?dist} Provides: knem-mlnx = %{version}-%{release} Obsoletes: knem-mlnx < %{version}-%{release} License: BSD and GPLv2 @@ -279,6 +279,8 @@ fi %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux * Mon Mar 17 2014 Alaa Hleihel diff --git a/SPECS/mft_kernel/mft_kernel.spec b/SPECS/mft_kernel/mft_kernel.spec index 202395e0481..dbcca682060 100644 --- a/SPECS/mft_kernel/mft_kernel.spec +++ b/SPECS/mft_kernel/mft_kernel.spec @@ -35,15 +35,15 @@ %{!?_release: %global _release 1} %global _kmp_rel %{_release}%{?_kmp_build_num}%{?_dist} -Name: %{_name} +Name: kernel-mft Summary: %{name} Kernel Module for the %{KVERSION} kernel Version: %{version} -Release: 1_%{!?source:%{krelver}%{?_dist}}%{?source:%{_release}%{?_dist}} +Release: 1%{?dist} License: Dual BSD/GPL Group: System Environment/Kernel BuildRoot: /var/tmp/%{name}-%{version}-build Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/kernel-mft-4.30.0.tgz#/kernel-mft-%{version}.tgz -Vendor: Microsoft Corporation +Vendor: Microsoft Corporation Distribution: Azure Linux BuildRequires: gcc @@ -91,8 +91,7 @@ This package provides a %{name} kernel module for kernel. %package utils Summary: KO utils for MFT Group: System Environment/Kernel -Vendor: Mellanox Technologies Ltd. -Packager: Omer Dagan +Vendor: Microsoft Corporation %description utils mft utils kernel module(s) %endif @@ -229,5 +228,7 @@ find %{buildroot} -type f -name \*.ko -exec %{__strip} -p --strip-debug --discar %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/mlnx-ethtool/mlnx-ethtool.spec b/SPECS/mlnx-ethtool/mlnx-ethtool.spec index 2bd4bf0e8df..3897c6fc329 100644 --- a/SPECS/mlnx-ethtool/mlnx-ethtool.spec +++ b/SPECS/mlnx-ethtool/mlnx-ethtool.spec @@ -1,6 +1,6 @@ Name: mlnx-ethtool Version: 6.9 -Release: 2.2410068 +Release: 2%{?dist} Group: Utilities Summary: Settings tool for Ethernet and other network devices License: GPL @@ -41,5 +41,7 @@ make install DESTDIR=${RPM_BUILD_ROOT} %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/mlnx-iproute2/mlnx-iproute2.spec b/SPECS/mlnx-iproute2/mlnx-iproute2.spec index 493de933ffd..235a08c5b4f 100644 --- a/SPECS/mlnx-iproute2/mlnx-iproute2.spec +++ b/SPECS/mlnx-iproute2/mlnx-iproute2.spec @@ -35,7 +35,7 @@ Summary: Advanced IP routing and network device configuration tools Name: mlnx-iproute2 Version: 6.10.0 -Release: 2.2410068 +Release: 2%{?dist} License: GPL Group: Networking/Admin Vendor: Microsoft Corporation @@ -111,5 +111,7 @@ rm -rf $RPM_BUILD_ROOT %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec b/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec index 8ea51383c0f..7087aaa0582 100644 --- a/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec +++ b/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec @@ -60,9 +60,9 @@ %global _kmp_rel %{_release1}%{?_kmp_build_num}%{?_dist} Summary: %{_name} Driver -Name: %{_name} +Name: mlnx-nfsrdma Version: %{_version} -Release: 1_%{_release1}%{?_dist} +Release: 1%{?dist} License: GPLv2 Url: http://www.mellanox.com Group: System Environment/Base @@ -245,6 +245,8 @@ fi %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux * Mon Aug 15 2016 Alaa Hleihel diff --git a/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec b/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec index 6a4b344083b..320683aec8f 100644 --- a/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec +++ b/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec @@ -96,9 +96,9 @@ %global non_kmp_pname %{_name}-modules Summary: Infiniband HCA Driver -Name: %{_name} +Name: mlnx-ofa_kernel Version: %{_version} -Release: 1_%{_release}%{?_dist} +Release: 1%{?dist} License: GPLv2 Url: http://www.mellanox.com/ Group: System Environment/Base @@ -736,6 +736,8 @@ update-alternatives --remove \ %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux * Thu Jun 18 2015 Alaa Hleihel diff --git a/SPECS/mlx-steering-dump/mlx-steering-dump.spec b/SPECS/mlx-steering-dump/mlx-steering-dump.spec index 9ee9d5226a1..7abc19e94ce 100644 --- a/SPECS/mlx-steering-dump/mlx-steering-dump.spec +++ b/SPECS/mlx-steering-dump/mlx-steering-dump.spec @@ -29,11 +29,11 @@ Summary: Mellanox steering dump parser Name: mlx-steering-dump Version: 1.0.0 -Release: 1%{?_dist}.2410068 +Release: 1%{?dist} License: GPLv2 Url: https://github.com/Mellanox/mlx_steering_dump Group: Applications/System -Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/mlx-steering-dump-1.0.0.tar.gz#/%name}-%{version}.tar.gz +Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/mlx-steering-dump-1.0.0.tar.gz#/%{name}-%{version}.tar.gz BuildRoot: /var/tmp/%{name}-%{version}-build Vendor: Microsoft Corporation Distribution: Azure Linux @@ -73,6 +73,8 @@ install -m 755 hws/mlx_hw_steering_dump %{buildroot}/usr/bin/ %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux * Wed Oct 6 2021 Mohammad Kabat diff --git a/SPECS/multiperf/multiperf.spec b/SPECS/multiperf/multiperf.spec index a51066aea6f..0c9211b681b 100644 --- a/SPECS/multiperf/multiperf.spec +++ b/SPECS/multiperf/multiperf.spec @@ -1,7 +1,7 @@ Name: multiperf Summary: IB Performance tests Version: 3.0 -Release: 1_3.0.2410068 +Release: 1%{?dist} License: BSD 3-Clause, GPL v2 or later Vendor: Microsoft Corporation Distribution: Azure Linux @@ -37,6 +37,8 @@ rm -rf ${RPM_BUILD_ROOT} %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux * Sun Feb 08 2015 - gilr@mellanox.com diff --git a/SPECS/rshim/rshim.spec b/SPECS/rshim/rshim.spec index fca3cfe037d..2602bf66760 100644 --- a/SPECS/rshim/rshim.spec +++ b/SPECS/rshim/rshim.spec @@ -4,7 +4,7 @@ Name: rshim Version: 2.1.5 -Release: 1.g8dfd6ea%{?dist} +Release: 1%{?dist} Summary: User-space driver for Mellanox BlueField SoC License: GPLv2 Vendor: Microsoft Corporation @@ -98,6 +98,8 @@ fi %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/sockperf/sockperf.spec b/SPECS/sockperf/sockperf.spec index 4da300c65b3..8fddc40be5c 100644 --- a/SPECS/sockperf/sockperf.spec +++ b/SPECS/sockperf/sockperf.spec @@ -5,7 +5,7 @@ Name: sockperf Version: %{version} -Release: 1%{release}%{?dist} +Release: 1%{?dist} Summary: Network benchmarking utility for testing latency and throughput Group: Applications/Internet License: BSD @@ -83,5 +83,7 @@ make install DESTDIR="%{?buildroot}" %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/xpmem-lib/xpmem-lib.spec b/SPECS/xpmem-lib/xpmem-lib.spec index b2478085d51..67864dd6182 100644 --- a/SPECS/xpmem-lib/xpmem-lib.spec +++ b/SPECS/xpmem-lib/xpmem-lib.spec @@ -5,7 +5,7 @@ Summary: XPMEM: Cross-partition memory Name: xpmem-lib Version: 2.7 -Release: 1.2310055 +Release: 1%{?dist} License: LGPLv2.1 Group: System Environment/Libraries Vendor: Microsoft Corporation @@ -83,5 +83,7 @@ rm -rf ${RPM_BUILD_ROOT}/etc # /etc/.version , udev rules %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/xpmem/xpmem.spec b/SPECS/xpmem/xpmem.spec index 07432d82772..5d56fa59823 100644 --- a/SPECS/xpmem/xpmem.spec +++ b/SPECS/xpmem/xpmem.spec @@ -37,7 +37,7 @@ Summary: Cross-partition memory Name: xpmem Version: 2.7.4 -Release: 1_%{_release}%{?_dist} +Release: 1%{?dist} License: GPLv2 and LGPLv2.1 Group: System Environment/Libraries Vendor: Microsoft Corporation @@ -242,6 +242,8 @@ fi %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux From 7e0bca18e2e347a24e5f15b95065a74666ec5cd1 Mon Sep 17 00:00:00 2001 From: Binu Jose Philip Date: Thu, 19 Dec 2024 03:50:37 +0000 Subject: [PATCH 08/29] Update license map. --- LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md | 2 +- LICENSES-AND-NOTICES/SPECS/data/licenses.json | 22 ++++++++++++++++++- SPECS/mft_kernel/mft_kernel.spec | 2 +- SPECS/mlnx-ethtool/mlnx-ethtool.spec | 2 +- SPECS/mlnx-iproute2/mlnx-iproute2.spec | 2 +- SPECS/sockperf/sockperf.spec | 2 +- SPECS/xpmem-lib/xpmem-lib.spec | 2 +- 7 files changed, 27 insertions(+), 7 deletions(-) diff --git a/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md b/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md index bf93a05d117..caf40e76c1b 100644 --- a/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md +++ b/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md @@ -12,7 +12,7 @@ The Azure Linux SPEC files originated from a variety of sources with varying lic | Microsoft | [Microsoft MIT License](/LICENSES-AND-NOTICES/LICENSE.md) | application-gateway-kubernetes-ingress
asc
azcopy
azure-iot-sdk-c
azure-nvme-utils
azure-storage-cpp
azurelinux-release
azurelinux-repos
azurelinux-rpm-macros
azurelinux-sysinfo
bazel
blobfuse2
bmon
bpftrace
ccache
cert-manager
cf-cli
check-restart
clamav
cloud-hypervisor-cvm
cmake-fedora
containerd
coredns
dcos-cli
debugedit
dejavu-fonts
distroless-packages
docker-buildx
docker-cli
docker-compose
doxygen
dtc
elixir
espeak-ng
espeakup
flannel
fluent-bit
freefont
gflags
gh
go-md2man
grpc
grub2-efi-binary-signed
GSL
gtk-update-icon-cache
helm
ig
intel-pf-bb-config
ivykis
jsonbuilder
jx
kata-containers-cc
kata-packages-uvm
keda
keras
kernel-64k-signed
kernel-signed
kernel-uki
kernel-uki-signed
kpatch
kube-vip-cloud-provider
kubernetes
libacvp
libconfini
libconfuse
libgdiplus
libmaxminddb
libmetalink
libsafec
libuv
libxml++
lld
local-path-provisioner
lsb-release
ltp
lttng-consume
mm-common
moby-containerd-cc
moby-engine
msgpack
ncompress
networkd-dispatcher
nlohmann-json
nmap
node-problem-detector
ntopng
opentelemetry-cpp
packer
pcaudiolib
pcre2
perl-Test-Warnings
perl-Text-Template
pigz
prebuilt-ca-certificates
prebuilt-ca-certificates-base
prometheus-adapter
python-cachetools
python-cherrypy
python-cstruct
python-execnet
python-google-pasta
python-libclang
python-libevdev
python-logutils
python-ml-dtypes
python-namex
python-nocasedict
python-omegaconf
python-opt-einsum
python-optree
python-pecan
python-pip
python-pyrpm
python-remoto
python-repoze-lru
python-routes
python-rsa
python-setuptools
python-sphinxcontrib-websupport
python-tensorboard
python-tensorboard-plugin-wit
python-yamlloader
R
rabbitmq-server
rocksdb
rubygem-addressable
rubygem-asciidoctor
rubygem-async
rubygem-async-http
rubygem-async-io
rubygem-async-pool
rubygem-bindata
rubygem-concurrent-ruby
rubygem-connection_pool
rubygem-console
rubygem-cool.io
rubygem-deep_merge
rubygem-digest-crc
rubygem-elastic-transport
rubygem-elasticsearch
rubygem-elasticsearch-api
rubygem-eventmachine
rubygem-excon
rubygem-faraday
rubygem-faraday-em_http
rubygem-faraday-em_synchrony
rubygem-faraday-excon
rubygem-faraday-httpclient
rubygem-faraday-multipart
rubygem-faraday-net_http
rubygem-faraday-net_http_persistent
rubygem-faraday-patron
rubygem-faraday-rack
rubygem-faraday-retry
rubygem-ffi
rubygem-fiber-local
rubygem-fluent-config-regexp-type
rubygem-fluent-logger
rubygem-fluent-plugin-elasticsearch
rubygem-fluent-plugin-kafka
rubygem-fluent-plugin-prometheus
rubygem-fluent-plugin-prometheus_pushgateway
rubygem-fluent-plugin-record-modifier
rubygem-fluent-plugin-rewrite-tag-filter
rubygem-fluent-plugin-systemd
rubygem-fluent-plugin-webhdfs
rubygem-fluent-plugin-windows-exporter
rubygem-fluentd
rubygem-hirb
rubygem-hocon
rubygem-hoe
rubygem-http_parser
rubygem-httpclient
rubygem-io-event
rubygem-jmespath
rubygem-ltsv
rubygem-mini_portile2
rubygem-minitest
rubygem-mocha
rubygem-msgpack
rubygem-multi_json
rubygem-multipart-post
rubygem-net-http-persistent
rubygem-nio4r
rubygem-nokogiri
rubygem-oj
rubygem-parallel
rubygem-power_assert
rubygem-prometheus-client
rubygem-protocol-hpack
rubygem-protocol-http
rubygem-protocol-http1
rubygem-protocol-http2
rubygem-public_suffix
rubygem-puppet-resource_api
rubygem-rdiscount
rubygem-rdkafka
rubygem-rexml
rubygem-ruby-kafka
rubygem-ruby-progressbar
rubygem-rubyzip
rubygem-semantic_puppet
rubygem-serverengine
rubygem-sigdump
rubygem-strptime
rubygem-systemd-journal
rubygem-test-unit
rubygem-thor
rubygem-timers
rubygem-tzinfo
rubygem-tzinfo-data
rubygem-webhdfs
rubygem-webrick
rubygem-yajl-ruby
rubygem-zip-zip
runc
sdbus-cpp
sgx-backwards-compatibility
shim
skopeo
span-lite
sriov-network-device-plugin
SymCrypt
SymCrypt-OpenSSL
systemd-boot-signed
tensorflow
tinyxml2
toml11
tracelogging
umoci
usrsctp
vala
valkey
vnstat
zstd | | Netplan source | [GPLv3](https://github.com/canonical/netplan/blob/main/COPYING) | netplan | | Numad source | [LGPLv2 License](https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt) | numad | -| NVIDIA | [ASL 2.0 License and spec specific licenses](http://www.apache.org/licenses/LICENSE-2.0) | libnvidia-container
mlnx-tools
mlx-bootctl
nvidia-container-toolkit
ofed-scripts
perftest | +| NVIDIA | [ASL 2.0 License and spec specific licenses](http://www.apache.org/licenses/LICENSE-2.0) | fwctl
fwctl-signed
ibarr
ibsim
iser
iser-signed
isert
isert-signed
knem
knem-modules-signed
libnvidia-container
mft_kernel-signed
mlnx-nfsrdma
mlnx-nfsrdma-signed
mlnx-ofa_kernel
mlnx-ofa_kernel-modules-signed
mlnx-tools
mlx-bootctl
mlx-steering-dump
multiperf
nvidia-container-toolkit
ofed-scripts
perftest
rshim
xpmem
xpmem-modules-signed | | OpenEuler | [BSD-3 License](https://github.com/pytorch/pytorch/blob/master/LICENSE) | pytorch | | OpenMamba | [Openmamba GPLv2 License](https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt) | bash-completion | | OpenSUSE | Following [openSUSE guidelines](https://en.opensuse.org/openSUSE:Specfile_guidelines#Specfile_Licensing) | ant
ant-junit
antlr
aopalliance
apache-commons-beanutils
apache-commons-cli
apache-commons-codec
apache-commons-collections
apache-commons-collections4
apache-commons-compress
apache-commons-daemon
apache-commons-dbcp
apache-commons-digester
apache-commons-httpclient
apache-commons-io
apache-commons-jexl
apache-commons-lang
apache-commons-lang3
apache-commons-logging
apache-commons-net
apache-commons-pool
apache-commons-pool2
apache-commons-validator
apache-commons-vfs2
apache-parent
args4j
atinject
base64coder
bcel
bea-stax
beust-jcommander
bsf
byaccj
cal10n
cdparanoia
cglib
cni
containerized-data-importer
cpulimit
cri-o
ecj
fillup
flux
gd
geronimo-specs
glassfish-annotation-api
gnu-getopt
gnu-regexp
golang-packaging
guava
guava20
hamcrest
hawtjni-runtime
httpcomponents-core
influx-cli
influxdb
jakarta-taglibs-standard
jansi
jarjar
java-cup
java-cup-bootstrap
javacc
javacc-bootstrap
javassist
jboss-interceptors-1.2-api
jdepend
jflex
jflex-bootstrap
jlex
jline
jna
jsch
jsoup
jsr-305
jtidy
junit
junitperf
jzlib
kubevirt
kured
libcontainers-common
libtheora
libva
libvdpau
lynx
maven-parent
multus
objectweb-anttask
objectweb-asm
objenesis
oro
osgi-annotation
osgi-compendium
osgi-core
patterns-ceph-containers
plexus-classworlds
plexus-interpolation
plexus-pom
plexus-utils
proj
psl-make-dafsa
publicsuffix
qdox
regexp
relaxngDatatype
rhino
ripgrep
servletapi4
servletapi5
shapelib
slf4j
trilead-ssh2
virtiofsd
xalan-j2
xbean
xcursor-themes
xerces-j2
xml-commons-apis
xml-commons-resolver
xmldb-api
xmlrpc-c
xmlunit
xpp2
xpp3
xz-java | diff --git a/LICENSES-AND-NOTICES/SPECS/data/licenses.json b/LICENSES-AND-NOTICES/SPECS/data/licenses.json index 51aec95013e..0f2d65b0fb4 100644 --- a/LICENSES-AND-NOTICES/SPECS/data/licenses.json +++ b/LICENSES-AND-NOTICES/SPECS/data/licenses.json @@ -2453,12 +2453,32 @@ "NVIDIA": { "license": "[ASL 2.0 License and spec specific licenses](http://www.apache.org/licenses/LICENSE-2.0)", "specs": [ + "fwctl", + "fwctl-signed", + "ibarr", + "ibsim", + "iser", + "iser-signed", + "isert", + "isert-signed", + "knem", + "knem-modules-signed", "libnvidia-container", + "mft_kernel-signed", + "mlnx-nfsrdma", + "mlnx-nfsrdma-signed", + "mlnx-ofa_kernel", + "mlnx-ofa_kernel-modules-signed", "mlnx-tools", "mlx-bootctl", + "mlx-steering-dump", + "multiperf", "nvidia-container-toolkit", "ofed-scripts", - "perftest" + "perftest", + "rshim", + "xpmem", + "xpmem-modules-signed" ] }, "OpenEuler": { diff --git a/SPECS/mft_kernel/mft_kernel.spec b/SPECS/mft_kernel/mft_kernel.spec index dbcca682060..7f1930c2d0d 100644 --- a/SPECS/mft_kernel/mft_kernel.spec +++ b/SPECS/mft_kernel/mft_kernel.spec @@ -228,7 +228,7 @@ find %{buildroot} -type f -name \*.ko -exec %{__strip} -p --strip-debug --discar %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo -- Initial Azure Linux import from NVIDIA (license: GPLv2) +- Initial Azure Linux import from NVIDIA (license: GPL) - License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/mlnx-ethtool/mlnx-ethtool.spec b/SPECS/mlnx-ethtool/mlnx-ethtool.spec index 3897c6fc329..69f2943beaa 100644 --- a/SPECS/mlnx-ethtool/mlnx-ethtool.spec +++ b/SPECS/mlnx-ethtool/mlnx-ethtool.spec @@ -41,7 +41,7 @@ make install DESTDIR=${RPM_BUILD_ROOT} %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo -- Initial Azure Linux import from NVIDIA (license: GPLv2) +- Initial Azure Linux import from NVIDIA (license: GPL) - License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/mlnx-iproute2/mlnx-iproute2.spec b/SPECS/mlnx-iproute2/mlnx-iproute2.spec index 235a08c5b4f..ed03a1f8287 100644 --- a/SPECS/mlnx-iproute2/mlnx-iproute2.spec +++ b/SPECS/mlnx-iproute2/mlnx-iproute2.spec @@ -111,7 +111,7 @@ rm -rf $RPM_BUILD_ROOT %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo -- Initial Azure Linux import from NVIDIA (license: GPLv2) +- Initial Azure Linux import from NVIDIA (license: GPL) - License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/sockperf/sockperf.spec b/SPECS/sockperf/sockperf.spec index 8fddc40be5c..9f79198705e 100644 --- a/SPECS/sockperf/sockperf.spec +++ b/SPECS/sockperf/sockperf.spec @@ -83,7 +83,7 @@ make install DESTDIR="%{?buildroot}" %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo -- Initial Azure Linux import from NVIDIA (license: GPLv2) +- Initial Azure Linux import from NVIDIA (license: BSD) - License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/xpmem-lib/xpmem-lib.spec b/SPECS/xpmem-lib/xpmem-lib.spec index 67864dd6182..58c67ca9e70 100644 --- a/SPECS/xpmem-lib/xpmem-lib.spec +++ b/SPECS/xpmem-lib/xpmem-lib.spec @@ -83,7 +83,7 @@ rm -rf ${RPM_BUILD_ROOT}/etc # /etc/.version , udev rules %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo -- Initial Azure Linux import from NVIDIA (license: GPLv2) +- Initial Azure Linux import from NVIDIA (license: LGPLv2.1) - License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux From 01f1c67ee2ac6a7ffe05ea257270c5dbea6ae58a Mon Sep 17 00:00:00 2001 From: Binu Jose Philip Date: Thu, 19 Dec 2024 06:53:59 +0000 Subject: [PATCH 09/29] License map attribution fixes --- LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md | 3 ++- LICENSES-AND-NOTICES/SPECS/data/licenses.json | 10 ++++++++++ SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec | 2 +- SPECS/mft_kernel/mft_kernel.spec | 4 ++-- SPECS/mlnx-ethtool/mlnx-ethtool.spec | 4 ++-- SPECS/mlnx-iproute2/mlnx-iproute2.spec | 4 ++-- SPECS/sockperf/sockperf.spec | 2 +- SPECS/xpmem-lib/xpmem-lib.spec | 4 ++-- toolkit/scripts/spec_source_attributions.py | 1 + 9 files changed, 23 insertions(+), 11 deletions(-) diff --git a/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md b/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md index caf40e76c1b..c1c0a458dc3 100644 --- a/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md +++ b/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md @@ -12,7 +12,8 @@ The Azure Linux SPEC files originated from a variety of sources with varying lic | Microsoft | [Microsoft MIT License](/LICENSES-AND-NOTICES/LICENSE.md) | application-gateway-kubernetes-ingress
asc
azcopy
azure-iot-sdk-c
azure-nvme-utils
azure-storage-cpp
azurelinux-release
azurelinux-repos
azurelinux-rpm-macros
azurelinux-sysinfo
bazel
blobfuse2
bmon
bpftrace
ccache
cert-manager
cf-cli
check-restart
clamav
cloud-hypervisor-cvm
cmake-fedora
containerd
coredns
dcos-cli
debugedit
dejavu-fonts
distroless-packages
docker-buildx
docker-cli
docker-compose
doxygen
dtc
elixir
espeak-ng
espeakup
flannel
fluent-bit
freefont
gflags
gh
go-md2man
grpc
grub2-efi-binary-signed
GSL
gtk-update-icon-cache
helm
ig
intel-pf-bb-config
ivykis
jsonbuilder
jx
kata-containers-cc
kata-packages-uvm
keda
keras
kernel-64k-signed
kernel-signed
kernel-uki
kernel-uki-signed
kpatch
kube-vip-cloud-provider
kubernetes
libacvp
libconfini
libconfuse
libgdiplus
libmaxminddb
libmetalink
libsafec
libuv
libxml++
lld
local-path-provisioner
lsb-release
ltp
lttng-consume
mm-common
moby-containerd-cc
moby-engine
msgpack
ncompress
networkd-dispatcher
nlohmann-json
nmap
node-problem-detector
ntopng
opentelemetry-cpp
packer
pcaudiolib
pcre2
perl-Test-Warnings
perl-Text-Template
pigz
prebuilt-ca-certificates
prebuilt-ca-certificates-base
prometheus-adapter
python-cachetools
python-cherrypy
python-cstruct
python-execnet
python-google-pasta
python-libclang
python-libevdev
python-logutils
python-ml-dtypes
python-namex
python-nocasedict
python-omegaconf
python-opt-einsum
python-optree
python-pecan
python-pip
python-pyrpm
python-remoto
python-repoze-lru
python-routes
python-rsa
python-setuptools
python-sphinxcontrib-websupport
python-tensorboard
python-tensorboard-plugin-wit
python-yamlloader
R
rabbitmq-server
rocksdb
rubygem-addressable
rubygem-asciidoctor
rubygem-async
rubygem-async-http
rubygem-async-io
rubygem-async-pool
rubygem-bindata
rubygem-concurrent-ruby
rubygem-connection_pool
rubygem-console
rubygem-cool.io
rubygem-deep_merge
rubygem-digest-crc
rubygem-elastic-transport
rubygem-elasticsearch
rubygem-elasticsearch-api
rubygem-eventmachine
rubygem-excon
rubygem-faraday
rubygem-faraday-em_http
rubygem-faraday-em_synchrony
rubygem-faraday-excon
rubygem-faraday-httpclient
rubygem-faraday-multipart
rubygem-faraday-net_http
rubygem-faraday-net_http_persistent
rubygem-faraday-patron
rubygem-faraday-rack
rubygem-faraday-retry
rubygem-ffi
rubygem-fiber-local
rubygem-fluent-config-regexp-type
rubygem-fluent-logger
rubygem-fluent-plugin-elasticsearch
rubygem-fluent-plugin-kafka
rubygem-fluent-plugin-prometheus
rubygem-fluent-plugin-prometheus_pushgateway
rubygem-fluent-plugin-record-modifier
rubygem-fluent-plugin-rewrite-tag-filter
rubygem-fluent-plugin-systemd
rubygem-fluent-plugin-webhdfs
rubygem-fluent-plugin-windows-exporter
rubygem-fluentd
rubygem-hirb
rubygem-hocon
rubygem-hoe
rubygem-http_parser
rubygem-httpclient
rubygem-io-event
rubygem-jmespath
rubygem-ltsv
rubygem-mini_portile2
rubygem-minitest
rubygem-mocha
rubygem-msgpack
rubygem-multi_json
rubygem-multipart-post
rubygem-net-http-persistent
rubygem-nio4r
rubygem-nokogiri
rubygem-oj
rubygem-parallel
rubygem-power_assert
rubygem-prometheus-client
rubygem-protocol-hpack
rubygem-protocol-http
rubygem-protocol-http1
rubygem-protocol-http2
rubygem-public_suffix
rubygem-puppet-resource_api
rubygem-rdiscount
rubygem-rdkafka
rubygem-rexml
rubygem-ruby-kafka
rubygem-ruby-progressbar
rubygem-rubyzip
rubygem-semantic_puppet
rubygem-serverengine
rubygem-sigdump
rubygem-strptime
rubygem-systemd-journal
rubygem-test-unit
rubygem-thor
rubygem-timers
rubygem-tzinfo
rubygem-tzinfo-data
rubygem-webhdfs
rubygem-webrick
rubygem-yajl-ruby
rubygem-zip-zip
runc
sdbus-cpp
sgx-backwards-compatibility
shim
skopeo
span-lite
sriov-network-device-plugin
SymCrypt
SymCrypt-OpenSSL
systemd-boot-signed
tensorflow
tinyxml2
toml11
tracelogging
umoci
usrsctp
vala
valkey
vnstat
zstd | | Netplan source | [GPLv3](https://github.com/canonical/netplan/blob/main/COPYING) | netplan | | Numad source | [LGPLv2 License](https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt) | numad | -| NVIDIA | [ASL 2.0 License and spec specific licenses](http://www.apache.org/licenses/LICENSE-2.0) | fwctl
fwctl-signed
ibarr
ibsim
iser
iser-signed
isert
isert-signed
knem
knem-modules-signed
libnvidia-container
mft_kernel-signed
mlnx-nfsrdma
mlnx-nfsrdma-signed
mlnx-ofa_kernel
mlnx-ofa_kernel-modules-signed
mlnx-tools
mlx-bootctl
mlx-steering-dump
multiperf
nvidia-container-toolkit
ofed-scripts
perftest
rshim
xpmem
xpmem-modules-signed | +| NVIDIA | [ASL 2.0 License and spec specific licenses](http://www.apache.org/licenses/LICENSE-2.0) | fwctl
fwctl-signed
ibarr
ibsim
iser
iser-signed
isert
isert-signed
knem
knem-modules-signed
libnvidia-container
mft_kernel
mft_kernel-signed
mlnx-ethtool
mlnx-iproute2
mlnx-nfsrdma
mlnx-nfsrdma-signed
mlnx-ofa_kernel
mlnx-ofa_kernel-modules-signed
mlnx-tools
mlx-bootctl
mlx-steering-dump
multiperf
nvidia-container-toolkit
ofed-scripts
perftest
rshim
xpmem
xpmem-lib
xpmem-modules-signed | +| NVIDIA (BSD) | [BSD](https://github.com/Mellanox/sockperf/blob/sockperf_v2/copying) | sockperf | | OpenEuler | [BSD-3 License](https://github.com/pytorch/pytorch/blob/master/LICENSE) | pytorch | | OpenMamba | [Openmamba GPLv2 License](https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt) | bash-completion | | OpenSUSE | Following [openSUSE guidelines](https://en.opensuse.org/openSUSE:Specfile_guidelines#Specfile_Licensing) | ant
ant-junit
antlr
aopalliance
apache-commons-beanutils
apache-commons-cli
apache-commons-codec
apache-commons-collections
apache-commons-collections4
apache-commons-compress
apache-commons-daemon
apache-commons-dbcp
apache-commons-digester
apache-commons-httpclient
apache-commons-io
apache-commons-jexl
apache-commons-lang
apache-commons-lang3
apache-commons-logging
apache-commons-net
apache-commons-pool
apache-commons-pool2
apache-commons-validator
apache-commons-vfs2
apache-parent
args4j
atinject
base64coder
bcel
bea-stax
beust-jcommander
bsf
byaccj
cal10n
cdparanoia
cglib
cni
containerized-data-importer
cpulimit
cri-o
ecj
fillup
flux
gd
geronimo-specs
glassfish-annotation-api
gnu-getopt
gnu-regexp
golang-packaging
guava
guava20
hamcrest
hawtjni-runtime
httpcomponents-core
influx-cli
influxdb
jakarta-taglibs-standard
jansi
jarjar
java-cup
java-cup-bootstrap
javacc
javacc-bootstrap
javassist
jboss-interceptors-1.2-api
jdepend
jflex
jflex-bootstrap
jlex
jline
jna
jsch
jsoup
jsr-305
jtidy
junit
junitperf
jzlib
kubevirt
kured
libcontainers-common
libtheora
libva
libvdpau
lynx
maven-parent
multus
objectweb-anttask
objectweb-asm
objenesis
oro
osgi-annotation
osgi-compendium
osgi-core
patterns-ceph-containers
plexus-classworlds
plexus-interpolation
plexus-pom
plexus-utils
proj
psl-make-dafsa
publicsuffix
qdox
regexp
relaxngDatatype
rhino
ripgrep
servletapi4
servletapi5
shapelib
slf4j
trilead-ssh2
virtiofsd
xalan-j2
xbean
xcursor-themes
xerces-j2
xml-commons-apis
xml-commons-resolver
xmldb-api
xmlrpc-c
xmlunit
xpp2
xpp3
xz-java | diff --git a/LICENSES-AND-NOTICES/SPECS/data/licenses.json b/LICENSES-AND-NOTICES/SPECS/data/licenses.json index 0f2d65b0fb4..8e7ec6aff63 100644 --- a/LICENSES-AND-NOTICES/SPECS/data/licenses.json +++ b/LICENSES-AND-NOTICES/SPECS/data/licenses.json @@ -2464,7 +2464,10 @@ "knem", "knem-modules-signed", "libnvidia-container", + "mft_kernel", "mft_kernel-signed", + "mlnx-ethtool", + "mlnx-iproute2", "mlnx-nfsrdma", "mlnx-nfsrdma-signed", "mlnx-ofa_kernel", @@ -2478,9 +2481,16 @@ "perftest", "rshim", "xpmem", + "xpmem-lib", "xpmem-modules-signed" ] }, + "NVIDIA (BSD)": { + "license": "[BSD](https://github.com/Mellanox/sockperf/blob/sockperf_v2/copying)", + "specs": [ + "sockperf" + ] + }, "OpenEuler": { "license": "[BSD-3 License](https://github.com/pytorch/pytorch/blob/master/LICENSE)", "specs": [ diff --git a/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec b/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec index 33d682bcbe7..2f857f3f7a0 100644 --- a/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec +++ b/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec @@ -37,7 +37,7 @@ Name: %{_name} Summary: %{name} Kernel Module for the %{KVERSION} kernel Version: %{version} Release: 1%{?dist} -License: Dual BSD/GPL +License: Dual BSD/GPLv2 Group: System Environment/Kernel BuildRoot: /var/tmp/%{name}-%{version}-build diff --git a/SPECS/mft_kernel/mft_kernel.spec b/SPECS/mft_kernel/mft_kernel.spec index 7f1930c2d0d..175c1d7f970 100644 --- a/SPECS/mft_kernel/mft_kernel.spec +++ b/SPECS/mft_kernel/mft_kernel.spec @@ -39,7 +39,7 @@ Name: kernel-mft Summary: %{name} Kernel Module for the %{KVERSION} kernel Version: %{version} Release: 1%{?dist} -License: Dual BSD/GPL +License: Dual BSD/GPLv2 Group: System Environment/Kernel BuildRoot: /var/tmp/%{name}-%{version}-build Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/kernel-mft-4.30.0.tgz#/kernel-mft-%{version}.tgz @@ -228,7 +228,7 @@ find %{buildroot} -type f -name \*.ko -exec %{__strip} -p --strip-debug --discar %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo -- Initial Azure Linux import from NVIDIA (license: GPL) +- Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/mlnx-ethtool/mlnx-ethtool.spec b/SPECS/mlnx-ethtool/mlnx-ethtool.spec index 69f2943beaa..49a93772e2f 100644 --- a/SPECS/mlnx-ethtool/mlnx-ethtool.spec +++ b/SPECS/mlnx-ethtool/mlnx-ethtool.spec @@ -3,7 +3,7 @@ Version: 6.9 Release: 2%{?dist} Group: Utilities Summary: Settings tool for Ethernet and other network devices -License: GPL +License: GPLv2 Vendor: Microsoft Corporation Distribution: Azure Linux URL: https://ftp.kernel.org/pub/software/network/ethtool/ @@ -41,7 +41,7 @@ make install DESTDIR=${RPM_BUILD_ROOT} %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo -- Initial Azure Linux import from NVIDIA (license: GPL) +- Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/mlnx-iproute2/mlnx-iproute2.spec b/SPECS/mlnx-iproute2/mlnx-iproute2.spec index ed03a1f8287..c76dcba380b 100644 --- a/SPECS/mlnx-iproute2/mlnx-iproute2.spec +++ b/SPECS/mlnx-iproute2/mlnx-iproute2.spec @@ -36,7 +36,7 @@ Summary: Advanced IP routing and network device configuration tools Name: mlnx-iproute2 Version: 6.10.0 Release: 2%{?dist} -License: GPL +License: GPLv2 Group: Networking/Admin Vendor: Microsoft Corporation Distribution: Azure Linux @@ -111,7 +111,7 @@ rm -rf $RPM_BUILD_ROOT %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo -- Initial Azure Linux import from NVIDIA (license: GPL) +- Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/sockperf/sockperf.spec b/SPECS/sockperf/sockperf.spec index 9f79198705e..6f59fc76586 100644 --- a/SPECS/sockperf/sockperf.spec +++ b/SPECS/sockperf/sockperf.spec @@ -83,7 +83,7 @@ make install DESTDIR="%{?buildroot}" %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo -- Initial Azure Linux import from NVIDIA (license: BSD) +- Initial Azure Linux import from NVIDIA (BSD) (license: BSD). - License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/xpmem-lib/xpmem-lib.spec b/SPECS/xpmem-lib/xpmem-lib.spec index 58c67ca9e70..d91b5e4c71f 100644 --- a/SPECS/xpmem-lib/xpmem-lib.spec +++ b/SPECS/xpmem-lib/xpmem-lib.spec @@ -6,7 +6,7 @@ Summary: XPMEM: Cross-partition memory Name: xpmem-lib Version: 2.7 Release: 1%{?dist} -License: LGPLv2.1 +License: GPLv2 Group: System Environment/Libraries Vendor: Microsoft Corporation Distribution: Azure Linux @@ -83,7 +83,7 @@ rm -rf ${RPM_BUILD_ROOT}/etc # /etc/.version , udev rules %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo -- Initial Azure Linux import from NVIDIA (license: LGPLv2.1) +- Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/toolkit/scripts/spec_source_attributions.py b/toolkit/scripts/spec_source_attributions.py index 8d5b367547f..b1216d4778e 100755 --- a/toolkit/scripts/spec_source_attributions.py +++ b/toolkit/scripts/spec_source_attributions.py @@ -17,6 +17,7 @@ "Fedora (ISC)": r'\n-\s+Initial (CBL-Mariner|Azure Linux) import from Fedora \d+ \(license: ISC\)(\.|\n|$)', "Magnus Edenhill Open Source": r'\n-\s+Initial (CBL-Mariner|Azure Linux) import from Magnus Edenhill Open Source \(license: BSD\)(\.|\n|$)', "NVIDIA": r'\n-\s+Initial (CBL-Mariner|Azure Linux) import from NVIDIA \(license: (ASL 2\.0|GPLv2)\)(\.|\n|$)', + "NVIDIA (BSD)": r'\n-\s+Initial (CBL-Mariner|Azure Linux) import from NVIDIA \(BSD\) \(license: (BSD)\)(\.|\n|$)', "OpenEuler": r'\n-\s+Initial (CBL-Mariner|Azure Linux) import from OpenEuler \(license: BSD\)(\.|\n|$)', "OpenMamba": r'\n-\s+Initial (CBL-Mariner|Azure Linux) import from OpenMamba(\.|\n|$)', "OpenSUSE": r'\n-\s+Initial (CBL-Mariner|Azure Linux) import from openSUSE \w+ \(license: same as "License" tag\)(\.|\n|$)', From 0a6d15539eb91ef280e0d9b09fcf42fb14bb8a32 Mon Sep 17 00:00:00 2001 From: Binu Jose Philip Date: Mon, 30 Dec 2024 19:52:25 +0000 Subject: [PATCH 10/29] invert build host detection condition --- SPECS/fwctl/fwctl.spec | 4 ++-- SPECS/iser/iser.spec | 4 ++-- SPECS/isert/isert.spec | 4 ++-- SPECS/knem/knem.spec | 4 ++-- SPECS/mft_kernel/mft_kernel.spec | 4 ++-- SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec | 5 +++-- SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec | 4 ++-- SPECS/xpmem/xpmem.spec | 4 ++-- 8 files changed, 17 insertions(+), 16 deletions(-) diff --git a/SPECS/fwctl/fwctl.spec b/SPECS/fwctl/fwctl.spec index 5184f3d727f..43d5a08fad3 100644 --- a/SPECS/fwctl/fwctl.spec +++ b/SPECS/fwctl/fwctl.spec @@ -35,9 +35,9 @@ %{!?_release: %define _release OFED.24.10.0.6.7.1} %if 0%{azl} -%global target_kernel_version_full f.a.k.e -%else %global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers) +%else +%global target_kernel_version_full f.a.k.e %endif %global KVERSION %{target_kernel_version_full} diff --git a/SPECS/iser/iser.spec b/SPECS/iser/iser.spec index a9a7c6f9c7f..877eba66e9d 100644 --- a/SPECS/iser/iser.spec +++ b/SPECS/iser/iser.spec @@ -27,9 +27,9 @@ # %if 0%{azl} -%global target_kernel_version_full f.a.k.e -%else %global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers) +%else +%global target_kernel_version_full f.a.k.e %endif %global KVERSION %{target_kernel_version_full} diff --git a/SPECS/isert/isert.spec b/SPECS/isert/isert.spec index 85f13055f47..31b177c8683 100644 --- a/SPECS/isert/isert.spec +++ b/SPECS/isert/isert.spec @@ -27,9 +27,9 @@ # %if 0%{azl} -%global target_kernel_version_full f.a.k.e -%else %global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers) +%else +%global target_kernel_version_full f.a.k.e %endif %global KVERSION %{target_kernel_version_full} diff --git a/SPECS/knem/knem.spec b/SPECS/knem/knem.spec index de4554f9929..eb36f797e14 100644 --- a/SPECS/knem/knem.spec +++ b/SPECS/knem/knem.spec @@ -27,9 +27,9 @@ %{!?KMP: %global KMP 0} %if 0%{azl} -%global target_kernel_version_full f.a.k.e -%else %global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers) +%else +%global target_kernel_version_full f.a.k.e %endif %global KVERSION %{target_kernel_version_full} diff --git a/SPECS/mft_kernel/mft_kernel.spec b/SPECS/mft_kernel/mft_kernel.spec index 175c1d7f970..48ebb28c654 100644 --- a/SPECS/mft_kernel/mft_kernel.spec +++ b/SPECS/mft_kernel/mft_kernel.spec @@ -1,8 +1,8 @@ %if 0%{azl} -%global target_kernel_version_full f.a.k.e -%else %global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers) +%else +%global target_kernel_version_full f.a.k.e %endif %global KVERSION %{target_kernel_version_full} diff --git a/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec b/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec index 7087aaa0582..69ee22fb8d4 100644 --- a/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec +++ b/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec @@ -27,11 +27,12 @@ # %if 0%{azl} -%global target_kernel_version_full f.a.k.e -%else %global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers) +%else +%global target_kernel_version_full f.a.k.e %endif + %global KVERSION %{target_kernel_version_full} %global K_SRC /lib/modules/%{target_kernel_version_full}/build diff --git a/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec b/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec index 320683aec8f..5ce876eeb9c 100644 --- a/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec +++ b/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec @@ -27,9 +27,9 @@ # %if 0%{azl} -%global target_kernel_version_full f.a.k.e -%else %global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers) +%else +%global target_kernel_version_full f.a.k.e %endif %global KVERSION %{target_kernel_version_full} diff --git a/SPECS/xpmem/xpmem.spec b/SPECS/xpmem/xpmem.spec index 5d56fa59823..e934ce96ad2 100644 --- a/SPECS/xpmem/xpmem.spec +++ b/SPECS/xpmem/xpmem.spec @@ -1,9 +1,9 @@ %{!?KMP: %global KMP 0} %if 0%{azl} -%global target_kernel_version_full f.a.k.e -%else %global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers) +%else +%global target_kernel_version_full f.a.k.e %endif %global KVERSION %{target_kernel_version_full} From 9f8adbe750a36c854bf201d9875ea44d8cc121e8 Mon Sep 17 00:00:00 2001 From: Binu Jose Philip Date: Wed, 1 Jan 2025 07:01:20 +0000 Subject: [PATCH 11/29] fix release field for kernel modules --- SPECS/knem/knem.spec | 2 +- SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec | 8 ++------ SPECS/xpmem/xpmem.spec | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/SPECS/knem/knem.spec b/SPECS/knem/knem.spec index eb36f797e14..045bccfe9b7 100644 --- a/SPECS/knem/knem.spec +++ b/SPECS/knem/knem.spec @@ -113,7 +113,7 @@ EOF) %global flavors_to_build default %package -n %{non_kmp_pname} -Release: %{_release}.kver.%{krelver} +Release: 1%{?dist} Summary: KNEM: High-Performance Intra-Node MPI Communication Group: System Environment/Libraries %description -n %{non_kmp_pname} diff --git a/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec b/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec index 5ce876eeb9c..0fb7b36962b 100644 --- a/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec +++ b/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec @@ -187,7 +187,7 @@ Obsoletes: mlnx-en-debuginfo Obsoletes: mlnx-en-sources Obsoletes: mlnx-rdma-rxe Version: %{_version} -Release: %{_release}.kver.%{krelver} +Release: 1%{?dist} Summary: Infiniband Driver and ULPs kernel modules Group: System Environment/Libraries %description -n %{non_kmp_pname} @@ -199,11 +199,7 @@ The driver sources are located at: http://www.mellanox.com/downloads/ofed/mlnx-o %package -n %{devel_pname} Version: %{_version} # build KMP rpms? -%if "%{KMP}" == "1" -Release: %{_release}%{?_dist} -%else -Release: %{_release}.kver.%{krelver} -%endif +Release: 1%{?dist} Obsoletes: kernel-ib-devel Obsoletes: kernel-ib Obsoletes: mlnx-en diff --git a/SPECS/xpmem/xpmem.spec b/SPECS/xpmem/xpmem.spec index e934ce96ad2..021640d4a45 100644 --- a/SPECS/xpmem/xpmem.spec +++ b/SPECS/xpmem/xpmem.spec @@ -122,7 +122,7 @@ EOF) %package modules # %{nil}: to avoid having the script that build OFED-internal # munge the release version here as well: -Release%{nil}: %{release}.kver.%{krelver} +Release: 1%{?dist} Summary: XPMEM: kernel modules Group: System Environment/Libraries %description modules From 3d3e4dfa218531c3cfaf4f73e5348e4f5487a359 Mon Sep 17 00:00:00 2001 From: Binu Jose Philip Date: Thu, 9 Jan 2025 19:07:18 +0000 Subject: [PATCH 12/29] add srp spec and srp-signed spec --- SPECS-SIGNED/srp-signed/srp.spec | 118 ++++++++++++++ SPECS/srp/srp.signatures.json | 5 + SPECS/srp/srp.spec | 259 +++++++++++++++++++++++++++++++ 3 files changed, 382 insertions(+) create mode 100644 SPECS-SIGNED/srp-signed/srp.spec create mode 100644 SPECS/srp/srp.signatures.json create mode 100644 SPECS/srp/srp.spec diff --git a/SPECS-SIGNED/srp-signed/srp.spec b/SPECS-SIGNED/srp-signed/srp.spec new file mode 100644 index 00000000000..7c78db50816 --- /dev/null +++ b/SPECS-SIGNED/srp-signed/srp.spec @@ -0,0 +1,118 @@ +# +# Copyright (c) 2014 Mellanox Technologies. All rights reserved. +# +# This Software is licensed under one of the following licenses: +# +# 1) under the terms of the "Common Public License 1.0" a copy of which is +# available from the Open Source Initiative, see +# http://www.opensource.org/licenses/cpl.php. +# +# 2) under the terms of the "The BSD License" a copy of which is +# available from the Open Source Initiative, see +# http://www.opensource.org/licenses/bsd-license.php. +# +# 3) under the terms of the "GNU General Public License (GPL) Version 2" a +# copy of which is available from the Open Source Initiative, see +# http://www.opensource.org/licenses/gpl-license.php. +# +# Licensee has the right to choose one of the above licenses. +# +# Redistributions of source code must retain the above copyright +# notice and one of the license notices. +# +# Redistributions in binary form must reproduce both the above copyright +# notice, one of the license notices in the documentation +# and/or other materials provided with the distribution. +# +# + +%if 0%{azl} +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers) +%else +%global target_kernel_version_full f.a.k.e +%endif + +%global KVERSION %{target_kernel_version_full} +%global K_SRC /lib/modules/%{target_kernel_version_full}/build + +%{!?_name: %define _name srp} +%{!?_version: %define _version 24.10} +%{!?_release: %define _release OFED.24.10.0.6.7.1} + +# KMP is disabled by default +%{!?KMP: %global KMP 0} + +# take kernel version or default to uname -r +# %{!?KVERSION: %global KVERSION %(uname -r)} +%{!?KVERSION: %global KVERSION %{target_kernel_version_full}} +%global kernel_version %{KVERSION} +%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') +# take path to kernel sources if provided, otherwise look in default location (for non KMP rpms). +%{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} + +# define release version +%{!?src_release: %global src_release %{_release}_%{krelver}} +%if "%{KMP}" != "1" +%global _release1 %{src_release} +%else +%global _release1 %{_release} +%endif +%global _kmp_rel %{_release1}%{?_kmp_build_num}%{?_dist} + +Summary: srp driver +Name: srp +Version: %{_version} +Release: 1%{?dist} +License: GPLv2 +Url: http://www.mellanox.com +Group: System Environment/Base +Source0: %{name}-%{version}-%{release}.%{_arch}.rpm +Source1: ib_srp.ko +Source2: scsi_transport_srp.ko + +BuildRoot: /var/tmp/%{name}-%{version}-build +Vendor: Microsoft Corporation +Distribution: Azure Linux + +BuildRequires: gcc +BuildRequires: make +BuildRequires: kernel-devel = %{target_kernel_version_full} +BuildRequires: kernel-headers = %{target_kernel_version_full} +BuildRequires: binutils +BuildRequires: systemd +BuildRequires: kmod +BuildRequires: libconfig-devel +BuildRequires: mlnx-ofa_kernel-devel = %{_version} +BuildRequires: mlnx-ofa_kernel-source = %{_version} + +Requires: mlnx-ofa_kernel = %{_version} +Requires: mlnx-ofa_kernel-modules = %{_version} +Requires: kernel = %{target_kernel_version_full} +Requires: kmod + +%description +srp kernel modules + +%prep + +%build +rpm2cpio %{Source0} | cpio -idmv -D %{buildroot} + +%install +cp %{Source1} %{buildroot}/lib/modules/%{KVERSION}/updates/srp/ib_srp.ko +cp %{Source2} %{buildroot}/lib/modules/%{KVERSION}/updates/srp/scsi/scsi_transport_srp.ko + +%clean +rm -rf %{buildroot} + +%if "%{KMP}" != "1" +%files modules +/lib/modules/%{KVERSION}/updates/srp/ib_srp.ko +/lib/modules/%{KVERSION}/updates/srp/scsi/scsi_transport_srp.ko +%endif + +%changelog +* Thu Jan 9 2024 Binu Jose Philip +- Creating signed spec +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified diff --git a/SPECS/srp/srp.signatures.json b/SPECS/srp/srp.signatures.json new file mode 100644 index 00000000000..2995809df54 --- /dev/null +++ b/SPECS/srp/srp.signatures.json @@ -0,0 +1,5 @@ +{ + "Signatures": { + "srp-24.10.tgz": "880de8f29086abe2dc37686c3b9b9eaf7412bdedf7abc2754e3451705e2acba1" + } +} \ No newline at end of file diff --git a/SPECS/srp/srp.spec b/SPECS/srp/srp.spec new file mode 100644 index 00000000000..801e130b942 --- /dev/null +++ b/SPECS/srp/srp.spec @@ -0,0 +1,259 @@ +# +# Copyright (c) 2014 Mellanox Technologies. All rights reserved. +# +# This Software is licensed under one of the following licenses: +# +# 1) under the terms of the "Common Public License 1.0" a copy of which is +# available from the Open Source Initiative, see +# http://www.opensource.org/licenses/cpl.php. +# +# 2) under the terms of the "The BSD License" a copy of which is +# available from the Open Source Initiative, see +# http://www.opensource.org/licenses/bsd-license.php. +# +# 3) under the terms of the "GNU General Public License (GPL) Version 2" a +# copy of which is available from the Open Source Initiative, see +# http://www.opensource.org/licenses/gpl-license.php. +# +# Licensee has the right to choose one of the above licenses. +# +# Redistributions of source code must retain the above copyright +# notice and one of the license notices. +# +# Redistributions in binary form must reproduce both the above copyright +# notice, one of the license notices in the documentation +# and/or other materials provided with the distribution. +# +# + +%if 0%{azl} +%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers) +%else +%global target_kernel_version_full f.a.k.e +%endif + +%global KVERSION %{target_kernel_version_full} +%global K_SRC /lib/modules/%{target_kernel_version_full}/build + +%{!?_name: %define _name srp} +%{!?_version: %define _version 24.10} +%{!?_release: %define _release OFED.24.10.0.6.7.1} + +# KMP is disabled by default +%{!?KMP: %global KMP 0} + +# take kernel version or default to uname -r +# %{!?KVERSION: %global KVERSION %(uname -r)} +%{!?KVERSION: %global KVERSION %{target_kernel_version_full}} +%global kernel_version %{KVERSION} +%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') +# take path to kernel sources if provided, otherwise look in default location (for non KMP rpms). +%{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} + +# define release version +%{!?src_release: %global src_release %{_release}_%{krelver}} +%if "%{KMP}" != "1" +%global _release1 %{src_release} +%else +%global _release1 %{_release} +%endif +%global _kmp_rel %{_release1}%{?_kmp_build_num}%{?_dist} + +Summary: srp driver +Name: srp +Version: %{_version} +Release: 1%{?dist} +License: GPLv2 +Url: http://www.mellanox.com +Group: System Environment/Base +Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/srp-24.10.tgz#/%{name}-%{version}.tgz +BuildRoot: /var/tmp/%{name}-%{version}-build +Vendor: Microsoft Corporation +Distribution: Azure Linux + +BuildRequires: gcc +BuildRequires: make +BuildRequires: kernel-devel = %{target_kernel_version_full} +BuildRequires: kernel-headers = %{target_kernel_version_full} +BuildRequires: binutils +BuildRequires: systemd +BuildRequires: kmod +BuildRequires: libconfig-devel +BuildRequires: mlnx-ofa_kernel-devel = %{_version} +BuildRequires: mlnx-ofa_kernel-source = %{_version} + +Requires: mlnx-ofa_kernel = %{_version} +Requires: mlnx-ofa_kernel-modules = %{_version} +Requires: kernel = %{target_kernel_version_full} +Requires: kmod + +%description +%{name} kernel modules + +# build KMP rpms? +%if "%{KMP}" == "1" +%global kernel_release() $(make -s -C %{1} kernelrelease M=$PWD) +BuildRequires: %kernel_module_package_buildreqs +%(mkdir -p %{buildroot}) +%(echo '%defattr (-,root,root)' > %{buildroot}/file_list) +%(echo '/lib/modules/%2-%1' >> %{buildroot}/file_list) +%(echo '%config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*-%1.conf' >> %{buildroot}/file_list) +%{kernel_module_package -f %{buildroot}/file_list -x xen -r %{_kmp_rel} } +%else +%global kernel_source() %{K_SRC} +%global kernel_release() %{KVERSION} +%global flavors_to_build default +%endif + +# +# setup module sign scripts if paths to the keys are given +# +%global WITH_MOD_SIGN %(if ( test -f "$MODULE_SIGN_PRIV_KEY" && test -f "$MODULE_SIGN_PUB_KEY" ); \ + then \ + echo -n '1'; \ + else \ + echo -n '0'; fi) + +%if "%{WITH_MOD_SIGN}" == "1" +# call module sign script +%global __modsign_install_post \ + %{_builddir}/%{name}-%{version}/source/tools/sign-modules %{buildroot}/lib/modules/ %{kernel_source default} || exit 1 \ +%{nil} + +%global __debug_package 1 +%global buildsubdir %{name}-%{version} +# Disgusting hack alert! We need to ensure we sign modules *after* all +# invocations of strip occur, which is in __debug_install_post if +# find-debuginfo.sh runs, and __os_install_post if not. +# +%global __spec_install_post \ + %{?__debug_package:%{__debug_install_post}} \ + %{__arch_install_post} \ + %{__os_install_post} \ + %{__modsign_install_post} \ +%{nil} + +%endif # end of setup module sign scripts +# + +%if "%{_vendor}" == "suse" +%debug_package +%endif + +%if 0%{?anolis} == 8 +%global __find_requires %{nil} +%endif + +# set modules dir +%if "%{_vendor}" == "redhat" || ("%{_vendor}" == "openEuler") +%if 0%{?fedora} +%global install_mod_dir updates/%{name} +%else +%global install_mod_dir extra/%{name} +%endif +%endif + +%if "%{_vendor}" == "suse" +%global install_mod_dir updates/%{name} +%endif + +%{!?install_mod_dir: %global install_mod_dir updates/%{name}} + +%prep +%setup +set -- * +mkdir source +mv "$@" source/ +mkdir obj + +%build +export EXTRA_CFLAGS='-DVERSION=\"%version\"' +export INSTALL_MOD_DIR=%{install_mod_dir} +export CONF_OPTIONS="%{configure_options}" +for flavor in %{flavors_to_build}; do + export K_BUILD=%{kernel_source $flavor} + export KVER=%{kernel_release $K_BUILD} + export LIB_MOD_DIR=/lib/modules/$KVER/$INSTALL_MOD_DIR + rm -rf obj/$flavor + cp -r source obj/$flavor + cd $PWD/obj/$flavor + make + cd - +done + +%install +export INSTALL_MOD_PATH=%{buildroot} +export INSTALL_MOD_DIR=%{install_mod_dir} +export PREFIX=%{_prefix} +for flavor in %flavors_to_build; do + export K_BUILD=%{kernel_source $flavor} + export KVER=%{kernel_release $K_BUILD} + cd $PWD/obj/$flavor + make install KERNELRELEASE=$KVER + # Cleanup unnecessary kernel-generated module dependency files. + find $INSTALL_MOD_PATH/lib/modules -iname 'modules.*' -exec rm {} \; + cd - +done + +# Set the module(s) to be executable, so that they will be stripped when packaged. +find %{buildroot} \( -type f -name '*.ko' -o -name '*ko.gz' \) -exec %{__chmod} u+x \{\} \; + +%{__install} -d %{buildroot}%{_sysconfdir}/depmod.d/ +for module in `find %{buildroot}/ -name '*.ko' -o -name '*.ko.gz' | sort` +do +ko_name=${module##*/} +mod_name=${ko_name/.ko*/} +mod_path=${module/*\/%{name}} +mod_path=${mod_path/\/${ko_name}} +%if "%{_vendor}" == "suse" + for flavor in %{flavors_to_build}; do + if [[ $module =~ $flavor ]] || [ "X%{KMP}" != "X1" ];then + echo "override ${mod_name} * updates/%{name}${mod_path}" >> %{buildroot}%{_sysconfdir}/depmod.d/zz02-%{name}-${mod_name}-$flavor.conf + fi + done +%else + %if 0%{?fedora} + echo "override ${mod_name} * updates/%{name}${mod_path}" >> %{buildroot}%{_sysconfdir}/depmod.d/zz02-%{name}-${mod_name}.conf + %else + %if "%{_vendor}" == "redhat" || ("%{_vendor}" == "openEuler") + echo "override ${mod_name} * weak-updates/%{name}${mod_path}" >> %{buildroot}%{_sysconfdir}/depmod.d/zz02-%{name}-${mod_name}.conf + %endif + echo "override ${mod_name} * extra/%{name}${mod_path}" >> %{buildroot}%{_sysconfdir}/depmod.d/zz02-%{name}-${mod_name}.conf + %endif +%endif +done + + +%clean +rm -rf %{buildroot} + +%post +if [ $1 -ge 1 ]; then # 1 : This package is being installed or reinstalled + /sbin/depmod %{KVERSION} +fi # 1 : closed +# add SRP_LOAD=no to openib.conf +if [ -f "/etc/infiniband/openib.conf" ] && ! (grep -q SRP_LOAD /etc/infiniband/openib.conf > /dev/null 2>&1) ; then + echo "# Load SRP module" >> /etc/infiniband/openib.conf + echo "SRP_LOAD=no" >> /etc/infiniband/openib.conf +fi +# END of post + +%postun +/sbin/depmod %{KVERSION} + +%if "%{KMP}" != "1" +%files +%defattr(-,root,root,-) +/lib/modules/%{KVERSION}/%{install_mod_dir}/ +%config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf +%endif + +%changelog +* Thu Jan 9 2024 Binu Jose Philip +- Moving to core from azlinux-ai-ml repo +- Initial Azure Linux import from NVIDIA (license: GPLv2) +- License verified +* Thu Nov 07 2024 Suresh Babu Chalamalasetty +- Initial version Azure Linux +* Thu Feb 20 2014 Alaa Hleihel +- Initial packaging From 31e88d336420a1ef7b85d8441e1598283638bb9d Mon Sep 17 00:00:00 2001 From: Binu Jose Philip Date: Thu, 9 Jan 2025 20:22:48 +0000 Subject: [PATCH 13/29] cgmanifest changes for srp --- cgmanifest.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cgmanifest.json b/cgmanifest.json index 5985e14e9a0..0e67eda4af9 100644 --- a/cgmanifest.json +++ b/cgmanifest.json @@ -28201,6 +28201,16 @@ } } }, + { + "component": { + "type": "other", + "other": { + "name": "srp", + "version": "24.10", + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/srp-24.10.tgz" + } + } + }, { "component": { "type": "other", From cf23ff6e5c163a7031374618e68e4f19c8ab361c Mon Sep 17 00:00:00 2001 From: Binu Jose Philip Date: Fri, 10 Jan 2025 02:27:23 +0000 Subject: [PATCH 14/29] add correct checksum for srp tgz --- SPECS/srp/srp.signatures.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SPECS/srp/srp.signatures.json b/SPECS/srp/srp.signatures.json index 2995809df54..226e0a58452 100644 --- a/SPECS/srp/srp.signatures.json +++ b/SPECS/srp/srp.signatures.json @@ -1,5 +1,5 @@ { "Signatures": { - "srp-24.10.tgz": "880de8f29086abe2dc37686c3b9b9eaf7412bdedf7abc2754e3451705e2acba1" + "srp-24.10.tgz": "bc4897a8317fe2204109cffe935ae64aeb7dd5f09df3ac9a0317ddfb6ed71286" } -} \ No newline at end of file +} From 88b578d7ef49cf6a3663fe48cf9bde2895af45f9 Mon Sep 17 00:00:00 2001 From: Binu Jose Philip Date: Fri, 10 Jan 2025 04:18:56 +0000 Subject: [PATCH 15/29] license configuration for srp package --- LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md | 2 +- LICENSES-AND-NOTICES/SPECS/data/licenses.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md b/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md index c1c0a458dc3..af1e9e1c56d 100644 --- a/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md +++ b/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md @@ -12,7 +12,7 @@ The Azure Linux SPEC files originated from a variety of sources with varying lic | Microsoft | [Microsoft MIT License](/LICENSES-AND-NOTICES/LICENSE.md) | application-gateway-kubernetes-ingress
asc
azcopy
azure-iot-sdk-c
azure-nvme-utils
azure-storage-cpp
azurelinux-release
azurelinux-repos
azurelinux-rpm-macros
azurelinux-sysinfo
bazel
blobfuse2
bmon
bpftrace
ccache
cert-manager
cf-cli
check-restart
clamav
cloud-hypervisor-cvm
cmake-fedora
containerd
coredns
dcos-cli
debugedit
dejavu-fonts
distroless-packages
docker-buildx
docker-cli
docker-compose
doxygen
dtc
elixir
espeak-ng
espeakup
flannel
fluent-bit
freefont
gflags
gh
go-md2man
grpc
grub2-efi-binary-signed
GSL
gtk-update-icon-cache
helm
ig
intel-pf-bb-config
ivykis
jsonbuilder
jx
kata-containers-cc
kata-packages-uvm
keda
keras
kernel-64k-signed
kernel-signed
kernel-uki
kernel-uki-signed
kpatch
kube-vip-cloud-provider
kubernetes
libacvp
libconfini
libconfuse
libgdiplus
libmaxminddb
libmetalink
libsafec
libuv
libxml++
lld
local-path-provisioner
lsb-release
ltp
lttng-consume
mm-common
moby-containerd-cc
moby-engine
msgpack
ncompress
networkd-dispatcher
nlohmann-json
nmap
node-problem-detector
ntopng
opentelemetry-cpp
packer
pcaudiolib
pcre2
perl-Test-Warnings
perl-Text-Template
pigz
prebuilt-ca-certificates
prebuilt-ca-certificates-base
prometheus-adapter
python-cachetools
python-cherrypy
python-cstruct
python-execnet
python-google-pasta
python-libclang
python-libevdev
python-logutils
python-ml-dtypes
python-namex
python-nocasedict
python-omegaconf
python-opt-einsum
python-optree
python-pecan
python-pip
python-pyrpm
python-remoto
python-repoze-lru
python-routes
python-rsa
python-setuptools
python-sphinxcontrib-websupport
python-tensorboard
python-tensorboard-plugin-wit
python-yamlloader
R
rabbitmq-server
rocksdb
rubygem-addressable
rubygem-asciidoctor
rubygem-async
rubygem-async-http
rubygem-async-io
rubygem-async-pool
rubygem-bindata
rubygem-concurrent-ruby
rubygem-connection_pool
rubygem-console
rubygem-cool.io
rubygem-deep_merge
rubygem-digest-crc
rubygem-elastic-transport
rubygem-elasticsearch
rubygem-elasticsearch-api
rubygem-eventmachine
rubygem-excon
rubygem-faraday
rubygem-faraday-em_http
rubygem-faraday-em_synchrony
rubygem-faraday-excon
rubygem-faraday-httpclient
rubygem-faraday-multipart
rubygem-faraday-net_http
rubygem-faraday-net_http_persistent
rubygem-faraday-patron
rubygem-faraday-rack
rubygem-faraday-retry
rubygem-ffi
rubygem-fiber-local
rubygem-fluent-config-regexp-type
rubygem-fluent-logger
rubygem-fluent-plugin-elasticsearch
rubygem-fluent-plugin-kafka
rubygem-fluent-plugin-prometheus
rubygem-fluent-plugin-prometheus_pushgateway
rubygem-fluent-plugin-record-modifier
rubygem-fluent-plugin-rewrite-tag-filter
rubygem-fluent-plugin-systemd
rubygem-fluent-plugin-webhdfs
rubygem-fluent-plugin-windows-exporter
rubygem-fluentd
rubygem-hirb
rubygem-hocon
rubygem-hoe
rubygem-http_parser
rubygem-httpclient
rubygem-io-event
rubygem-jmespath
rubygem-ltsv
rubygem-mini_portile2
rubygem-minitest
rubygem-mocha
rubygem-msgpack
rubygem-multi_json
rubygem-multipart-post
rubygem-net-http-persistent
rubygem-nio4r
rubygem-nokogiri
rubygem-oj
rubygem-parallel
rubygem-power_assert
rubygem-prometheus-client
rubygem-protocol-hpack
rubygem-protocol-http
rubygem-protocol-http1
rubygem-protocol-http2
rubygem-public_suffix
rubygem-puppet-resource_api
rubygem-rdiscount
rubygem-rdkafka
rubygem-rexml
rubygem-ruby-kafka
rubygem-ruby-progressbar
rubygem-rubyzip
rubygem-semantic_puppet
rubygem-serverengine
rubygem-sigdump
rubygem-strptime
rubygem-systemd-journal
rubygem-test-unit
rubygem-thor
rubygem-timers
rubygem-tzinfo
rubygem-tzinfo-data
rubygem-webhdfs
rubygem-webrick
rubygem-yajl-ruby
rubygem-zip-zip
runc
sdbus-cpp
sgx-backwards-compatibility
shim
skopeo
span-lite
sriov-network-device-plugin
SymCrypt
SymCrypt-OpenSSL
systemd-boot-signed
tensorflow
tinyxml2
toml11
tracelogging
umoci
usrsctp
vala
valkey
vnstat
zstd | | Netplan source | [GPLv3](https://github.com/canonical/netplan/blob/main/COPYING) | netplan | | Numad source | [LGPLv2 License](https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt) | numad | -| NVIDIA | [ASL 2.0 License and spec specific licenses](http://www.apache.org/licenses/LICENSE-2.0) | fwctl
fwctl-signed
ibarr
ibsim
iser
iser-signed
isert
isert-signed
knem
knem-modules-signed
libnvidia-container
mft_kernel
mft_kernel-signed
mlnx-ethtool
mlnx-iproute2
mlnx-nfsrdma
mlnx-nfsrdma-signed
mlnx-ofa_kernel
mlnx-ofa_kernel-modules-signed
mlnx-tools
mlx-bootctl
mlx-steering-dump
multiperf
nvidia-container-toolkit
ofed-scripts
perftest
rshim
xpmem
xpmem-lib
xpmem-modules-signed | +| NVIDIA | [ASL 2.0 License and spec specific licenses](http://www.apache.org/licenses/LICENSE-2.0) | fwctl
fwctl-signed
ibarr
ibsim
iser
iser-signed
isert
isert-signed
knem
knem-modules-signed
libnvidia-container
mft_kernel
mft_kernel-signed
mlnx-ethtool
mlnx-iproute2
mlnx-nfsrdma
mlnx-nfsrdma-signed
mlnx-ofa_kernel
mlnx-ofa_kernel-modules-signed
mlnx-tools
mlx-bootctl
mlx-steering-dump
multiperf
nvidia-container-toolkit
ofed-scripts
perftest
rshim
srp
xpmem
xpmem-lib
xpmem-modules-signed | | NVIDIA (BSD) | [BSD](https://github.com/Mellanox/sockperf/blob/sockperf_v2/copying) | sockperf | | OpenEuler | [BSD-3 License](https://github.com/pytorch/pytorch/blob/master/LICENSE) | pytorch | | OpenMamba | [Openmamba GPLv2 License](https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt) | bash-completion | diff --git a/LICENSES-AND-NOTICES/SPECS/data/licenses.json b/LICENSES-AND-NOTICES/SPECS/data/licenses.json index 8e7ec6aff63..d094af02c80 100644 --- a/LICENSES-AND-NOTICES/SPECS/data/licenses.json +++ b/LICENSES-AND-NOTICES/SPECS/data/licenses.json @@ -2480,6 +2480,7 @@ "ofed-scripts", "perftest", "rshim", + "srp", "xpmem", "xpmem-lib", "xpmem-modules-signed" From 95fac18d6fae46bf716fe0d7c356fb313c5725ec Mon Sep 17 00:00:00 2001 From: Binu Jose Philip Date: Fri, 10 Jan 2025 04:22:01 +0000 Subject: [PATCH 16/29] use version specific url for srp source tgz --- SPECS/srp/srp.spec | 2 +- cgmanifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SPECS/srp/srp.spec b/SPECS/srp/srp.spec index 801e130b942..f0496cf9123 100644 --- a/SPECS/srp/srp.spec +++ b/SPECS/srp/srp.spec @@ -66,7 +66,7 @@ Release: 1%{?dist} License: GPLv2 Url: http://www.mellanox.com Group: System Environment/Base -Source: https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/srp-24.10.tgz#/%{name}-%{version}.tgz +Source: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/srp-24.10.tgz#/%{name}-%{version}.tgz BuildRoot: /var/tmp/%{name}-%{version}-build Vendor: Microsoft Corporation Distribution: Azure Linux diff --git a/cgmanifest.json b/cgmanifest.json index 0e67eda4af9..77eabaeb1a1 100644 --- a/cgmanifest.json +++ b/cgmanifest.json @@ -28207,7 +28207,7 @@ "other": { "name": "srp", "version": "24.10", - "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/latest/SRPMS/srp-24.10.tgz" + "downloadUrl": "https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/srp-24.10.tgz" } } }, From c4a13d5ceabc0aa37418e6f842e4e4ace4fdf22e Mon Sep 17 00:00:00 2001 From: Binu Jose Philip Date: Fri, 10 Jan 2025 17:52:46 +0000 Subject: [PATCH 17/29] revert mlx-bootctl spec change --- SPECS/mlx-bootctl/mlx-bootctl.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPECS/mlx-bootctl/mlx-bootctl.spec b/SPECS/mlx-bootctl/mlx-bootctl.spec index eb5f4ea3a85..24a490ee13d 100644 --- a/SPECS/mlx-bootctl/mlx-bootctl.spec +++ b/SPECS/mlx-bootctl/mlx-bootctl.spec @@ -44,7 +44,7 @@ Vendor: Microsoft Corporation Distribution: Azure Linux Group: System Environment/Base URL: https://www.mellanox.com/ -Source0: https://linux.mellanox.com/public/repo/bluefield/%{BF_VERSION}/extras/SOURCES/%{name}-%{version}.tar.gz +Source: https://linux.mellanox.com/public/repo/bluefield/%{BF_VERSION}/extras/SOURCES/%{name}-%{version}.tar.gz BuildRequires: kernel-devel BuildRequires: kmod From 1dffb697909fd13b46d305a9076cd2b730e5144a Mon Sep 17 00:00:00 2001 From: Binu Jose Philip Date: Thu, 19 Dec 2024 03:50:37 +0000 Subject: [PATCH 18/29] Update license map. --- LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md | 2 +- LICENSES-AND-NOTICES/SPECS/data/licenses.json | 2 ++ SPECS/mft_kernel/mft_kernel.spec | 2 +- SPECS/mlnx-ethtool/mlnx-ethtool.spec | 2 +- SPECS/mlnx-iproute2/mlnx-iproute2.spec | 2 +- SPECS/xpmem-lib/xpmem-lib.spec | 2 +- 6 files changed, 7 insertions(+), 5 deletions(-) diff --git a/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md b/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md index 4fc99827e89..651e748d554 100644 --- a/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md +++ b/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md @@ -12,7 +12,7 @@ The Azure Linux SPEC files originated from a variety of sources with varying lic | Microsoft | [Microsoft MIT License](/LICENSES-AND-NOTICES/LICENSE.md) | application-gateway-kubernetes-ingress
asc
azcopy
azure-iot-sdk-c
azure-nvme-utils
azure-storage-cpp
azurelinux-release
azurelinux-repos
azurelinux-rpm-macros
azurelinux-sysinfo
bazel
blobfuse2
bmon
bpftrace
ccache
cert-manager
cf-cli
check-restart
clamav
cloud-hypervisor-cvm
cmake-fedora
containerd
containerd2
coredns
dcos-cli
debugedit
dejavu-fonts
distroless-packages
docker-buildx
docker-cli
docker-compose
doxygen
dtc
elixir
espeak-ng
espeakup
flannel
fluent-bit
freefont
gflags
gh
go-md2man
grpc
grub2-efi-binary-signed
GSL
gtk-update-icon-cache
helm
ig
intel-pf-bb-config
ivykis
jsonbuilder
jx
kata-containers-cc
kata-packages-uvm
keda
keras
kernel-64k-signed
kernel-signed
kernel-uki
kernel-uki-signed
kpatch
kube-vip-cloud-provider
kubernetes
libacvp
libconfini
libconfuse
libgdiplus
libmaxminddb
libmetalink
libsafec
libuv
libxml++
lld
local-path-provisioner
lsb-release
ltp
lttng-consume
mm-common
moby-containerd-cc
moby-engine
msgpack
ncompress
networkd-dispatcher
nlohmann-json
nmap
node-problem-detector
ntopng
opentelemetry-cpp
packer
pcaudiolib
pcre2
perl-Test-Warnings
perl-Text-Template
pigz
prebuilt-ca-certificates
prebuilt-ca-certificates-base
prometheus-adapter
python-cachetools
python-cherrypy
python-cstruct
python-execnet
python-google-pasta
python-libclang
python-libevdev
python-logutils
python-ml-dtypes
python-namex
python-nocasedict
python-omegaconf
python-opt-einsum
python-optree
python-pecan
python-pip
python-pyrpm
python-remoto
python-repoze-lru
python-routes
python-rsa
python-setuptools
python-sphinxcontrib-websupport
python-tensorboard
python-tensorboard-plugin-wit
python-yamlloader
R
rabbitmq-server
rocksdb
rubygem-addressable
rubygem-asciidoctor
rubygem-async
rubygem-async-http
rubygem-async-io
rubygem-async-pool
rubygem-bindata
rubygem-concurrent-ruby
rubygem-connection_pool
rubygem-console
rubygem-cool.io
rubygem-deep_merge
rubygem-digest-crc
rubygem-elastic-transport
rubygem-elasticsearch
rubygem-elasticsearch-api
rubygem-eventmachine
rubygem-excon
rubygem-faraday
rubygem-faraday-em_http
rubygem-faraday-em_synchrony
rubygem-faraday-excon
rubygem-faraday-httpclient
rubygem-faraday-multipart
rubygem-faraday-net_http
rubygem-faraday-net_http_persistent
rubygem-faraday-patron
rubygem-faraday-rack
rubygem-faraday-retry
rubygem-ffi
rubygem-fiber-local
rubygem-fluent-config-regexp-type
rubygem-fluent-logger
rubygem-fluent-plugin-elasticsearch
rubygem-fluent-plugin-kafka
rubygem-fluent-plugin-prometheus
rubygem-fluent-plugin-prometheus_pushgateway
rubygem-fluent-plugin-record-modifier
rubygem-fluent-plugin-rewrite-tag-filter
rubygem-fluent-plugin-systemd
rubygem-fluent-plugin-webhdfs
rubygem-fluent-plugin-windows-exporter
rubygem-fluentd
rubygem-hirb
rubygem-hocon
rubygem-hoe
rubygem-http_parser
rubygem-httpclient
rubygem-io-event
rubygem-jmespath
rubygem-ltsv
rubygem-mini_portile2
rubygem-minitest
rubygem-mocha
rubygem-msgpack
rubygem-multi_json
rubygem-multipart-post
rubygem-net-http-persistent
rubygem-nio4r
rubygem-nokogiri
rubygem-oj
rubygem-parallel
rubygem-power_assert
rubygem-prometheus-client
rubygem-protocol-hpack
rubygem-protocol-http
rubygem-protocol-http1
rubygem-protocol-http2
rubygem-public_suffix
rubygem-puppet-resource_api
rubygem-rdiscount
rubygem-rdkafka
rubygem-rexml
rubygem-ruby-kafka
rubygem-ruby-progressbar
rubygem-rubyzip
rubygem-semantic_puppet
rubygem-serverengine
rubygem-sigdump
rubygem-strptime
rubygem-systemd-journal
rubygem-test-unit
rubygem-thor
rubygem-timers
rubygem-tzinfo
rubygem-tzinfo-data
rubygem-webhdfs
rubygem-webrick
rubygem-yajl-ruby
rubygem-zip-zip
runc
sdbus-cpp
sgx-backwards-compatibility
shim
skopeo
span-lite
sriov-network-device-plugin
SymCrypt
SymCrypt-OpenSSL
systemd-boot-signed
tensorflow
tinyxml2
toml11
tracelogging
umoci
usrsctp
vala
valkey
vnstat
zstd | | Netplan source | [GPLv3](https://github.com/canonical/netplan/blob/main/COPYING) | netplan | | Numad source | [LGPLv2 License](https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt) | numad | -| NVIDIA | [ASL 2.0 License and spec specific licenses](http://www.apache.org/licenses/LICENSE-2.0) | libnvidia-container
mlnx-tools
mlx-bootctl
nvidia-container-toolkit
ofed-docs
ofed-scripts
perftest
fwctl
fwctl-signed
ibarr
ibsim
iser
iser-signed
isert
isert-signed
knem
knem-modules-signed
libnvidia-container
mft_kernel
mft_kernel-signed
mlnx-ethtool
mlnx-iproute2
mlnx-nfsrdma
mlnx-nfsrdma-signed
mlnx-ofa_kernel
mlnx-ofa_kernel-modules-signed
mlnx-tools
mlx-bootctl
mlx-steering-dump
multiperf
nvidia-container-toolkit
ofed-scripts
perftest
rshim
srp
xpmem
xpmem-lib
xpmem-modules-signed | +| NVIDIA | [ASL 2.0 License and spec specific licenses](http://www.apache.org/licenses/LICENSE-2.0) | fwctl
fwctl-signed
ibarr
ibsim
iser
iser-signed
isert
isert-signed
knem
knem-modules-signed
libnvidia-container
mft_kernel
mft_kernel-signed
mlnx-ethtool
mlnx-iproute2
mlnx-nfsrdma
mlnx-nfsrdma-signed
mlnx-ofa_kernel
mlnx-ofa_kernel-modules-signed
mlnx-tools
mlx-bootctl
mlx-steering-dump
multiperf
nvidia-container-toolkit
ofed-docs
ofed-scripts
perftest
rshim
srp
xpmem
xpmem-lib
xpmem-modules-signed | | NVIDIA (BSD) | [BSD](https://github.com/Mellanox/sockperf/blob/sockperf_v2/copying) | sockperf | | OpenEuler | [BSD-3 License](https://github.com/pytorch/pytorch/blob/master/LICENSE) | pytorch | | OpenMamba | [Openmamba GPLv2 License](https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt) | bash-completion | diff --git a/LICENSES-AND-NOTICES/SPECS/data/licenses.json b/LICENSES-AND-NOTICES/SPECS/data/licenses.json index 3ab2b3e6e83..18bcd20a511 100644 --- a/LICENSES-AND-NOTICES/SPECS/data/licenses.json +++ b/LICENSES-AND-NOTICES/SPECS/data/licenses.json @@ -2493,6 +2493,8 @@ "license": "[BSD](https://github.com/Mellanox/sockperf/blob/sockperf_v2/copying)", "specs": [ "sockperf" + "xpmem", + "xpmem-modules-signed" ] }, "OpenEuler": { diff --git a/SPECS/mft_kernel/mft_kernel.spec b/SPECS/mft_kernel/mft_kernel.spec index 48ebb28c654..29d46b42e09 100644 --- a/SPECS/mft_kernel/mft_kernel.spec +++ b/SPECS/mft_kernel/mft_kernel.spec @@ -228,7 +228,7 @@ find %{buildroot} -type f -name \*.ko -exec %{__strip} -p --strip-debug --discar %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo -- Initial Azure Linux import from NVIDIA (license: GPLv2) +- Initial Azure Linux import from NVIDIA (license: GPL) - License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/mlnx-ethtool/mlnx-ethtool.spec b/SPECS/mlnx-ethtool/mlnx-ethtool.spec index 49a93772e2f..51b086223fb 100644 --- a/SPECS/mlnx-ethtool/mlnx-ethtool.spec +++ b/SPECS/mlnx-ethtool/mlnx-ethtool.spec @@ -41,7 +41,7 @@ make install DESTDIR=${RPM_BUILD_ROOT} %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo -- Initial Azure Linux import from NVIDIA (license: GPLv2) +- Initial Azure Linux import from NVIDIA (license: GPL) - License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/mlnx-iproute2/mlnx-iproute2.spec b/SPECS/mlnx-iproute2/mlnx-iproute2.spec index c76dcba380b..0574667a7b3 100644 --- a/SPECS/mlnx-iproute2/mlnx-iproute2.spec +++ b/SPECS/mlnx-iproute2/mlnx-iproute2.spec @@ -111,7 +111,7 @@ rm -rf $RPM_BUILD_ROOT %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo -- Initial Azure Linux import from NVIDIA (license: GPLv2) +- Initial Azure Linux import from NVIDIA (license: GPL) - License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/xpmem-lib/xpmem-lib.spec b/SPECS/xpmem-lib/xpmem-lib.spec index d91b5e4c71f..f0720eb8b06 100644 --- a/SPECS/xpmem-lib/xpmem-lib.spec +++ b/SPECS/xpmem-lib/xpmem-lib.spec @@ -83,7 +83,7 @@ rm -rf ${RPM_BUILD_ROOT}/etc # /etc/.version , udev rules %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo -- Initial Azure Linux import from NVIDIA (license: GPLv2) +- Initial Azure Linux import from NVIDIA (license: LGPLv2.1) - License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux From d11664288be0aa3517a2f6fa75f0dc320200a809 Mon Sep 17 00:00:00 2001 From: Binu Jose Philip Date: Thu, 19 Dec 2024 06:53:59 +0000 Subject: [PATCH 19/29] License map attribution fixes --- LICENSES-AND-NOTICES/SPECS/data/licenses.json | 7 +++++++ SPECS/mft_kernel/mft_kernel.spec | 2 +- SPECS/mlnx-ethtool/mlnx-ethtool.spec | 2 +- SPECS/mlnx-iproute2/mlnx-iproute2.spec | 2 +- SPECS/xpmem-lib/xpmem-lib.spec | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/LICENSES-AND-NOTICES/SPECS/data/licenses.json b/LICENSES-AND-NOTICES/SPECS/data/licenses.json index 18bcd20a511..ee3cd27a091 100644 --- a/LICENSES-AND-NOTICES/SPECS/data/licenses.json +++ b/LICENSES-AND-NOTICES/SPECS/data/licenses.json @@ -2494,9 +2494,16 @@ "specs": [ "sockperf" "xpmem", + "xpmem-lib", "xpmem-modules-signed" ] }, + "NVIDIA (BSD)": { + "license": "[BSD](https://github.com/Mellanox/sockperf/blob/sockperf_v2/copying)", + "specs": [ + "sockperf" + ] + }, "OpenEuler": { "license": "[BSD-3 License](https://github.com/pytorch/pytorch/blob/master/LICENSE)", "specs": [ diff --git a/SPECS/mft_kernel/mft_kernel.spec b/SPECS/mft_kernel/mft_kernel.spec index 29d46b42e09..48ebb28c654 100644 --- a/SPECS/mft_kernel/mft_kernel.spec +++ b/SPECS/mft_kernel/mft_kernel.spec @@ -228,7 +228,7 @@ find %{buildroot} -type f -name \*.ko -exec %{__strip} -p --strip-debug --discar %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo -- Initial Azure Linux import from NVIDIA (license: GPL) +- Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/mlnx-ethtool/mlnx-ethtool.spec b/SPECS/mlnx-ethtool/mlnx-ethtool.spec index 51b086223fb..49a93772e2f 100644 --- a/SPECS/mlnx-ethtool/mlnx-ethtool.spec +++ b/SPECS/mlnx-ethtool/mlnx-ethtool.spec @@ -41,7 +41,7 @@ make install DESTDIR=${RPM_BUILD_ROOT} %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo -- Initial Azure Linux import from NVIDIA (license: GPL) +- Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/mlnx-iproute2/mlnx-iproute2.spec b/SPECS/mlnx-iproute2/mlnx-iproute2.spec index 0574667a7b3..c76dcba380b 100644 --- a/SPECS/mlnx-iproute2/mlnx-iproute2.spec +++ b/SPECS/mlnx-iproute2/mlnx-iproute2.spec @@ -111,7 +111,7 @@ rm -rf $RPM_BUILD_ROOT %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo -- Initial Azure Linux import from NVIDIA (license: GPL) +- Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux diff --git a/SPECS/xpmem-lib/xpmem-lib.spec b/SPECS/xpmem-lib/xpmem-lib.spec index f0720eb8b06..d91b5e4c71f 100644 --- a/SPECS/xpmem-lib/xpmem-lib.spec +++ b/SPECS/xpmem-lib/xpmem-lib.spec @@ -83,7 +83,7 @@ rm -rf ${RPM_BUILD_ROOT}/etc # /etc/.version , udev rules %changelog * Tue Dec 17 2024 Binu Jose Philip - Moving to core from azlinux-ai-ml repo -- Initial Azure Linux import from NVIDIA (license: LGPLv2.1) +- Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified * Thu Nov 07 2024 Suresh Babu Chalamalasetty - Initial version Azure Linux From 26e2829bb8d96d04c6cfaf472da1bee09e0be654 Mon Sep 17 00:00:00 2001 From: Binu Jose Philip Date: Tue, 14 Jan 2025 21:13:22 +0000 Subject: [PATCH 20/29] add missing comma in licences.json --- LICENSES-AND-NOTICES/SPECS/data/licenses.json | 9 --------- 1 file changed, 9 deletions(-) diff --git a/LICENSES-AND-NOTICES/SPECS/data/licenses.json b/LICENSES-AND-NOTICES/SPECS/data/licenses.json index ee3cd27a091..3ab2b3e6e83 100644 --- a/LICENSES-AND-NOTICES/SPECS/data/licenses.json +++ b/LICENSES-AND-NOTICES/SPECS/data/licenses.json @@ -2489,15 +2489,6 @@ "xpmem-modules-signed" ] }, - "NVIDIA (BSD)": { - "license": "[BSD](https://github.com/Mellanox/sockperf/blob/sockperf_v2/copying)", - "specs": [ - "sockperf" - "xpmem", - "xpmem-lib", - "xpmem-modules-signed" - ] - }, "NVIDIA (BSD)": { "license": "[BSD](https://github.com/Mellanox/sockperf/blob/sockperf_v2/copying)", "specs": [ From 3ce9426b7a1845e709ca1f81fba434ad05082c58 Mon Sep 17 00:00:00 2001 From: chalamalasetty Date: Tue, 14 Jan 2025 17:00:08 -0800 Subject: [PATCH 21/29] Build MOFED and dependencies for x86_64 and fix code review comments --- SPECS-SIGNED/fwctl-signed/fwctl-signed.spec | 7 +++---- SPECS-SIGNED/iser-signed/iser-signed.spec | 5 +++-- SPECS-SIGNED/isert-signed/isert-signed.spec | 5 +++-- SPECS-SIGNED/knem-signed/knem-modules-signed.spec | 5 +++-- SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec | 5 +++-- SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec | 5 +++-- .../mlnx-ofa_kernel-modules-signed.spec | 5 +++-- SPECS-SIGNED/srp-signed/srp.spec | 5 +++-- SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec | 5 +++-- SPECS/fwctl/fwctl.spec | 5 +++-- SPECS/ibarr/ibarr.spec | 5 +++-- SPECS/ibsim/ibsim.spec | 5 ++--- SPECS/iser/iser.spec | 5 +++-- SPECS/isert/isert.spec | 5 +++-- SPECS/knem/knem.spec | 5 +++-- SPECS/mft_kernel/mft_kernel.spec | 3 ++- SPECS/mlnx-ethtool/mlnx-ethtool.spec | 5 +++-- SPECS/mlnx-iproute2/mlnx-iproute2.spec | 1 + SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec | 5 +++-- SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec | 5 +++-- SPECS/mlx-steering-dump/mlx-steering-dump.spec | 5 +++-- SPECS/multiperf/multiperf.spec | 5 +++-- SPECS/rshim/rshim.spec | 5 +++-- SPECS/sockperf/sockperf.spec | 1 + SPECS/srp/srp.spec | 5 +++-- SPECS/xpmem-lib/xpmem-lib.spec | 5 +++-- SPECS/xpmem/xpmem.spec | 5 +++-- 27 files changed, 75 insertions(+), 52 deletions(-) diff --git a/SPECS-SIGNED/fwctl-signed/fwctl-signed.spec b/SPECS-SIGNED/fwctl-signed/fwctl-signed.spec index 24b7eb1b109..24edb48be6c 100644 --- a/SPECS-SIGNED/fwctl-signed/fwctl-signed.spec +++ b/SPECS-SIGNED/fwctl-signed/fwctl-signed.spec @@ -44,8 +44,6 @@ # KMP is disabled by default %{!?KMP: %global KMP 0} -# take kernel version or default to uname -r -# %{!?KVERSION: %global KVERSION %(uname -r)} %{!?KVERSION: %global KVERSION %{target_kernel_version_full}} %global kernel_version %{KVERSION} %global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') @@ -87,8 +85,9 @@ Source1: fwctl.ko Source2: mlx5_fwctl.ko BuildRoot: /var/tmp/%{name}-%{version}-build -Vendor: Microsoft Corporation -Distribution: Azure Linux +Vendor: Microsoft Corporation +Distribution: Azure Linux +ExclusiveArch: x86_64 BuildRequires: gcc BuildRequires: make diff --git a/SPECS-SIGNED/iser-signed/iser-signed.spec b/SPECS-SIGNED/iser-signed/iser-signed.spec index 7796e8fc954..41205dd7c21 100644 --- a/SPECS-SIGNED/iser-signed/iser-signed.spec +++ b/SPECS-SIGNED/iser-signed/iser-signed.spec @@ -82,8 +82,9 @@ Source0: %{name}-%{version}-%{release}.%{_arch}.rpm Source1: ib_iser.ko BuildRoot: /var/tmp/%{name}-%{version}-build -Vendor: Microsoft Corporation -Distribution: Azure Linux +Vendor: Microsoft Corporation +Distribution: Azure Linux +ExclusiveArch: x86_64 BuildRequires: gcc BuildRequires: make diff --git a/SPECS-SIGNED/isert-signed/isert-signed.spec b/SPECS-SIGNED/isert-signed/isert-signed.spec index 4472d533f5c..61f1be8a3e2 100644 --- a/SPECS-SIGNED/isert-signed/isert-signed.spec +++ b/SPECS-SIGNED/isert-signed/isert-signed.spec @@ -82,8 +82,9 @@ Source0: %{name}-%{version}-%{release}.%{_arch}.rpm Source1: ib_isert.ko BuildRoot: /var/tmp/%{name}-%{version}-build -Vendor: Microsoft Corporation -Distribution: Azure Linux +Vendor: Microsoft Corporation +Distribution: Azure Linux +ExclusiveArch: x86_64 BuildRequires: gcc BuildRequires: make diff --git a/SPECS-SIGNED/knem-signed/knem-modules-signed.spec b/SPECS-SIGNED/knem-signed/knem-modules-signed.spec index 1436f02b63b..f9183937384 100644 --- a/SPECS-SIGNED/knem-signed/knem-modules-signed.spec +++ b/SPECS-SIGNED/knem-signed/knem-modules-signed.spec @@ -57,8 +57,9 @@ Provides: knem-mlnx = %{version}-%{release} Obsoletes: knem-mlnx < %{version}-%{release} License: BSD and GPLv2 Group: System Environment/Libraries -Vendor: Microsoft Corporation -Distribution: Azure Linux +Vendor: Microsoft Corporation +Distribution: Azure Linux +ExclusiveArch: x86_64 # This package's "version" and "release" must reflect the unsigned version that # was signed. diff --git a/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec b/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec index 2f857f3f7a0..83d87823589 100644 --- a/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec +++ b/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec @@ -57,8 +57,9 @@ BuildRoot: /var/tmp/%{name}-%{version}-build Source0: %{name}-%{version}-%{release}.%{_arch}.rpm Source1: mst_pci.ko Source2: mst_pciconf.ko -Vendor: Microsoft Corporation -Distribution: Azure Linux +Vendor: Microsoft Corporation +Distribution: Azure Linux +ExclusiveArch: x86_64 BuildRequires: gcc BuildRequires: make diff --git a/SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec b/SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec index 9433de4a293..1b08f8b2685 100644 --- a/SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec +++ b/SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec @@ -85,8 +85,9 @@ Source2: svcrdma.ko Source3: xprtrdma.ko BuildRoot: /var/tmp/%{name}-%{version}-build -Vendor: Microsoft Corporation -Distribution: Azure Linux +Vendor: Microsoft Corporation +Distribution: Azure Linux +ExclusiveArch: x86_64 BuildRequires: gcc BuildRequires: make diff --git a/SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec b/SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec index 803aa1e26fd..f2a13d76f8d 100644 --- a/SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec +++ b/SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec @@ -149,8 +149,9 @@ Source18: svcrdma.ko Source19: xprtrdma.ko BuildRoot: /var/tmp/%{name}-%{version}-build -Vendor: Microsoft Corporation -Distribution: Azure Linux +Vendor: Microsoft Corporation +Distribution: Azure Linux +ExclusiveArch: x86_64 Obsoletes: kernel-ib Obsoletes: mlnx-en diff --git a/SPECS-SIGNED/srp-signed/srp.spec b/SPECS-SIGNED/srp-signed/srp.spec index 7c78db50816..cfcf624eb3f 100644 --- a/SPECS-SIGNED/srp-signed/srp.spec +++ b/SPECS-SIGNED/srp-signed/srp.spec @@ -71,8 +71,9 @@ Source1: ib_srp.ko Source2: scsi_transport_srp.ko BuildRoot: /var/tmp/%{name}-%{version}-build -Vendor: Microsoft Corporation -Distribution: Azure Linux +Vendor: Microsoft Corporation +Distribution: Azure Linux +ExclusiveArch: x86_64 BuildRequires: gcc BuildRequires: make diff --git a/SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec b/SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec index d16a532e7fb..71a7b9b74c5 100644 --- a/SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec +++ b/SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec @@ -41,10 +41,11 @@ Version: 2.7.4 Release: 1%{?dist} License: GPLv2 and LGPLv2.1 Group: System Environment/Libraries -Vendor: Microsoft Corporation -Distribution: Azure Linux +Vendor: Microsoft Corporation +Distribution: Azure Linux BuildRequires: automake autoconf URL: https://github.com/openucx/xpmem +ExclusiveArch: x86_64 # This package's "version" and "release" must reflect the unsigned version that # was signed. diff --git a/SPECS/fwctl/fwctl.spec b/SPECS/fwctl/fwctl.spec index 43d5a08fad3..8170c8ee64a 100644 --- a/SPECS/fwctl/fwctl.spec +++ b/SPECS/fwctl/fwctl.spec @@ -71,8 +71,9 @@ Url: http://nvidia.com Group: System Environment/Base Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/fwctl-24.10.tgz#/%{_name}-%{_version}.tgz BuildRoot: /var/tmp/%{name}-%{version}-build -Vendor: Microsoft Corporation -Distribution: Azure Linux +Vendor: Microsoft Corporation +Distribution: Azure Linux +ExclusiveArch: x86_64 BuildRequires: gcc BuildRequires: make diff --git a/SPECS/ibarr/ibarr.spec b/SPECS/ibarr/ibarr.spec index 4df57e3da60..ad519a6609c 100644 --- a/SPECS/ibarr/ibarr.spec +++ b/SPECS/ibarr/ibarr.spec @@ -2,11 +2,12 @@ Name: ibarr Version: 0.1.3 Release: 2%{?dist} Summary: Nvidia address and route userspace resolution services for Infiniband -Vendor: Microsoft Corporation -Distribution: Azure Linux +Vendor: Microsoft Corporation +Distribution: Azure Linux Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/ibarr-0.1.3.tar.gz#/%{name}-%{version}.tar.gz Group: Applications/System License: (GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause +ExclusiveArch: x86_64 BuildRequires: cmake BuildRequires: gcc diff --git a/SPECS/ibsim/ibsim.spec b/SPECS/ibsim/ibsim.spec index 51b117a1556..49439a4239d 100644 --- a/SPECS/ibsim/ibsim.spec +++ b/SPECS/ibsim/ibsim.spec @@ -12,7 +12,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/ibsim-0.12.tar.gz#/ibsim-%{version}.tar.gz Url: https://github.com/linux-rdma/ibsim Vendor: Microsoft Corporation -Distribution: Azure Linux +Distribution: Azure Linux +ExclusiveArch: x86_64 BuildRequires: libibmad-devel BuildRequires: libibumad-devel @@ -50,5 +51,3 @@ rm -rf $RPM_BUILD_ROOT - Moving to core from azlinux-ai-ml repo - Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified -* Thu Nov 07 2024 Suresh Babu Chalamalasetty -- Initial version Azure Linux diff --git a/SPECS/iser/iser.spec b/SPECS/iser/iser.spec index 877eba66e9d..06e7da2adde 100644 --- a/SPECS/iser/iser.spec +++ b/SPECS/iser/iser.spec @@ -68,8 +68,9 @@ Url: http://www.mellanox.com Group: System Environment/Base Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/iser-24.10.tgz#/iser-%{_version}.tgz BuildRoot: /var/tmp/%{name}-%{version}-build -Vendor: Microsoft Corporation -Distribution: Azure Linux +Vendor: Microsoft Corporation +Distribution: Azure Linux +ExclusiveArch: x86_64 BuildRequires: gcc BuildRequires: make diff --git a/SPECS/isert/isert.spec b/SPECS/isert/isert.spec index 31b177c8683..4fb4eb75360 100644 --- a/SPECS/isert/isert.spec +++ b/SPECS/isert/isert.spec @@ -68,8 +68,9 @@ Url: http://www.mellanox.com Group: System Environment/Base Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/isert-24.10.tgz#/isert-%{_version}.tgz BuildRoot: /var/tmp/%{name}-%{version}-build -Vendor: Microsoft Corporation -Distribution: Azure Linux +Vendor: Microsoft Corporation +Distribution: Azure Linux +ExclusiveArch: x86_64 BuildRequires: gcc BuildRequires: make diff --git a/SPECS/knem/knem.spec b/SPECS/knem/knem.spec index 045bccfe9b7..303a29a0ca4 100644 --- a/SPECS/knem/knem.spec +++ b/SPECS/knem/knem.spec @@ -56,10 +56,11 @@ Provides: knem-mlnx = %{version}-%{release} Obsoletes: knem-mlnx < %{version}-%{release} License: BSD and GPLv2 Group: System Environment/Libraries -Vendor: Microsoft Corporation -Distribution: Azure Linux +Vendor: Microsoft Corporation +Distribution: Azure Linux Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/knem-1.1.4.90mlnx3.tar.gz#/knem-%{version}.tar.gz BuildRoot: /var/tmp/%{name}-%{version}-build +ExclusiveArch: x86_64 BuildRequires: gcc BuildRequires: make diff --git a/SPECS/mft_kernel/mft_kernel.spec b/SPECS/mft_kernel/mft_kernel.spec index 48ebb28c654..fb7f5cda700 100644 --- a/SPECS/mft_kernel/mft_kernel.spec +++ b/SPECS/mft_kernel/mft_kernel.spec @@ -44,7 +44,8 @@ Group: System Environment/Kernel BuildRoot: /var/tmp/%{name}-%{version}-build Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/kernel-mft-4.30.0.tgz#/kernel-mft-%{version}.tgz Vendor: Microsoft Corporation -Distribution: Azure Linux +Distribution: Azure Linux +ExclusiveArch: x86_64 BuildRequires: gcc BuildRequires: make diff --git a/SPECS/mlnx-ethtool/mlnx-ethtool.spec b/SPECS/mlnx-ethtool/mlnx-ethtool.spec index 49a93772e2f..a90c68e38d8 100644 --- a/SPECS/mlnx-ethtool/mlnx-ethtool.spec +++ b/SPECS/mlnx-ethtool/mlnx-ethtool.spec @@ -4,11 +4,12 @@ Release: 2%{?dist} Group: Utilities Summary: Settings tool for Ethernet and other network devices License: GPLv2 -Vendor: Microsoft Corporation -Distribution: Azure Linux +Vendor: Microsoft Corporation +Distribution: Azure Linux URL: https://ftp.kernel.org/pub/software/network/ethtool/ Buildroot: /var/tmp/%{name}-%{version}-build Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/mlnx-ethtool-6.9.tar.gz#/%{name}-%{version}.tar.gz +ExclusiveArch: x86_64 BuildRequires: libmnl-devel diff --git a/SPECS/mlnx-iproute2/mlnx-iproute2.spec b/SPECS/mlnx-iproute2/mlnx-iproute2.spec index c76dcba380b..8dd521f26eb 100644 --- a/SPECS/mlnx-iproute2/mlnx-iproute2.spec +++ b/SPECS/mlnx-iproute2/mlnx-iproute2.spec @@ -42,6 +42,7 @@ Vendor: Microsoft Corporation Distribution: Azure Linux Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/mlnx-iproute2-6.10.0.tar.gz#/%{name}-%{version}.tar.gz URL: http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2 +ExclusiveArch: x86_64 BuildRequires: bison BuildRequires: flex diff --git a/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec b/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec index 69ee22fb8d4..56831aa63aa 100644 --- a/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec +++ b/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec @@ -69,8 +69,9 @@ Url: http://www.mellanox.com Group: System Environment/Base Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/mlnx-nfsrdma-24.10.tgz#/%{_name}-%{_version}.tgz BuildRoot: /var/tmp/%{name}-%{version}-build -Vendor: Microsoft Corporation -Distribution: Azure Linux +Vendor: Microsoft Corporation +Distribution: Azure Linux +ExclusiveArch: x86_64 BuildRequires: gcc BuildRequires: make diff --git a/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec b/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec index 0fb7b36962b..fab3705596f 100644 --- a/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec +++ b/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec @@ -104,8 +104,9 @@ Url: http://www.mellanox.com/ Group: System Environment/Base Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/mlnx-ofa_kernel-24.10.tgz#/%{_name}-%{_version}.tgz BuildRoot: /var/tmp/%{name}-%{version}-build -Vendor: Microsoft Corporation -Distribution: Azure Linux +Vendor: Microsoft Corporation +Distribution: Azure Linux +ExclusiveArch: x86_64 Obsoletes: kernel-ib Obsoletes: mlnx-en diff --git a/SPECS/mlx-steering-dump/mlx-steering-dump.spec b/SPECS/mlx-steering-dump/mlx-steering-dump.spec index 7abc19e94ce..acf6283c292 100644 --- a/SPECS/mlx-steering-dump/mlx-steering-dump.spec +++ b/SPECS/mlx-steering-dump/mlx-steering-dump.spec @@ -35,8 +35,9 @@ Url: https://github.com/Mellanox/mlx_steering_dump Group: Applications/System Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/mlx-steering-dump-1.0.0.tar.gz#/%{name}-%{version}.tar.gz BuildRoot: /var/tmp/%{name}-%{version}-build -Vendor: Microsoft Corporation -Distribution: Azure Linux +Vendor: Microsoft Corporation +Distribution: Azure Linux +ExclusiveArch: x86_64 Requires: python3 %description diff --git a/SPECS/multiperf/multiperf.spec b/SPECS/multiperf/multiperf.spec index 0c9211b681b..a41c5087673 100644 --- a/SPECS/multiperf/multiperf.spec +++ b/SPECS/multiperf/multiperf.spec @@ -3,12 +3,13 @@ Summary: IB Performance tests Version: 3.0 Release: 1%{?dist} License: BSD 3-Clause, GPL v2 or later -Vendor: Microsoft Corporation -Distribution: Azure Linux +Vendor: Microsoft Corporation +Distribution: Azure Linux Group: Productivity/Networking/Diagnostic Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/multiperf-3.0.tar.gz#/%{name}-%{version}.tar.gz Url: "" BuildRoot: /var/tmp/%{name}-%{version}-build +ExclusiveArch: x86_64 BuildRequires: libibverbs-devel diff --git a/SPECS/rshim/rshim.spec b/SPECS/rshim/rshim.spec index 2602bf66760..10b082a6c8c 100644 --- a/SPECS/rshim/rshim.spec +++ b/SPECS/rshim/rshim.spec @@ -7,10 +7,11 @@ Version: 2.1.5 Release: 1%{?dist} Summary: User-space driver for Mellanox BlueField SoC License: GPLv2 -Vendor: Microsoft Corporation -Distribution: Azure Linux +Vendor: Microsoft Corporation +Distribution: Azure Linux URL: https://github.com/mellanox/rshim-user-space Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/rshim-2.1.5.tar.gz#/%{name}-%{version}.tar.gz +ExclusiveArch: x86_64 BuildRequires: gcc, autoconf, automake, pkgconfig, make BuildRequires: pkgconfig(libpci), pkgconfig(libusb-1.0) fuse3-devel fuse3-libs diff --git a/SPECS/sockperf/sockperf.spec b/SPECS/sockperf/sockperf.spec index 6f59fc76586..ae742b5ea1c 100644 --- a/SPECS/sockperf/sockperf.spec +++ b/SPECS/sockperf/sockperf.spec @@ -13,6 +13,7 @@ Vendor: Microsoft Corporation Distribution: Azure Linux URL: https://github.com/mellanox/%{name} Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/sockperf-3.10.tar.gz#/%{name}-%{version}.tar.gz +ExclusiveArch: x86_64 BuildRequires: doxygen diff --git a/SPECS/srp/srp.spec b/SPECS/srp/srp.spec index f0496cf9123..f94d71dbebb 100644 --- a/SPECS/srp/srp.spec +++ b/SPECS/srp/srp.spec @@ -68,8 +68,9 @@ Url: http://www.mellanox.com Group: System Environment/Base Source: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/srp-24.10.tgz#/%{name}-%{version}.tgz BuildRoot: /var/tmp/%{name}-%{version}-build -Vendor: Microsoft Corporation -Distribution: Azure Linux +Vendor: Microsoft Corporation +Distribution: Azure Linux +ExclusiveArch: x86_64 BuildRequires: gcc BuildRequires: make diff --git a/SPECS/xpmem-lib/xpmem-lib.spec b/SPECS/xpmem-lib/xpmem-lib.spec index d91b5e4c71f..8be1a5bdaaa 100644 --- a/SPECS/xpmem-lib/xpmem-lib.spec +++ b/SPECS/xpmem-lib/xpmem-lib.spec @@ -8,9 +8,10 @@ Version: 2.7 Release: 1%{?dist} License: GPLv2 Group: System Environment/Libraries -Vendor: Microsoft Corporation -Distribution: Azure Linux +Vendor: Microsoft Corporation +Distribution: Azure Linux Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/xpmem-lib-2.7.tar.gz#/%{name}-%{version}.tar.gz +ExclusiveArch: x86_64 BuildRequires: automake BuildRequires: autoconf diff --git a/SPECS/xpmem/xpmem.spec b/SPECS/xpmem/xpmem.spec index 021640d4a45..bc864b9ec92 100644 --- a/SPECS/xpmem/xpmem.spec +++ b/SPECS/xpmem/xpmem.spec @@ -40,11 +40,12 @@ Version: 2.7.4 Release: 1%{?dist} License: GPLv2 and LGPLv2.1 Group: System Environment/Libraries -Vendor: Microsoft Corporation -Distribution: Azure Linux +Vendor: Microsoft Corporation +Distribution: Azure Linux BuildRequires: automake autoconf URL: https://github.com/openucx/xpmem Source0: https://linux.mellanox.com/public/repo/mlnx_ofed/24.10-0.7.0.0/SRPMS/xpmem-2.7.4.tar.gz#/%{name}-%{version}.tar.gz +ExclusiveArch: x86_64 # name gets a different value in subpackages %global _name %{name} From 0cdaff31fa1efc5509bd27538c2c87c1bef3f84d Mon Sep 17 00:00:00 2001 From: chalamalasetty Date: Tue, 14 Jan 2025 23:29:55 -0800 Subject: [PATCH 22/29] Keep one initial version changelog entry and add license files --- SPECS/fwctl/fwctl.spec | 4 +--- SPECS/ibarr/ibarr.spec | 3 --- SPECS/ibsim/ibsim.spec | 1 - SPECS/iser/iser.spec | 4 +--- SPECS/isert/isert.spec | 4 +--- SPECS/knem/knem.spec | 4 +--- SPECS/mft_kernel/mft_kernel.spec | 3 --- SPECS/mlnx-ethtool/mlnx-ethtool.spec | 3 --- SPECS/mlnx-iproute2/mlnx-iproute2.spec | 3 --- SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec | 4 +--- SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec | 7 ++++--- SPECS/mlx-steering-dump/mlx-steering-dump.spec | 4 +--- SPECS/multiperf/multiperf.spec | 3 --- SPECS/rshim/rshim.spec | 4 ---- SPECS/sockperf/sockperf.spec | 3 --- SPECS/srp/srp.spec | 4 +--- SPECS/xpmem-lib/xpmem-lib.spec | 3 --- SPECS/xpmem/xpmem.spec | 3 --- 18 files changed, 11 insertions(+), 53 deletions(-) diff --git a/SPECS/fwctl/fwctl.spec b/SPECS/fwctl/fwctl.spec index 8170c8ee64a..63217a5aef7 100644 --- a/SPECS/fwctl/fwctl.spec +++ b/SPECS/fwctl/fwctl.spec @@ -242,16 +242,14 @@ fi # 1 : closed %if "%{KMP}" != "1" %files %defattr(-,root,root,-) +%license source/debian/copyright /lib/modules/%{KVERSION}/%{install_mod_dir}/ %config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf %endif %changelog * Tue Dec 17 2024 Binu Jose Philip -- Moving to core from azlinux-ai-ml repo - Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified -* Thu Nov 07 2024 Suresh Babu Chalamalasetty -- Initial version Azure Linux * Mon Jul 29 2024 - Initial packaging diff --git a/SPECS/ibarr/ibarr.spec b/SPECS/ibarr/ibarr.spec index ad519a6609c..13e3e397875 100644 --- a/SPECS/ibarr/ibarr.spec +++ b/SPECS/ibarr/ibarr.spec @@ -55,8 +55,5 @@ rm -rf $RPM_BUILD_ROOT %changelog * Tue Dec 17 2024 Binu Jose Philip -- Moving to core from azlinux-ai-ml repo - Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified -* Thu Nov 07 2024 Suresh Babu Chalamalasetty -- Initial version Azure Linux diff --git a/SPECS/ibsim/ibsim.spec b/SPECS/ibsim/ibsim.spec index 49439a4239d..46ecd361cb8 100644 --- a/SPECS/ibsim/ibsim.spec +++ b/SPECS/ibsim/ibsim.spec @@ -48,6 +48,5 @@ rm -rf $RPM_BUILD_ROOT %changelog * Tue Dec 17 2024 Binu Jose Philip -- Moving to core from azlinux-ai-ml repo - Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified diff --git a/SPECS/iser/iser.spec b/SPECS/iser/iser.spec index 06e7da2adde..5fd328d19c2 100644 --- a/SPECS/iser/iser.spec +++ b/SPECS/iser/iser.spec @@ -239,16 +239,14 @@ fi # 1 : closed %if "%{KMP}" != "1" %files %defattr(-,root,root,-) +%license source/debian/copyright /lib/modules/%{KVERSION}/%{install_mod_dir}/ %config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf %endif %changelog * Tue Dec 17 2024 Binu Jose Philip -- Moving to core from azlinux-ai-ml repo - Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified -* Thu Nov 07 2024 Suresh Babu Chalamalasetty -- Initial version Azure Linux * Thu Feb 20 2014 Alaa Hleihel - Initial packaging diff --git a/SPECS/isert/isert.spec b/SPECS/isert/isert.spec index 4fb4eb75360..221fe749002 100644 --- a/SPECS/isert/isert.spec +++ b/SPECS/isert/isert.spec @@ -239,16 +239,14 @@ fi # 1 : closed %if "%{KMP}" != "1" %files %defattr(-,root,root,-) +%license source/debian/copyright /lib/modules/%{KVERSION}/%{install_mod_dir}/ %config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf %endif %changelog * Tue Dec 17 2024 Binu Jose Philip -- Moving to core from azlinux-ai-ml repo - Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified -* Thu Nov 07 2024 Suresh Babu Chalamalasetty -- Initial version Azure Linux * Thu Feb 20 2014 Alaa Hleihel - Initial packaging diff --git a/SPECS/knem/knem.spec b/SPECS/knem/knem.spec index 303a29a0ca4..8264dd672af 100644 --- a/SPECS/knem/knem.spec +++ b/SPECS/knem/knem.spec @@ -260,6 +260,7 @@ fi %files %defattr(-, root, root) +%license source/COPYING source/COPYING.BSD-3 source/COPYING.GPL-2 /opt/knem-%{version} /usr/lib64/pkgconfig/knem.pc @@ -279,11 +280,8 @@ fi %changelog * Tue Dec 17 2024 Binu Jose Philip -- Moving to core from azlinux-ai-ml repo - Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified -* Thu Nov 07 2024 Suresh Babu Chalamalasetty -- Initial version Azure Linux * Mon Mar 17 2014 Alaa Hleihel - Use one spec for KMP and non-KMP OS's. * Thu Apr 18 2013 Alaa Hleihel diff --git a/SPECS/mft_kernel/mft_kernel.spec b/SPECS/mft_kernel/mft_kernel.spec index fb7f5cda700..c302b7decfa 100644 --- a/SPECS/mft_kernel/mft_kernel.spec +++ b/SPECS/mft_kernel/mft_kernel.spec @@ -228,8 +228,5 @@ find %{buildroot} -type f -name \*.ko -exec %{__strip} -p --strip-debug --discar %changelog * Tue Dec 17 2024 Binu Jose Philip -- Moving to core from azlinux-ai-ml repo - Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified -* Thu Nov 07 2024 Suresh Babu Chalamalasetty -- Initial version Azure Linux diff --git a/SPECS/mlnx-ethtool/mlnx-ethtool.spec b/SPECS/mlnx-ethtool/mlnx-ethtool.spec index a90c68e38d8..f399825d219 100644 --- a/SPECS/mlnx-ethtool/mlnx-ethtool.spec +++ b/SPECS/mlnx-ethtool/mlnx-ethtool.spec @@ -41,8 +41,5 @@ make install DESTDIR=${RPM_BUILD_ROOT} %changelog * Tue Dec 17 2024 Binu Jose Philip -- Moving to core from azlinux-ai-ml repo - Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified -* Thu Nov 07 2024 Suresh Babu Chalamalasetty -- Initial version Azure Linux diff --git a/SPECS/mlnx-iproute2/mlnx-iproute2.spec b/SPECS/mlnx-iproute2/mlnx-iproute2.spec index 8dd521f26eb..92c4a12a9bb 100644 --- a/SPECS/mlnx-iproute2/mlnx-iproute2.spec +++ b/SPECS/mlnx-iproute2/mlnx-iproute2.spec @@ -111,8 +111,5 @@ rm -rf $RPM_BUILD_ROOT %changelog * Tue Dec 17 2024 Binu Jose Philip -- Moving to core from azlinux-ai-ml repo - Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified -* Thu Nov 07 2024 Suresh Babu Chalamalasetty -- Initial version Azure Linux diff --git a/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec b/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec index 56831aa63aa..a97e9a2bd79 100644 --- a/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec +++ b/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec @@ -240,16 +240,14 @@ fi %if "%{KMP}" != "1" %files %defattr(-,root,root,-) +%license source/debian/copyright /lib/modules/%{KVERSION}/%{install_mod_dir}/ %config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf %endif %changelog * Tue Dec 17 2024 Binu Jose Philip -- Moving to core from azlinux-ai-ml repo - Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified -* Thu Nov 07 2024 Suresh Babu Chalamalasetty -- Initial version Azure Linux * Mon Aug 15 2016 Alaa Hleihel - Initial packaging diff --git a/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec b/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec index fab3705596f..2a15a5e908b 100644 --- a/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec +++ b/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec @@ -676,6 +676,7 @@ update-alternatives --remove \ %files -n %{utils_pname} %defattr(-,root,root,-) +%license source/debian/copyright %doc source/ofed_scripts/82-net-setup-link.rules source/ofed_scripts/vf-net-link-name.sh %if "%{KMP}" == "1" %if %{IS_RHEL_VENDOR} @@ -713,6 +714,7 @@ update-alternatives --remove \ %if "%{KMP}" != "1" %files -n %{non_kmp_pname} +%license source/debian/copyright /lib/modules/%{KVERSION}/%{install_mod_dir}/ %if %{IS_RHEL_VENDOR} %if ! 0%{?fedora} @@ -723,20 +725,19 @@ update-alternatives --remove \ %files -n %{devel_pname} %defattr(-,root,root,-) +%license source/debian/copyright %{_prefix}/src/ofa_kernel/%{_arch}/[0-9]* %files source %defattr(-,root,root,-) +%license source/debian/copyright %{_prefix}/src/ofa_kernel-%version/source %{_prefix}/src/mlnx-ofa_kernel-%version %changelog * Tue Dec 17 2024 Binu Jose Philip -- Moving to core from azlinux-ai-ml repo - Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified -* Thu Nov 07 2024 Suresh Babu Chalamalasetty -- Initial version Azure Linux * Thu Jun 18 2015 Alaa Hleihel - Renamed kernel-ib package to mlnx-ofa_kernel-modules * Thu Apr 10 2014 Alaa Hleihel diff --git a/SPECS/mlx-steering-dump/mlx-steering-dump.spec b/SPECS/mlx-steering-dump/mlx-steering-dump.spec index acf6283c292..d5d0c266669 100644 --- a/SPECS/mlx-steering-dump/mlx-steering-dump.spec +++ b/SPECS/mlx-steering-dump/mlx-steering-dump.spec @@ -67,16 +67,14 @@ install -m 755 hws/mlx_hw_steering_dump %{buildroot}/usr/bin/ %files +%license debian/copyright /usr/share/mlx-steering-dump/* /usr/bin/mlx_steering_dump /usr/bin/mlx_hw_steering_dump %changelog * Tue Dec 17 2024 Binu Jose Philip -- Moving to core from azlinux-ai-ml repo - Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified -* Thu Nov 07 2024 Suresh Babu Chalamalasetty -- Initial version Azure Linux * Wed Oct 6 2021 Mohammad Kabat - Add rpm support diff --git a/SPECS/multiperf/multiperf.spec b/SPECS/multiperf/multiperf.spec index a41c5087673..a8d23434118 100644 --- a/SPECS/multiperf/multiperf.spec +++ b/SPECS/multiperf/multiperf.spec @@ -37,10 +37,7 @@ rm -rf ${RPM_BUILD_ROOT} %changelog * Tue Dec 17 2024 Binu Jose Philip -- Moving to core from azlinux-ai-ml repo - Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified -* Thu Nov 07 2024 Suresh Babu Chalamalasetty -- Initial version Azure Linux * Sun Feb 08 2015 - gilr@mellanox.com - Initial Package, Version 3.0 diff --git a/SPECS/rshim/rshim.spec b/SPECS/rshim/rshim.spec index 10b082a6c8c..a954745b57e 100644 --- a/SPECS/rshim/rshim.spec +++ b/SPECS/rshim/rshim.spec @@ -98,13 +98,9 @@ fi %changelog * Tue Dec 17 2024 Binu Jose Philip -- Moving to core from azlinux-ai-ml repo - Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified -* Thu Nov 07 2024 Suresh Babu Chalamalasetty -- Initial version Azure Linux - * Mon Oct 14 2024 Penghe Geng - 2.1.5 - Revert "Abort rshim rpm installation if no cuse.ko found" diff --git a/SPECS/sockperf/sockperf.spec b/SPECS/sockperf/sockperf.spec index ae742b5ea1c..7cc2a5f7eb7 100644 --- a/SPECS/sockperf/sockperf.spec +++ b/SPECS/sockperf/sockperf.spec @@ -83,8 +83,5 @@ make install DESTDIR="%{?buildroot}" %changelog * Tue Dec 17 2024 Binu Jose Philip -- Moving to core from azlinux-ai-ml repo - Initial Azure Linux import from NVIDIA (BSD) (license: BSD). - License verified -* Thu Nov 07 2024 Suresh Babu Chalamalasetty -- Initial version Azure Linux diff --git a/SPECS/srp/srp.spec b/SPECS/srp/srp.spec index f94d71dbebb..eff56d2a765 100644 --- a/SPECS/srp/srp.spec +++ b/SPECS/srp/srp.spec @@ -245,16 +245,14 @@ fi %if "%{KMP}" != "1" %files %defattr(-,root,root,-) +%license source/debian/copyright /lib/modules/%{KVERSION}/%{install_mod_dir}/ %config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf %endif %changelog * Thu Jan 9 2024 Binu Jose Philip -- Moving to core from azlinux-ai-ml repo - Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified -* Thu Nov 07 2024 Suresh Babu Chalamalasetty -- Initial version Azure Linux * Thu Feb 20 2014 Alaa Hleihel - Initial packaging diff --git a/SPECS/xpmem-lib/xpmem-lib.spec b/SPECS/xpmem-lib/xpmem-lib.spec index 8be1a5bdaaa..a69121b4f09 100644 --- a/SPECS/xpmem-lib/xpmem-lib.spec +++ b/SPECS/xpmem-lib/xpmem-lib.spec @@ -83,8 +83,5 @@ rm -rf ${RPM_BUILD_ROOT}/etc # /etc/.version , udev rules %changelog * Tue Dec 17 2024 Binu Jose Philip -- Moving to core from azlinux-ai-ml repo - Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified -* Thu Nov 07 2024 Suresh Babu Chalamalasetty -- Initial version Azure Linux diff --git a/SPECS/xpmem/xpmem.spec b/SPECS/xpmem/xpmem.spec index bc864b9ec92..d2f195f154b 100644 --- a/SPECS/xpmem/xpmem.spec +++ b/SPECS/xpmem/xpmem.spec @@ -242,9 +242,6 @@ fi %changelog * Tue Dec 17 2024 Binu Jose Philip -- Moving to core from azlinux-ai-ml repo - Initial Azure Linux import from NVIDIA (license: GPLv2) - License verified -* Thu Nov 07 2024 Suresh Babu Chalamalasetty -- Initial version Azure Linux From b42ac94f012cc0d4e77ca0e7533fc6008b24a410 Mon Sep 17 00:00:00 2001 From: chalamalasetty Date: Wed, 15 Jan 2025 10:25:38 -0800 Subject: [PATCH 23/29] Add license file section for SPECS --- SPECS/ibarr/ibarr.spec | 1 + SPECS/ibsim/ibsim.spec | 3 ++- SPECS/mft_kernel/mft_kernel.spec | 1 + SPECS/mlnx-ethtool/mlnx-ethtool.spec | 3 ++- SPECS/mlnx-iproute2/mlnx-iproute2.spec | 1 + SPECS/multiperf/multiperf.spec | 3 ++- SPECS/sockperf/sockperf.spec | 1 + SPECS/xpmem-lib/xpmem-lib.spec | 3 ++- SPECS/xpmem/xpmem.spec | 3 ++- 9 files changed, 14 insertions(+), 5 deletions(-) diff --git a/SPECS/ibarr/ibarr.spec b/SPECS/ibarr/ibarr.spec index 13e3e397875..2a4a5a481bc 100644 --- a/SPECS/ibarr/ibarr.spec +++ b/SPECS/ibarr/ibarr.spec @@ -49,6 +49,7 @@ rm -rf $RPM_BUILD_ROOT %files %doc README.md +%license COPYING.BSD_MIT %{_bindir}/ibarr # FIXME: should be in the standard directory, under _prefix. /lib/systemd/system/%{name}.service diff --git a/SPECS/ibsim/ibsim.spec b/SPECS/ibsim/ibsim.spec index 46ecd361cb8..041a89f2dcf 100644 --- a/SPECS/ibsim/ibsim.spec +++ b/SPECS/ibsim/ibsim.spec @@ -44,7 +44,8 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/umad2sim/libumad2sim*.so* %{_bindir}/ibsim %{_bindir}/ibsim-run -%doc README COPYING TODO net-examples scripts +%doc README TODO net-examples scripts +%license COPYING %changelog * Tue Dec 17 2024 Binu Jose Philip diff --git a/SPECS/mft_kernel/mft_kernel.spec b/SPECS/mft_kernel/mft_kernel.spec index c302b7decfa..cc05aa5f924 100644 --- a/SPECS/mft_kernel/mft_kernel.spec +++ b/SPECS/mft_kernel/mft_kernel.spec @@ -211,6 +211,7 @@ find %{buildroot} -type f -name \*.ko -exec %{__strip} -p --strip-debug --discar %if "%{KMP}" != "1" %files %defattr(-,root,root,-) +%license source/COPYING /lib/modules/%{KVERSION}/%{install_mod_dir}/ %if %{IS_RHEL_VENDOR} %if ! 0%{?fedora} diff --git a/SPECS/mlnx-ethtool/mlnx-ethtool.spec b/SPECS/mlnx-ethtool/mlnx-ethtool.spec index f399825d219..d65e26b5cd9 100644 --- a/SPECS/mlnx-ethtool/mlnx-ethtool.spec +++ b/SPECS/mlnx-ethtool/mlnx-ethtool.spec @@ -36,7 +36,8 @@ make install DESTDIR=${RPM_BUILD_ROOT} %{_sbindir}/ethtool %{_mandir}/man8/ethtool.8* %{_datadir}/bash-completion/completions/ethtool -%doc AUTHORS COPYING NEWS README +%doc AUTHORS NEWS README +%license COPYING %changelog diff --git a/SPECS/mlnx-iproute2/mlnx-iproute2.spec b/SPECS/mlnx-iproute2/mlnx-iproute2.spec index 92c4a12a9bb..a205128e61b 100644 --- a/SPECS/mlnx-iproute2/mlnx-iproute2.spec +++ b/SPECS/mlnx-iproute2/mlnx-iproute2.spec @@ -102,6 +102,7 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) +%license COPYING %doc README README.devel %config(noreplace) %verify(not md5 mtime size) %{config_dir}/* %{_prefix}/include/* diff --git a/SPECS/multiperf/multiperf.spec b/SPECS/multiperf/multiperf.spec index a8d23434118..a589ef6089c 100644 --- a/SPECS/multiperf/multiperf.spec +++ b/SPECS/multiperf/multiperf.spec @@ -32,7 +32,8 @@ rm -rf ${RPM_BUILD_ROOT} %files %defattr(-, root, root) -%doc README COPYING +%doc README +%license COPYING %_bindir/* %changelog diff --git a/SPECS/sockperf/sockperf.spec b/SPECS/sockperf/sockperf.spec index 7cc2a5f7eb7..79f9cb72b52 100644 --- a/SPECS/sockperf/sockperf.spec +++ b/SPECS/sockperf/sockperf.spec @@ -77,6 +77,7 @@ make install DESTDIR="%{?buildroot}" %files %defattr(-,root,root,-) +%license copying %{_bindir}/%{name} %{_mandir}/man3/%{name}.3.* %{_my_pkgdocdir} diff --git a/SPECS/xpmem-lib/xpmem-lib.spec b/SPECS/xpmem-lib/xpmem-lib.spec index a69121b4f09..ab962c9e8b2 100644 --- a/SPECS/xpmem-lib/xpmem-lib.spec +++ b/SPECS/xpmem-lib/xpmem-lib.spec @@ -71,7 +71,8 @@ rm -rf ${RPM_BUILD_ROOT}/etc # /etc/.version , udev rules %endif %files -n libxpmem -%doc README AUTHORS COPYING.LESSER +%doc README AUTHORS +%license COPYING COPYING.LESSER %{_libdir}/libxpmem.so.* %files -n libxpmem-devel diff --git a/SPECS/xpmem/xpmem.spec b/SPECS/xpmem/xpmem.spec index d2f195f154b..b159bdc79fa 100644 --- a/SPECS/xpmem/xpmem.spec +++ b/SPECS/xpmem/xpmem.spec @@ -222,7 +222,8 @@ fi %files /lib/udev/rules.d/*-xpmem.rules %{_prefix}/lib/modules-load.d/xpmem.conf -%doc README AUTHORS COPYING COPYING.LESSER +%doc README AUTHORS +%license COPYING COPYING.LESSER %if ! %{with kernel_only} %files -n libxpmem From f5c2090c6a2855e31846ebc8c1f5be7485ffbf17 Mon Sep 17 00:00:00 2001 From: chalamalasetty Date: Thu, 16 Jan 2025 13:11:43 -0800 Subject: [PATCH 24/29] Update signed SPECS and fix code review comments --- SPECS-SIGNED/fwctl-signed/fwctl-signed.spec | 63 ++------ SPECS-SIGNED/iser-signed/iser-signed.spec | 59 +------ SPECS-SIGNED/isert-signed/isert-signed.spec | 59 +------ .../knem-signed/knem-modules-signed.spec | 48 ++---- .../mft_kernel-signed/mft_kernel-signed.spec | 61 +------ .../mlnx-nfsrdma-signed.spec | 63 +------- .../mlnx-ofa_kernel-modules-signed.spec | 152 ++++-------------- .../srp-signed/{srp.spec => srp-signed.spec} | 50 +----- .../xpmem-signed/xpmem-modules-signed.spec | 59 +------ SPECS/iser/iser.spec | 2 +- SPECS/isert/isert.spec | 2 +- SPECS/knem/knem.spec | 1 + SPECS/mft_kernel/mft_kernel.spec | 3 +- SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec | 2 +- SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec | 2 +- SPECS/srp/srp.spec | 2 +- SPECS/xpmem/xpmem.spec | 1 + toolkit/scripts/check_entangled_specs.py | 37 +++++ 18 files changed, 135 insertions(+), 531 deletions(-) rename SPECS-SIGNED/srp-signed/{srp.spec => srp-signed.spec} (58%) diff --git a/SPECS-SIGNED/fwctl-signed/fwctl-signed.spec b/SPECS-SIGNED/fwctl-signed/fwctl-signed.spec index 24edb48be6c..03d4c8e92c1 100644 --- a/SPECS-SIGNED/fwctl-signed/fwctl-signed.spec +++ b/SPECS-SIGNED/fwctl-signed/fwctl-signed.spec @@ -30,75 +30,30 @@ # SOFTWARE. # -%{!?_name: %define _name fwctl} -%{!?_version: %define _version 24.10} -%{!?_release: %define _release OFED.24.10.0.6.7.1} - %global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) %global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) %global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) %global KVERSION %{target_kernel_version_full} -%global K_SRC /lib/modules/%{target_kernel_version_full}/build - -# KMP is disabled by default -%{!?KMP: %global KMP 0} - -%{!?KVERSION: %global KVERSION %{target_kernel_version_full}} -%global kernel_version %{KVERSION} -%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') -# take path to kernel sources if provided, otherwise look in default location (for non KMP rpms). -%{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} - -# define release version -%{!?src_release: %global src_release %{_release}_%{krelver}} -%if "%{KMP}" != "1" -%global _release1 %{src_release} -%else -%global _release1 %{_release} -%endif -%global _kmp_rel %{_release1}%{?_kmp_build_num}%{?_dist} + +%{!?_name: %define _name fwctl} Summary: %{_name} Driver Name: %{_name} -Version: %{_version} +Version: 24.10 Release: 1%{?dist} License: GPLv2 Url: http://nvidia.com Group: System Environment/Base -# This package's "version" and "release" must reflect the unsigned version that -# was signed. -# An important consequence is that when making a change to this package, the -# unsigned version/release must be increased to keep the two versions consistent. -# Ideally though, this spec will not change much or at all, so the version will -# just track the unsigned package's version/release. -# -# To populate these sources: -# 1. Build the unsigned packages as normal -# 2. Sign the desired binary -# 3. Place the unsigned package and signed binary in this spec's folder -# 4. Build this spec - Source0: %{name}-%{version}-%{release}.%{_arch}.rpm Source1: fwctl.ko Source2: mlx5_fwctl.ko -BuildRoot: /var/tmp/%{name}-%{version}-build Vendor: Microsoft Corporation Distribution: Azure Linux ExclusiveArch: x86_64 -BuildRequires: gcc -BuildRequires: make -BuildRequires: kernel-devel = %{target_kernel_version_full} -BuildRequires: kernel-headers = %{target_kernel_version_full} -BuildRequires: binutils -BuildRequires: systemd -BuildRequires: kmod -BuildRequires: mlnx-ofa_kernel-devel = %{_version} -BuildRequires: mlnx-ofa_kernel-source = %{_version} - Requires: mlnx-ofa_kernel = %{_version} Requires: mlnx-ofa_kernel-modules = %{_version} Requires: kernel = %{target_kernel_version_full} @@ -110,11 +65,11 @@ fwctl signed kernel modules %prep %build -rpm2cpio %{Source0} | cpio -idmv -D %{buildroot} +rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} %install -cp %{Source1} %{buildroot}/lib/modules/%{KVERSION}/updates/fwctl/fwctl.ko -cp %{Source2} %{buildroot}/lib/modules/%{KVERSION}/updates/fwctl/mlx5/mlx5_fwctl.ko +cp -r %{SOURCE1} %{buildroot}/lib/modules/%{KVERSION}/updates/fwctl/fwctl.ko +cp -r %{SOURCE2} %{buildroot}/lib/modules/%{KVERSION}/updates/fwctl/mlx5/mlx5_fwctl.ko %clean rm -rf %{buildroot} @@ -128,12 +83,12 @@ fi # 1 : closed %postun /sbin/depmod %{KVERSION} -%if "%{KMP}" != "1" %files %defattr(-,root,root,-) -/lib/modules/%{KVERSION}/%{install_mod_dir}/ +%license copyright +/lib/modules/%{KVERSION}/updates/ %config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf -%endif + %changelog * Tue Dec 16 2024 Binu Jose Philip - 24.10.0.6.7.1 diff --git a/SPECS-SIGNED/iser-signed/iser-signed.spec b/SPECS-SIGNED/iser-signed/iser-signed.spec index 41205dd7c21..57c98a5578f 100644 --- a/SPECS-SIGNED/iser-signed/iser-signed.spec +++ b/SPECS-SIGNED/iser-signed/iser-signed.spec @@ -31,71 +31,24 @@ %global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) %global KVERSION %{target_kernel_version_full} -%global K_SRC /lib/modules/%{target_kernel_version_full}/build %{!?_name: %define _name iser} -%{!?_version: %define _version 24.10} -%{!?_release: %define _release OFED.24.10.0.6.7.1} - -# KMP is disabled by default -%{!?KMP: %global KMP 0} - -# take kernel version or default to uname -r -# %{!?KVERSION: %global KVERSION %(uname -r)} -%{!?KVERSION: %global KVERSION %{target_kernel_version_full}} -%global kernel_version %{KVERSION} -%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') -# take path to kernel sources if provided, otherwise look in default location (for non KMP rpms). -# %{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} - -# define release version -%{!?src_release: %global src_release %{_release}_%{krelver}} -%if "%{KMP}" != "1" -%global _release1 %{src_release} -%else -%global _release1 %{_release} -%endif -%global _kmp_rel %{_release1}%{?_kmp_build_num}%{?_dist} Summary: %{_name} Driver Name: %{_name} -Version: %{_version} +Version: 24.10 Release: 1%{?dist} License: GPLv2 Url: http://www.mellanox.com Group: System Environment/Base -# This package's "version" and "release" must reflect the unsigned version that -# was signed. -# An important consequence is that when making a change to this package, the -# unsigned version/release must be increased to keep the two versions consistent. -# Ideally though, this spec will not change much or at all, so the version will -# just track the unsigned package's version/release. -# -# To populate these sources: -# 1. Build the unsigned packages as normal -# 2. Sign the desired binary -# 3. Place the unsigned package and signed binary in this spec's folder -# 4. Build this spec - Source0: %{name}-%{version}-%{release}.%{_arch}.rpm Source1: ib_iser.ko -BuildRoot: /var/tmp/%{name}-%{version}-build Vendor: Microsoft Corporation Distribution: Azure Linux ExclusiveArch: x86_64 -BuildRequires: gcc -BuildRequires: make -BuildRequires: kernel-devel = %{target_kernel_version_full} -BuildRequires: kernel-headers = %{target_kernel_version_full} -BuildRequires: binutils -BuildRequires: systemd -BuildRequires: kmod -BuildRequires: mlnx-ofa_kernel-devel = %{_version} -BuildRequires: mlnx-ofa_kernel-source = %{_version} - Requires: mlnx-ofa_kernel = %{_version} Requires: mlnx-ofa_kernel-modules = %{_version} Requires: kernel = %{target_kernel_version_full} @@ -107,10 +60,10 @@ iser signed kernel modules %prep %build -rpm2cpio %{Source0} | cpio -idmv -D %{buildroot} +rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} %install -cp %{Source1} %{buildroot}/lib/modules/%{KVERSION}/updates/iser/ib_iser.ko +cp -r %{SOURCE1} %{buildroot}/lib/modules/%{KVERSION}/updates/iser/ib_iser.ko %clean rm -rf %{buildroot} @@ -124,12 +77,12 @@ fi # 1 : closed %postun /sbin/depmod %{KVERSION} -%if "%{KMP}" != "1" %files %defattr(-,root,root,-) -/lib/modules/%{KVERSION}/%{install_mod_dir}/ +%license copyright +/lib/modules/%{KVERSION}/updates/ %config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf -%endif + %changelog * Tue Dec 16 2024 Binu Jose Philip - 24.10.0.6.7.1 diff --git a/SPECS-SIGNED/isert-signed/isert-signed.spec b/SPECS-SIGNED/isert-signed/isert-signed.spec index 61f1be8a3e2..1a0712ac617 100644 --- a/SPECS-SIGNED/isert-signed/isert-signed.spec +++ b/SPECS-SIGNED/isert-signed/isert-signed.spec @@ -31,71 +31,24 @@ %global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) %global KVERSION %{target_kernel_version_full} -%global K_SRC /lib/modules/%{target_kernel_version_full}/build %{!?_name: %define _name isert} -%{!?_version: %define _version 24.10} -%{!?_release: %define _release OFED.24.10.0.6.7.1} - -# KMP is disabled by default -%{!?KMP: %global KMP 0} - -# take kernel version or default to uname -r -# %{!?KVERSION: %global KVERSION %(uname -r)} -%{!?KVERSION: %global KVERSION %{target_kernel_version_full}} -%global kernel_version %{KVERSION} -%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') -# take path to kernel sources if provided, otherwise look in default location (for non KMP rpms). -# %{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} - -# define release version -%{!?src_release: %global src_release %{_release}_%{krelver}} -%if "%{KMP}" != "1" -%global _release1 %{src_release} -%else -%global _release1 %{_release} -%endif -%global _kmp_rel %{_release1}%{?_kmp_build_num}%{?_dist} Summary: %{_name} Driver Name: %{_name} -Version: %{_version} +Version: 24.10 Release: 1%{?dist} License: GPLv2 Url: http://www.mellanox.com Group: System Environment/Base -# This package's "version" and "release" must reflect the unsigned version that -# was signed. -# An important consequence is that when making a change to this package, the -# unsigned version/release must be increased to keep the two versions consistent. -# Ideally though, this spec will not change much or at all, so the version will -# just track the unsigned package's version/release. -# -# To populate these sources: -# 1. Build the unsigned packages as normal -# 2. Sign the desired binary -# 3. Place the unsigned package and signed binary in this spec's folder -# 4. Build this spec - Source0: %{name}-%{version}-%{release}.%{_arch}.rpm Source1: ib_isert.ko -BuildRoot: /var/tmp/%{name}-%{version}-build Vendor: Microsoft Corporation Distribution: Azure Linux ExclusiveArch: x86_64 -BuildRequires: gcc -BuildRequires: make -BuildRequires: kernel-devel = %{target_kernel_version_full} -BuildRequires: kernel-headers = %{target_kernel_version_full} -BuildRequires: binutils -BuildRequires: systemd -BuildRequires: kmod -BuildRequires: mlnx-ofa_kernel-devel = %{_version} -BuildRequires: mlnx-ofa_kernel-source = %{_version} - Requires: mlnx-ofa_kernel = %{_version} Requires: mlnx-ofa_kernel-modules = %{_version} Requires: kernel = %{target_kernel_version_full} @@ -107,10 +60,10 @@ isert signed kernel modules %prep %build -rpm2cpio %{Source0} | cpio -idmv -D %{buildroot} +rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} %install -cp %{Source1} %{buildroot}/lib/modules/%{KVERSION}/updates/isert/ib_isert.ko +cp -r %{SOURCE1} %{buildroot}/lib/modules/%{KVERSION}/updates/isert/ib_isert.ko %clean rm -rf %{buildroot} @@ -124,12 +77,12 @@ fi # 1 : closed %postun /sbin/depmod %{KVERSION} -%if "%{KMP}" != "1" %files %defattr(-,root,root,-) -/lib/modules/%{KVERSION}/%{install_mod_dir}/ +%license copyright +/lib/modules/%{KVERSION}/updates/ %config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf -%endif + %changelog * Tue Dec 16 2024 Binu Jose Philip - 24.10.0.6.7.1 diff --git a/SPECS-SIGNED/knem-signed/knem-modules-signed.spec b/SPECS-SIGNED/knem-signed/knem-modules-signed.spec index f9183937384..c741a01ee8f 100644 --- a/SPECS-SIGNED/knem-signed/knem-modules-signed.spec +++ b/SPECS-SIGNED/knem-signed/knem-modules-signed.spec @@ -23,24 +23,11 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# KMP is disabled by default -%{!?KMP: %global KMP 0} - %global target_kernel_version_full %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers)) %global target_azurelinux_build_kernel_version %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}' $(/bin/rpm -q --whatprovides kernel-headers)) %global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) %global KVERSION %{target_kernel_version_full} -%global K_SRC /lib/modules/%{target_kernel_version_full}/build - -%{!?_release: %global _release OFED.23.10.0.2.1.1} -# %{!?KVERSION: %global KVERSION %(uname -r)} -%global kernel_version %{KVERSION} -%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') -%{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} -%global _kmp_rel %{_release}%{?_kmp_build_num}%{?_dist} -%global IS_RHEL_VENDOR "%{_vendor}" == "redhat" || ("%{_vendor}" == "bclinux") || ("%{_vendor}" == "openEuler") -%global KMOD_PREAMBLE "%{_vendor}" != "openEuler" # set package name %{!?_name: %global _name knem} @@ -61,31 +48,10 @@ Vendor: Microsoft Corporation Distribution: Azure Linux ExclusiveArch: x86_64 -# This package's "version" and "release" must reflect the unsigned version that -# was signed. -# An important consequence is that when making a change to this package, the -# unsigned version/release must be increased to keep the two versions consistent. -# Ideally though, this spec will not change much or at all, so the version will -# just track the unsigned package's version/release. -# -# To populate these sources: -# 1. Build the unsigned packages as normal -# 2. Sign the desired binary -# 3. Place the unsigned package and signed binary in this spec's folder -# 4. Build this spec - Source0: %{name}-%{version}-%{release}.%{_arch}.rpm Source1: knem.ko BuildRoot: /var/tmp/%{name}-%{version}-build -BuildRequires: gcc -BuildRequires: make -BuildRequires: kernel-devel = %{target_kernel_version_full} -BuildRequires: kernel-headers = %{target_kernel_version_full} -BuildRequires: binutils -BuildRequires: systemd -BuildRequires: kmod - Requires: kernel = %{target_kernel_version_full} Requires: kmod @@ -98,10 +64,10 @@ See http://knem.gitlabpages.inria.fr for details. %prep %build -rpm2cpio %{Source0} | cpio -idmv -D %{buildroot} +rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} %install -cp %{Source1} %{buildroot}/lib/modules/%{KVERSION}/extra/knem/knem.ko +cp -r %{SOURCE1} %{buildroot}/lib/modules/%{KVERSION}/extra/knem/knem.ko %clean rm -rf %{buildroot} @@ -113,13 +79,17 @@ depmod %{KVERSION} -a if [ $1 = 0 ]; then # 1 : Erase, not upgrade depmod %{KVERSION} -a fi -%endif # end KMP=1 -%if "%{KMP}" != "1" %files -/lib/modules/%{KVERSION}/%{install_mod_dir}/ +%license COPYING COPYING.BSD-3 COPYING.GPL-2 +/lib/modules/ +%if %{IS_RHEL_VENDOR} +%if ! 0%{?fedora} +%config(noreplace) %{_sysconfdir}/depmod.d/%{_name}.conf +%endif %endif + %changelog * Tue Dec 16 2024 Binu Jose Philip - 1.1.4.90mlnx3 - Creating signed spec diff --git a/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec b/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec index 83d87823589..f42e7f1d8b5 100644 --- a/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec +++ b/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec @@ -4,55 +4,15 @@ %global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) %global KVERSION %{target_kernel_version_full} -%global K_SRC /lib/modules/%{target_kernel_version_full}/build -# KMP is disabled by default -%{!?KMP: %global KMP 0} - -# take cpu arch from uname -m -%global _cpu_arch %(uname -m) -%global docdir /etc/mft -%global mlxfwreset_ko_path %{docdir}/mlxfwreset/ - - -# take kernel version or default to uname -r -# %{!?KVERSION: %global KVERSION %(uname -r)} -%{!?KVERSION: %global KVERSION %{target_kernel_version_full}} -%global kernel_version %{KVERSION} -%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') -# take path to kernel sources if provided, otherwise look in default location (for non KMP rpms). -%{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} - -%if "%{KMP}" == "1" -%global _name kernel-mft-mlnx -%else %global _name kernel-mft -%endif - -%{!?version: %global version 4.30.0} -%{!?_release: %global _release 1} -%global _kmp_rel %{_release}%{?_kmp_build_num}%{?_dist} Name: %{_name} Summary: %{name} Kernel Module for the %{KVERSION} kernel -Version: %{version} +Version: 4.30.0 Release: 1%{?dist} License: Dual BSD/GPLv2 Group: System Environment/Kernel -BuildRoot: /var/tmp/%{name}-%{version}-build - -# This package's "version" and "release" must reflect the unsigned version that -# was signed. -# An important consequence is that when making a change to this package, the -# unsigned version/release must be increased to keep the two versions consistent. -# Ideally though, this spec will not change much or at all, so the version will -# just track the unsigned package's version/release. -# -# To populate these sources: -# 1. Build the unsigned packages as normal -# 2. Sign the desired binary -# 3. Place the unsigned package and signed binary in this spec's folder -# 4. Build this spec Source0: %{name}-%{version}-%{release}.%{_arch}.rpm Source1: mst_pci.ko @@ -61,14 +21,6 @@ Vendor: Microsoft Corporation Distribution: Azure Linux ExclusiveArch: x86_64 -BuildRequires: gcc -BuildRequires: make -BuildRequires: kernel-devel = %{target_kernel_version_full} -BuildRequires: kernel-headers = %{target_kernel_version_full} -BuildRequires: binutils -BuildRequires: systemd -BuildRequires: kmod - Requires: kernel = %{target_kernel_version_full} Requires: kmod @@ -80,11 +32,11 @@ mft kernel module(s) %prep %build -rpm2cpio %{Source0} | cpio -idmv -D %{buildroot} +rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} %install -cp %{Source1} %{buildroot}/lib/modules/%{KVERSION}/updates/mst_pci.ko -cp %{Source2} %{buildroot}/lib/modules/%{KVERSION}/updates/mst_pciconf.ko +cp -r %{SOURCE1} %{buildroot}/lib/modules/%{KVERSION}/updates/mst_pci.ko +cp -r %{SOURCE2} %{buildroot}/lib/modules/%{KVERSION}/updates/mst_pciconf.ko %clean rm -rf %{buildroot} @@ -95,11 +47,10 @@ rm -rf %{buildroot} %postun /sbin/depmod %{KVERSION} -%if "%{KMP}" != "1" %files %defattr(-,root,root,-) -/lib/modules/%{KVERSION}/%{install_mod_dir}/ -%endif +%license COPYING +/lib/modules/%{KVERSION}/updates/ %changelog * Tue Dec 16 2024 Binu Jose Philip - 4.30.0 diff --git a/SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec b/SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec index 1b08f8b2685..b3118508402 100644 --- a/SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec +++ b/SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec @@ -31,74 +31,27 @@ %global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) %global KVERSION %{target_kernel_version_full} -%global K_SRC /lib/modules/%{target_kernel_version_full}/build %{!?_name: %define _name mlnx-nfsrdma} -%{!?_version: %define _version 24.10} -%{!?_release: %define _release OFED.24.10.0.6.7.1} - -# KMP is disabled by default -%{!?KMP: %global KMP 0} - -# take kernel version or default to uname -r -# %{!?KVERSION: %global KVERSION %(uname -r)} -%{!?KVERSION: %global KVERSION %{target_kernel_version_full}} -%global kernel_version %{KVERSION} -%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') -# take path to kernel sources if provided, otherwise look in default location (for non KMP rpms). -%{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} - -# define release version -%{!?src_release: %global src_release %{_release}_%{krelver}} -%if "%{KMP}" != "1" -%global _release1 %{src_release} -%else -%global _release1 %{_release} -%endif -%global _kmp_rel %{_release1}%{?_kmp_build_num}%{?_dist} Summary: %{_name} Driver Name: %{_name} -Version: %{_version} +Version: 24.10 Release: 1%{?dist} License: GPLv2 Url: http://www.mellanox.com Group: System Environment/Base -# This package's "version" and "release" must reflect the unsigned version that -# was signed. -# An important consequence is that when making a change to this package, the -# unsigned version/release must be increased to keep the two versions consistent. -# Ideally though, this spec will not change much or at all, so the version will -# just track the unsigned package's version/release. -# -# To populate these sources: -# 1. Build the unsigned packages as normal -# 2. Sign the desired binary -# 3. Place the unsigned package and signed binary in this spec's folder -# 4. Build this spec - Source0: %{name}-%{version}-%{release}.%{_arch}.rpm Source1: rpcrdma.ko Source2: svcrdma.ko Source3: xprtrdma.ko -BuildRoot: /var/tmp/%{name}-%{version}-build Vendor: Microsoft Corporation Distribution: Azure Linux ExclusiveArch: x86_64 -BuildRequires: gcc -BuildRequires: make -BuildRequires: kernel-devel = %{target_kernel_version_full} -BuildRequires: kernel-headers = %{target_kernel_version_full} -BuildRequires: binutils -BuildRequires: systemd -BuildRequires: kmod -BuildRequires: mlnx-ofa_kernel-devel = %{_version} -BuildRequires: mlnx-ofa_kernel-source = %{_version} - Requires: mlnx-ofa_kernel = %{_version} Requires: mlnx-ofa_kernel-modules = %{_version} Requires: kernel = %{target_kernel_version_full} @@ -110,12 +63,12 @@ mellanox rdma signed kernel modules %prep %build -rpm2cpio %{Source0} | cpio -idmv -D %{buildroot} +rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} %install -cp %{Source1} %{buildroot}/lib/modules/%{KVERSION}/updates/mlnx-nfsrdma/rpcrdma.ko -cp %{Source2} %{buildroot}/lib/modules/%{KVERSION}/updates/mlnx-nfsrdma/svcrdma.ko -cp %{Source2} %{buildroot}/lib/modules/%{KVERSION}/updates/mlnx-nfsrdma/xprtrdma.ko +cp -r %{SOURCE1} %{buildroot}/lib/modules/%{KVERSION}/updates/mlnx-nfsrdma/rpcrdma.ko +cp -r %{SOURCE2} %{buildroot}/lib/modules/%{KVERSION}/updates/mlnx-nfsrdma/svcrdma.ko +cp -r %{SOURCE3} %{buildroot}/lib/modules/%{KVERSION}/updates/mlnx-nfsrdma/xprtrdma.ko %clean rm -rf %{buildroot} @@ -129,12 +82,12 @@ fi %postun /sbin/depmod %{KVERSION} -%if "%{KMP}" != "1" %files %defattr(-,root,root,-) -/lib/modules/%{KVERSION}/%{install_mod_dir}/ +%license copyright +/lib/modules/%{KVERSION}/updates/ %config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf -%endif + %changelog * Tue Dec 16 2024 Binu Jose Philip - 24.10.0.6.7.1 diff --git a/SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec b/SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec index f2a13d76f8d..7a51cf581de 100644 --- a/SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec +++ b/SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec @@ -31,92 +31,20 @@ %global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) %global KVERSION %{target_kernel_version_full} -%global K_SRC /lib/modules/%{target_kernel_version_full}/build - -# KMP is disabled by default -%{!?KMP: %global KMP 0} - -%global WITH_SYSTEMD %(if ( test -d "%{_unitdir}" > /dev/null); then echo -n '1'; else echo -n '0'; fi) - -%{!?configure_options: %global configure_options --with-core-mod --with-user_mad-mod --with-user_access-mod --with-addr_trans-mod --with-mlx5-mod --with-mlxfw-mod --with-ipoib-mod} - -%global MEMTRACK %(if ( echo %{configure_options} | grep "with-memtrack" > /dev/null ); then echo -n '1'; else echo -n '0'; fi) -%global MADEYE %(if ( echo %{configure_options} | grep "with-madeye-mod" > /dev/null ); then echo -n '1'; else echo -n '0'; fi) - -%global WINDRIVER %(if (grep -qiE "Wind River" /etc/issue /etc/*release* 2>/dev/null); then echo -n '1'; else echo -n '0'; fi) -%global POWERKVM %(if (grep -qiE "powerkvm" /etc/issue /etc/*release* 2>/dev/null); then echo -n '1'; else echo -n '0'; fi) -%global BLUENIX %(if (grep -qiE "Bluenix" /etc/issue /etc/*release* 2>/dev/null); then echo -n '1'; else echo -n '0'; fi) -%global XENSERVER65 %(if (grep -qiE "XenServer.*6\.5" /etc/issue /etc/*release* 2>/dev/null); then echo -n '1'; else echo -n '0'; fi) - -%global IS_RHEL_VENDOR "%{_vendor}" == "redhat" || ("%{_vendor}" == "bclinux") || ("%{_vendor}" == "openEuler") -%global KMOD_PREAMBLE "%{_vendor}" != "openEuler" - -# MarinerOS 1.0 sets -fPIE in the hardening cflags -# (in the gcc specs file). -# This seems to break only this package and not other kernel packages. -%if "%{_vendor}" == "mariner" || "%{_vendor}" == "azl" || "%{_vendor}" == "azurelinux" || (0%{?rhel} >= 10) -%global _hardened_cflags %{nil} -%endif - -# WA: Centos Stream 10 kernel doesn't support PIC mode, so we removed the following flags -%if (0%{?rhel} >= 10) -%global _hardening_gcc_ldflags %{nil} -%global _gcc_lto_cflags %{nil} -%endif - -# %{!?KVERSION: %global KVERSION %(uname -r)} -%{!?KVERSION: %global KVERSION %{target_kernel_version_full}} -%global kernel_version %{KVERSION} -%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') -# take path to kernel sources if provided, otherwise look in default location (for non KMP rpms). -%{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} - -# Select packages to build - -# Kernel module packages to be included into kernel-ib -%global build_ipoib %(if ( echo %{configure_options} | grep "with-ipoib-mod" > /dev/null ); then echo -n '1'; else echo -n '0'; fi) -%global build_oiscsi %(if ( echo %{configure_options} | grep "with-iscsi-mod" > /dev/null ); then echo -n '1'; else echo -n '0'; fi) -%global build_mlx5 %(if ( echo %{configure_options} | grep "with-mlx5-mod" > /dev/null ); then echo -n '1'; else echo -n '0'; fi) - -%{!?LIB_MOD_DIR: %global LIB_MOD_DIR /lib/modules/%{KVERSION}/updates} - -%{!?IB_CONF_DIR: %global IB_CONF_DIR /etc/infiniband} - -%{!?KERNEL_SOURCES: %global KERNEL_SOURCES /lib/modules/%{KVERSION}/source} %{!?_name: %global _name mlnx-ofa_kernel} -%{!?_version: %global _version 24.10} -%{!?_release: %global _release OFED.24.10.0.7.0.1} -%global _kmp_rel %{_release}%{?_kmp_build_num}%{?_dist} - -%global utils_pname %{_name} -%global devel_pname %{_name}-devel -%global non_kmp_pname %{_name}-modules # mlnx-ofa_kernel-modules is a sub-package in SPECS/mlnx-ofa_kernel. # We are making that into a main package for signing. Summary: Infiniband HCA Driver Name: %{_name}-modules -Version: %{_version} +Version: 24.10 Release: 1%{?dist} License: GPLv2 Url: http://www.mellanox.com/ Group: System Environment/Base -# This package's "version" and "release" must reflect the unsigned version that -# was signed. -# An important consequence is that when making a change to this package, the -# unsigned version/release must be increased to keep the two versions consistent. -# Ideally though, this spec will not change much or at all, so the version will -# just track the unsigned package's version/release. -# -# To populate these sources: -# 1. Build the unsigned packages as normal -# 2. Sign the desired binary -# 3. Place the unsigned package and signed binary in this spec's folder -# 4. Build this spec - Source0: %{name}-%{version}-%{release}.%{_arch}.rpm Source1: mlx_compat.ko Source2: ib_cm.ko @@ -148,7 +76,6 @@ Source17: rpcrdma.ko Source18: svcrdma.ko Source19: xprtrdma.ko -BuildRoot: /var/tmp/%{name}-%{version}-build Vendor: Microsoft Corporation Distribution: Azure Linux ExclusiveArch: x86_64 @@ -165,14 +92,6 @@ Obsoletes: mlnx-en-doc Obsoletes: mlnx-en-debuginfo Obsoletes: mlnx-en-sources -BuildRequires: kernel-devel = %{target_kernel_version_full} -BuildRequires: kernel-headers = %{target_kernel_version_full} -BuildRequires: binutils -BuildRequires: kmod -BuildRequires: libstdc++-devel -BuildRequires: libunwind-devel -BuildRequires: pkgconfig - Requires: kernel = %{target_kernel_version_full} Requires: kmod Requires: libstdc++ @@ -188,11 +107,6 @@ Requires: lsof Requires: ofed-scripts -%if "%{KMP}" == "1" -BuildRequires: %kernel_module_package_buildreqs -BuildRequires: /usr/bin/perl -%endif - %description Mellanox infiniband kernel modules. The driver sources are located at: http://www.mellanox.com/downloads/ @@ -200,38 +114,38 @@ The driver sources are located at: http://www.mellanox.com/downloads/ %prep %build -rpm2cpio %{Source0} | cpio -idmv -D %{buildroot} +rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} %install -cp %{Source1} %{buildroot}/lib/modules/%{KVERSION}/updates/compat/mlx_compat.ko -cp %{Source2} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/ib_cm.ko -cp %{Source3} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/ib_core.ko -cp %{Source4} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/ib_ucm.ko -cp %{Source5} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/ib_umad.ko -cp %{Source6} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/ib_uverbs.ko -cp %{Source7} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/iw_cm.ko -cp %{Source8} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/rdma_cm.ko -cp %{Source9} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/rdma_ucm.ko -cp %{Source10} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/hw/bnxt_re/bnxt_re.ko -cp %{Source11} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/hw/efa/efa.ko -cp %{Source12} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/hw/mlx4/mlx4_ib.ko -cp %{Source13} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/hw/mlx5/mlx5_ib.ko -cp %{Source14} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/sw/rxe/rdma_rxe.ko -cp %{Source15} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/ulp/ipoib/ib_ipoib.ko -cp %{Source16} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/ulp/iser/ib_iser.ko -cp %{Source17} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/ulp/isert/ib_isert.ko -cp %{Source18} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/ulp/srp/ib_srp.ko -cp %{Source19} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.ko -cp %{Source10} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/net/ethernet/mellanox/mlxfw/mlxfw.ko -cp %{Source11} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/net/ethernet/mellanox/mlxsw/mlxsw_spectrum.ko -cp %{Source12} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/nvme/host/nvme-rdma.ko -cp %{Source13} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/nvme/target/nvmet-rdma.ko -cp %{Source14} %{buildroot}/lib/modules/%{KVERSION}/updates/net/mlxdevm/mlxdevm.ko -cp %{Source15} %{buildroot}/lib/modules/%{KVERSION}/updates/net/smc/smc.ko -cp %{Source16} %{buildroot}/lib/modules/%{KVERSION}/updates/net/smc/smc_diag.ko -cp %{Source17} %{buildroot}/lib/modules/%{KVERSION}/updates/net/sunrpc/xprtrdma/rpcrdma.ko -cp %{Source18} %{buildroot}/lib/modules/%{KVERSION}/updates/net/sunrpc/xprtrdma/svcrdma.ko -cp %{Source19} %{buildroot}/lib/modules/%{KVERSION}/updates/net/sunrpc/xprtrdma/xprtrdma.ko +cp -r %{SOURCE1} %{buildroot}/lib/modules/%{KVERSION}/updates/compat/mlx_compat.ko +cp -r %{SOURCE2} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/ib_cm.ko +cp -r %{SOURCE3} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/ib_core.ko +cp -r %{SOURCE4} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/ib_ucm.ko +cp -r %{SOURCE5} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/ib_umad.ko +cp -r %{SOURCE6} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/ib_uverbs.ko +cp -r %{SOURCE7} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/iw_cm.ko +cp -r %{SOURCE8} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/rdma_cm.ko +cp -r %{SOURCE9} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/rdma_ucm.ko +cp -r %{SOURCE10} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/hw/bnxt_re/bnxt_re.ko +cp -r %{SOURCE11} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/hw/efa/efa.ko +cp -r %{SOURCE12} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/hw/mlx4/mlx4_ib.ko +cp -r %{SOURCE13} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/hw/mlx5/mlx5_ib.ko +cp -r %{SOURCE14} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/sw/rxe/rdma_rxe.ko +cp -r %{SOURCE15} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/ulp/ipoib/ib_ipoib.ko +cp -r %{SOURCE16} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/ulp/iser/ib_iser.ko +cp -r %{SOURCE17} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/ulp/isert/ib_isert.ko +cp -r %{SOURCE18} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/ulp/srp/ib_srp.ko +cp -r %{SOURCE19} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.ko +cp -r %{SOURCE10} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/net/ethernet/mellanox/mlxfw/mlxfw.ko +cp -r %{SOURCE11} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/net/ethernet/mellanox/mlxsw/mlxsw_spectrum.ko +cp -r %{SOURCE12} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/nvme/host/nvme-rdma.ko +cp -r %{SOURCE13} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/nvme/target/nvmet-rdma.ko +cp -r %{SOURCE14} %{buildroot}/lib/modules/%{KVERSION}/updates/net/mlxdevm/mlxdevm.ko +cp -r %{SOURCE15} %{buildroot}/lib/modules/%{KVERSION}/updates/net/smc/smc.ko +cp -r %{SOURCE16} %{buildroot}/lib/modules/%{KVERSION}/updates/net/smc/smc_diag.ko +cp -r %{SOURCE17} %{buildroot}/lib/modules/%{KVERSION}/updates/net/sunrpc/xprtrdma/rpcrdma.ko +cp -r %{SOURCE18} %{buildroot}/lib/modules/%{KVERSION}/updates/net/sunrpc/xprtrdma/svcrdma.ko +cp -r %{SOURCE19} %{buildroot}/lib/modules/%{KVERSION}/updates/net/sunrpc/xprtrdma/xprtrdma.ko %clean rm -rf %{buildroot} @@ -245,8 +159,8 @@ if [ $1 = 0 ]; then # 1 : Erase, not upgrade fi %files -/lib/modules/%{KVERSION}/%{install_mod_dir}/ -%endif +/lib/modules/%{KVERSION}/updates/ +%license copyright %changelog * Tue Dec 16 2024 Binu Jose Philip - 24.10 diff --git a/SPECS-SIGNED/srp-signed/srp.spec b/SPECS-SIGNED/srp-signed/srp-signed.spec similarity index 58% rename from SPECS-SIGNED/srp-signed/srp.spec rename to SPECS-SIGNED/srp-signed/srp-signed.spec index cfcf624eb3f..30b61321772 100644 --- a/SPECS-SIGNED/srp-signed/srp.spec +++ b/SPECS-SIGNED/srp-signed/srp-signed.spec @@ -33,35 +33,10 @@ %endif %global KVERSION %{target_kernel_version_full} -%global K_SRC /lib/modules/%{target_kernel_version_full}/build - -%{!?_name: %define _name srp} -%{!?_version: %define _version 24.10} -%{!?_release: %define _release OFED.24.10.0.6.7.1} - -# KMP is disabled by default -%{!?KMP: %global KMP 0} - -# take kernel version or default to uname -r -# %{!?KVERSION: %global KVERSION %(uname -r)} -%{!?KVERSION: %global KVERSION %{target_kernel_version_full}} -%global kernel_version %{KVERSION} -%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') -# take path to kernel sources if provided, otherwise look in default location (for non KMP rpms). -%{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} - -# define release version -%{!?src_release: %global src_release %{_release}_%{krelver}} -%if "%{KMP}" != "1" -%global _release1 %{src_release} -%else -%global _release1 %{_release} -%endif -%global _kmp_rel %{_release1}%{?_kmp_build_num}%{?_dist} Summary: srp driver Name: srp -Version: %{_version} +Version: 24.10 Release: 1%{?dist} License: GPLv2 Url: http://www.mellanox.com @@ -70,22 +45,10 @@ Source0: %{name}-%{version}-%{release}.%{_arch}.rpm Source1: ib_srp.ko Source2: scsi_transport_srp.ko -BuildRoot: /var/tmp/%{name}-%{version}-build Vendor: Microsoft Corporation Distribution: Azure Linux ExclusiveArch: x86_64 -BuildRequires: gcc -BuildRequires: make -BuildRequires: kernel-devel = %{target_kernel_version_full} -BuildRequires: kernel-headers = %{target_kernel_version_full} -BuildRequires: binutils -BuildRequires: systemd -BuildRequires: kmod -BuildRequires: libconfig-devel -BuildRequires: mlnx-ofa_kernel-devel = %{_version} -BuildRequires: mlnx-ofa_kernel-source = %{_version} - Requires: mlnx-ofa_kernel = %{_version} Requires: mlnx-ofa_kernel-modules = %{_version} Requires: kernel = %{target_kernel_version_full} @@ -97,20 +60,21 @@ srp kernel modules %prep %build -rpm2cpio %{Source0} | cpio -idmv -D %{buildroot} +rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} %install -cp %{Source1} %{buildroot}/lib/modules/%{KVERSION}/updates/srp/ib_srp.ko -cp %{Source2} %{buildroot}/lib/modules/%{KVERSION}/updates/srp/scsi/scsi_transport_srp.ko +cp -r %{SOURCE1} %{buildroot}/lib/modules/%{KVERSION}/updates/srp/ib_srp.ko +cp -r %{SOURCE2} %{buildroot}/lib/modules/%{KVERSION}/updates/srp/scsi/scsi_transport_srp.ko %clean rm -rf %{buildroot} -%if "%{KMP}" != "1" %files modules +%defattr(-,root,root,-) /lib/modules/%{KVERSION}/updates/srp/ib_srp.ko /lib/modules/%{KVERSION}/updates/srp/scsi/scsi_transport_srp.ko -%endif +%config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf +%license copyright %changelog * Thu Jan 9 2024 Binu Jose Philip diff --git a/SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec b/SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec index 71a7b9b74c5..aeae9a63b0f 100644 --- a/SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec +++ b/SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec @@ -5,32 +5,6 @@ %global target_kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel-headers) | /bin/cut -d . -f 1) %global KVERSION %{target_kernel_version_full} -%global K_SRC /lib/modules/%{target_kernel_version_full}/build - -# %{!?KVERSION: %global KVERSION %(uname -r)} -%{!?KVERSION: %global KVERSION %{target_kernel_version_full}} -%global kernel_version %{KVERSION} -%global krelver %(echo -n %{KVERSION} | sed -e 's/-/_/g') -%{!?K_SRC: %global K_SRC /lib/modules/%{KVERSION}/build} -# A separate variable _release is required because of the odd way the -# script append_number_to_package_release.sh works: -%global _release 1.2410068 - -%bcond_with kernel_only - -%if %{with kernel_only} -%undefine _debugsource_packages -%global debug_package %{nil} -%global make_kernel_only SUBDIRS=kernel -%else -%global make_kernel_only %{nil} -%endif - -%define need_firmware_dir 0%{?euleros} > 0 - -%if "%_vendor" == "openEuler" -%global __find_requires %{nil} -%endif # xpmem-modules is a sub-package in SPECS/xpmem. # We are making that into a main package for signing. @@ -47,32 +21,9 @@ BuildRequires: automake autoconf URL: https://github.com/openucx/xpmem ExclusiveArch: x86_64 -# This package's "version" and "release" must reflect the unsigned version that -# was signed. -# An important consequence is that when making a change to this package, the -# unsigned version/release must be increased to keep the two versions consistent. -# Ideally though, this spec will not change much or at all, so the version will -# just track the unsigned package's version/release. -# -# To populate these sources: -# 1. Build the unsigned packages as normal -# 2. Sign the desired binary -# 3. Place the unsigned package and signed binary in this spec's folder -# 4. Build this spec - Source0: %{name}-%{version}-%{release}.%{_arch}.rpm Source1: xpmem.ko -BuildRequires: gcc -BuildRequires: make -BuildRequires: kernel-devel = %{target_kernel_version_full} -BuildRequires: kernel-headers = %{target_kernel_version_full} -BuildRequires: binutils -BuildRequires: systemd -BuildRequires: kmod -BuildRequires: mlnx-ofa_kernel-devel -BuildRequires: mlnx-ofa_kernel-source - Requires: mlnx-ofa_kernel Requires: mlnx-ofa_kernel-modules Requires: kernel = %{target_kernel_version_full} @@ -89,18 +40,18 @@ This package includes the kernel module. %prep %build -rpm2cpio %{Source0} | cpio -idmv -D %{buildroot} +rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} %install -cp %{Source1} %{buildroot}/lib/modules/%{KVERSION}/updates/xpmem.ko +cp -r %{SOURCE1} %{buildroot}/lib/modules/%{KVERSION}/updates/xpmem.ko %clean rm -rf %{buildroot} -%if "%{KMP}" != "1" %files modules -/lib/modules/%{KVERSION}/%{install_mod_dir}/xpmem.ko -%endif +/lib/modules/%{KVERSION}/updates/xpmem.ko +%license COPYING COPYING.LESSER + %changelog * Tue Dec 16 2024 Binu Jose Philip - 2.7.4 diff --git a/SPECS/iser/iser.spec b/SPECS/iser/iser.spec index 5fd328d19c2..989ab646028 100644 --- a/SPECS/iser/iser.spec +++ b/SPECS/iser/iser.spec @@ -61,7 +61,7 @@ Summary: %{_name} Driver Name: iser -Version: %{_version} +Version: 24.10 Release: 1%{?dist} License: GPLv2 Url: http://www.mellanox.com diff --git a/SPECS/isert/isert.spec b/SPECS/isert/isert.spec index 221fe749002..7d909d47d90 100644 --- a/SPECS/isert/isert.spec +++ b/SPECS/isert/isert.spec @@ -61,7 +61,7 @@ Summary: %{_name} Driver Name: isert -Version: %{_version} +Version: 24.10 Release: 1%{?dist} License: GPLv2 Url: http://www.mellanox.com diff --git a/SPECS/knem/knem.spec b/SPECS/knem/knem.spec index 8264dd672af..bd33dacfc0d 100644 --- a/SPECS/knem/knem.spec +++ b/SPECS/knem/knem.spec @@ -270,6 +270,7 @@ fi %if "%{KMP}" != "1" %files -n %{non_kmp_pname} +%license source/COPYING source/COPYING.BSD-3 source/COPYING.GPL-2 /lib/modules/%{KVERSION}/%{install_mod_dir}/ %if %{IS_RHEL_VENDOR} %if ! 0%{?fedora} diff --git a/SPECS/mft_kernel/mft_kernel.spec b/SPECS/mft_kernel/mft_kernel.spec index cc05aa5f924..28a344ba27a 100644 --- a/SPECS/mft_kernel/mft_kernel.spec +++ b/SPECS/mft_kernel/mft_kernel.spec @@ -37,7 +37,7 @@ Name: kernel-mft Summary: %{name} Kernel Module for the %{KVERSION} kernel -Version: %{version} +Version: 4.30.0 Release: 1%{?dist} License: Dual BSD/GPLv2 Group: System Environment/Kernel @@ -223,6 +223,7 @@ find %{buildroot} -type f -name \*.ko -exec %{__strip} -p --strip-debug --discar %if "%{KMP}" == "1" %files utils %defattr(-,root,root,-) +%license source/COPYING %endif %{docdir} %endif diff --git a/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec b/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec index a97e9a2bd79..0b6f23d1e1c 100644 --- a/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec +++ b/SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec @@ -62,7 +62,7 @@ Summary: %{_name} Driver Name: mlnx-nfsrdma -Version: %{_version} +Version: 24.10 Release: 1%{?dist} License: GPLv2 Url: http://www.mellanox.com diff --git a/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec b/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec index 2a15a5e908b..5fec8715dbc 100644 --- a/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec +++ b/SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec @@ -97,7 +97,7 @@ Summary: Infiniband HCA Driver Name: mlnx-ofa_kernel -Version: %{_version} +Version: 24.10 Release: 1%{?dist} License: GPLv2 Url: http://www.mellanox.com/ diff --git a/SPECS/srp/srp.spec b/SPECS/srp/srp.spec index eff56d2a765..73472b521cb 100644 --- a/SPECS/srp/srp.spec +++ b/SPECS/srp/srp.spec @@ -61,7 +61,7 @@ Summary: srp driver Name: srp -Version: %{_version} +Version: 24.10 Release: 1%{?dist} License: GPLv2 Url: http://www.mellanox.com diff --git a/SPECS/xpmem/xpmem.spec b/SPECS/xpmem/xpmem.spec index b159bdc79fa..d701b0bcef9 100644 --- a/SPECS/xpmem/xpmem.spec +++ b/SPECS/xpmem/xpmem.spec @@ -239,6 +239,7 @@ fi %if "%{KMP}" != "1" %files modules %{moduledir}/xpmem.ko +%license COPYING COPYING.LESSER %endif %changelog diff --git a/toolkit/scripts/check_entangled_specs.py b/toolkit/scripts/check_entangled_specs.py index f2fd5cadb4b..33cb81406e1 100755 --- a/toolkit/scripts/check_entangled_specs.py +++ b/toolkit/scripts/check_entangled_specs.py @@ -46,7 +46,44 @@ "SPECS/shim/shim.spec", "SPECS/shim-unsigned-x64/shim-unsigned-x64.spec", "SPECS/shim-unsigned-aarch64/shim-unsigned-aarch64.spec" + ]), + frozenset([ + "SPECS-SIGNED/fwctl-signed/fwctl-signed.spec", + "SPECS/fwctl/fwctl.spec" + ]), + frozenset([ + "SPECS-SIGNED/iser-signed/iser-signed.spec", + "SPECS/iser/iser.spec" + ]), + frozenset([ + "SPECS-SIGNED/isert-signed/isert-signed.spec", + "SPECS/isert/isert.spec" + ]), + frozenset([ + "SPECS-SIGNED/knem-signed/knem-modules-signed.spec", + "SPECS/knem/knem.spec" + ]), + frozenset([ + "SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec", + "SPECS/mft_kernel/mft_kernel.spec" + ]), + frozenset([ + "SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec", + "SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec" + ]), + frozenset([ + "SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec", + "SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec" + ]), + frozenset([ + "SPECS-SIGNED/srp-signed/srp-signed.spec", + "SPECS/srp/srp.spec" + ]), + frozenset([ + "SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec", + "SPECS/xpmem/xpmem.spec" ]) + ] version_matching_groups = [ From 9ff6279b28dc93413d243e72b3f670f759e58e1e Mon Sep 17 00:00:00 2001 From: chalamalasetty Date: Thu, 16 Jan 2025 13:33:50 -0800 Subject: [PATCH 25/29] Update signed SPECS and fix code review comments --- LICENSES-AND-NOTICES/SPECS/data/licenses.json | 1 + SPECS-SIGNED/fwctl-signed/fwctl-signed.spec | 7 +++++++ SPECS-SIGNED/iser-signed/iser-signed.spec | 7 +++++++ SPECS-SIGNED/isert-signed/isert-signed.spec | 7 +++++++ SPECS-SIGNED/knem-signed/knem-modules-signed.spec | 7 +++++++ SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec | 7 +++++++ SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec | 6 ++++++ .../mlnx-ofa_kernel-modules-signed.spec | 7 +++++++ SPECS-SIGNED/srp-signed/srp-signed.spec | 8 ++++++++ SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec | 7 +++++++ 10 files changed, 64 insertions(+) diff --git a/LICENSES-AND-NOTICES/SPECS/data/licenses.json b/LICENSES-AND-NOTICES/SPECS/data/licenses.json index 3ab2b3e6e83..89a7def1eeb 100644 --- a/LICENSES-AND-NOTICES/SPECS/data/licenses.json +++ b/LICENSES-AND-NOTICES/SPECS/data/licenses.json @@ -2484,6 +2484,7 @@ "perftest", "rshim", "srp", + "srp-signed", "xpmem", "xpmem-lib", "xpmem-modules-signed" diff --git a/SPECS-SIGNED/fwctl-signed/fwctl-signed.spec b/SPECS-SIGNED/fwctl-signed/fwctl-signed.spec index 03d4c8e92c1..2936c6f972e 100644 --- a/SPECS-SIGNED/fwctl-signed/fwctl-signed.spec +++ b/SPECS-SIGNED/fwctl-signed/fwctl-signed.spec @@ -46,6 +46,13 @@ License: GPLv2 Url: http://nvidia.com Group: System Environment/Base +# +# To populate these sources: +# 1. Build the unsigned packages as normal +# 2. Sign the desired binary +# 3. Place the unsigned package and signed binary in this spec's folder +# 4. Build this spec + Source0: %{name}-%{version}-%{release}.%{_arch}.rpm Source1: fwctl.ko Source2: mlx5_fwctl.ko diff --git a/SPECS-SIGNED/iser-signed/iser-signed.spec b/SPECS-SIGNED/iser-signed/iser-signed.spec index 57c98a5578f..300cad66bde 100644 --- a/SPECS-SIGNED/iser-signed/iser-signed.spec +++ b/SPECS-SIGNED/iser-signed/iser-signed.spec @@ -42,6 +42,13 @@ License: GPLv2 Url: http://www.mellanox.com Group: System Environment/Base +# +# To populate these sources: +# 1. Build the unsigned packages as normal +# 2. Sign the desired binary +# 3. Place the unsigned package and signed binary in this spec's folder +# 4. Build this spec + Source0: %{name}-%{version}-%{release}.%{_arch}.rpm Source1: ib_iser.ko diff --git a/SPECS-SIGNED/isert-signed/isert-signed.spec b/SPECS-SIGNED/isert-signed/isert-signed.spec index 1a0712ac617..4425b829fa6 100644 --- a/SPECS-SIGNED/isert-signed/isert-signed.spec +++ b/SPECS-SIGNED/isert-signed/isert-signed.spec @@ -42,6 +42,13 @@ License: GPLv2 Url: http://www.mellanox.com Group: System Environment/Base +# +# To populate these sources: +# 1. Build the unsigned packages as normal +# 2. Sign the desired binary +# 3. Place the unsigned package and signed binary in this spec's folder +# 4. Build this spec + Source0: %{name}-%{version}-%{release}.%{_arch}.rpm Source1: ib_isert.ko diff --git a/SPECS-SIGNED/knem-signed/knem-modules-signed.spec b/SPECS-SIGNED/knem-signed/knem-modules-signed.spec index c741a01ee8f..ce100d055f5 100644 --- a/SPECS-SIGNED/knem-signed/knem-modules-signed.spec +++ b/SPECS-SIGNED/knem-signed/knem-modules-signed.spec @@ -48,6 +48,13 @@ Vendor: Microsoft Corporation Distribution: Azure Linux ExclusiveArch: x86_64 +# +# To populate these sources: +# 1. Build the unsigned packages as normal +# 2. Sign the desired binary +# 3. Place the unsigned package and signed binary in this spec's folder +# 4. Build this spec + Source0: %{name}-%{version}-%{release}.%{_arch}.rpm Source1: knem.ko BuildRoot: /var/tmp/%{name}-%{version}-build diff --git a/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec b/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec index f42e7f1d8b5..59840473440 100644 --- a/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec +++ b/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec @@ -14,6 +14,13 @@ Release: 1%{?dist} License: Dual BSD/GPLv2 Group: System Environment/Kernel +# +# To populate these sources: +# 1. Build the unsigned packages as normal +# 2. Sign the desired binary +# 3. Place the unsigned package and signed binary in this spec's folder +# 4. Build this spec + Source0: %{name}-%{version}-%{release}.%{_arch}.rpm Source1: mst_pci.ko Source2: mst_pciconf.ko diff --git a/SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec b/SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec index b3118508402..9f4948d89cf 100644 --- a/SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec +++ b/SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec @@ -42,6 +42,12 @@ License: GPLv2 Url: http://www.mellanox.com Group: System Environment/Base +# +# To populate these sources: +# 1. Build the unsigned packages as normal +# 2. Sign the desired binary +# 3. Place the unsigned package and signed binary in this spec's folder +# 4. Build this spec Source0: %{name}-%{version}-%{release}.%{_arch}.rpm Source1: rpcrdma.ko diff --git a/SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec b/SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec index 7a51cf581de..ed6a72e553c 100644 --- a/SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec +++ b/SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec @@ -45,6 +45,13 @@ License: GPLv2 Url: http://www.mellanox.com/ Group: System Environment/Base +# +# To populate these sources: +# 1. Build the unsigned packages as normal +# 2. Sign the desired binary +# 3. Place the unsigned package and signed binary in this spec's folder +# 4. Build this spec + Source0: %{name}-%{version}-%{release}.%{_arch}.rpm Source1: mlx_compat.ko Source2: ib_cm.ko diff --git a/SPECS-SIGNED/srp-signed/srp-signed.spec b/SPECS-SIGNED/srp-signed/srp-signed.spec index 30b61321772..b1178165764 100644 --- a/SPECS-SIGNED/srp-signed/srp-signed.spec +++ b/SPECS-SIGNED/srp-signed/srp-signed.spec @@ -41,6 +41,14 @@ Release: 1%{?dist} License: GPLv2 Url: http://www.mellanox.com Group: System Environment/Base + +# +# To populate these sources: +# 1. Build the unsigned packages as normal +# 2. Sign the desired binary +# 3. Place the unsigned package and signed binary in this spec's folder +# 4. Build this spec + Source0: %{name}-%{version}-%{release}.%{_arch}.rpm Source1: ib_srp.ko Source2: scsi_transport_srp.ko diff --git a/SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec b/SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec index aeae9a63b0f..d8f626eae4c 100644 --- a/SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec +++ b/SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec @@ -21,6 +21,13 @@ BuildRequires: automake autoconf URL: https://github.com/openucx/xpmem ExclusiveArch: x86_64 +# +# To populate these sources: +# 1. Build the unsigned packages as normal +# 2. Sign the desired binary +# 3. Place the unsigned package and signed binary in this spec's folder +# 4. Build this spec + Source0: %{name}-%{version}-%{release}.%{_arch}.rpm Source1: xpmem.ko From f6fc04dd138f4f8d5e3a404bbcf8320167b35350 Mon Sep 17 00:00:00 2001 From: chalamalasetty Date: Thu, 16 Jan 2025 13:48:24 -0800 Subject: [PATCH 26/29] Fix PR checker failure --- LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md b/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md index 651e748d554..647198b918a 100644 --- a/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md +++ b/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md @@ -12,7 +12,7 @@ The Azure Linux SPEC files originated from a variety of sources with varying lic | Microsoft | [Microsoft MIT License](/LICENSES-AND-NOTICES/LICENSE.md) | application-gateway-kubernetes-ingress
asc
azcopy
azure-iot-sdk-c
azure-nvme-utils
azure-storage-cpp
azurelinux-release
azurelinux-repos
azurelinux-rpm-macros
azurelinux-sysinfo
bazel
blobfuse2
bmon
bpftrace
ccache
cert-manager
cf-cli
check-restart
clamav
cloud-hypervisor-cvm
cmake-fedora
containerd
containerd2
coredns
dcos-cli
debugedit
dejavu-fonts
distroless-packages
docker-buildx
docker-cli
docker-compose
doxygen
dtc
elixir
espeak-ng
espeakup
flannel
fluent-bit
freefont
gflags
gh
go-md2man
grpc
grub2-efi-binary-signed
GSL
gtk-update-icon-cache
helm
ig
intel-pf-bb-config
ivykis
jsonbuilder
jx
kata-containers-cc
kata-packages-uvm
keda
keras
kernel-64k-signed
kernel-signed
kernel-uki
kernel-uki-signed
kpatch
kube-vip-cloud-provider
kubernetes
libacvp
libconfini
libconfuse
libgdiplus
libmaxminddb
libmetalink
libsafec
libuv
libxml++
lld
local-path-provisioner
lsb-release
ltp
lttng-consume
mm-common
moby-containerd-cc
moby-engine
msgpack
ncompress
networkd-dispatcher
nlohmann-json
nmap
node-problem-detector
ntopng
opentelemetry-cpp
packer
pcaudiolib
pcre2
perl-Test-Warnings
perl-Text-Template
pigz
prebuilt-ca-certificates
prebuilt-ca-certificates-base
prometheus-adapter
python-cachetools
python-cherrypy
python-cstruct
python-execnet
python-google-pasta
python-libclang
python-libevdev
python-logutils
python-ml-dtypes
python-namex
python-nocasedict
python-omegaconf
python-opt-einsum
python-optree
python-pecan
python-pip
python-pyrpm
python-remoto
python-repoze-lru
python-routes
python-rsa
python-setuptools
python-sphinxcontrib-websupport
python-tensorboard
python-tensorboard-plugin-wit
python-yamlloader
R
rabbitmq-server
rocksdb
rubygem-addressable
rubygem-asciidoctor
rubygem-async
rubygem-async-http
rubygem-async-io
rubygem-async-pool
rubygem-bindata
rubygem-concurrent-ruby
rubygem-connection_pool
rubygem-console
rubygem-cool.io
rubygem-deep_merge
rubygem-digest-crc
rubygem-elastic-transport
rubygem-elasticsearch
rubygem-elasticsearch-api
rubygem-eventmachine
rubygem-excon
rubygem-faraday
rubygem-faraday-em_http
rubygem-faraday-em_synchrony
rubygem-faraday-excon
rubygem-faraday-httpclient
rubygem-faraday-multipart
rubygem-faraday-net_http
rubygem-faraday-net_http_persistent
rubygem-faraday-patron
rubygem-faraday-rack
rubygem-faraday-retry
rubygem-ffi
rubygem-fiber-local
rubygem-fluent-config-regexp-type
rubygem-fluent-logger
rubygem-fluent-plugin-elasticsearch
rubygem-fluent-plugin-kafka
rubygem-fluent-plugin-prometheus
rubygem-fluent-plugin-prometheus_pushgateway
rubygem-fluent-plugin-record-modifier
rubygem-fluent-plugin-rewrite-tag-filter
rubygem-fluent-plugin-systemd
rubygem-fluent-plugin-webhdfs
rubygem-fluent-plugin-windows-exporter
rubygem-fluentd
rubygem-hirb
rubygem-hocon
rubygem-hoe
rubygem-http_parser
rubygem-httpclient
rubygem-io-event
rubygem-jmespath
rubygem-ltsv
rubygem-mini_portile2
rubygem-minitest
rubygem-mocha
rubygem-msgpack
rubygem-multi_json
rubygem-multipart-post
rubygem-net-http-persistent
rubygem-nio4r
rubygem-nokogiri
rubygem-oj
rubygem-parallel
rubygem-power_assert
rubygem-prometheus-client
rubygem-protocol-hpack
rubygem-protocol-http
rubygem-protocol-http1
rubygem-protocol-http2
rubygem-public_suffix
rubygem-puppet-resource_api
rubygem-rdiscount
rubygem-rdkafka
rubygem-rexml
rubygem-ruby-kafka
rubygem-ruby-progressbar
rubygem-rubyzip
rubygem-semantic_puppet
rubygem-serverengine
rubygem-sigdump
rubygem-strptime
rubygem-systemd-journal
rubygem-test-unit
rubygem-thor
rubygem-timers
rubygem-tzinfo
rubygem-tzinfo-data
rubygem-webhdfs
rubygem-webrick
rubygem-yajl-ruby
rubygem-zip-zip
runc
sdbus-cpp
sgx-backwards-compatibility
shim
skopeo
span-lite
sriov-network-device-plugin
SymCrypt
SymCrypt-OpenSSL
systemd-boot-signed
tensorflow
tinyxml2
toml11
tracelogging
umoci
usrsctp
vala
valkey
vnstat
zstd | | Netplan source | [GPLv3](https://github.com/canonical/netplan/blob/main/COPYING) | netplan | | Numad source | [LGPLv2 License](https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt) | numad | -| NVIDIA | [ASL 2.0 License and spec specific licenses](http://www.apache.org/licenses/LICENSE-2.0) | fwctl
fwctl-signed
ibarr
ibsim
iser
iser-signed
isert
isert-signed
knem
knem-modules-signed
libnvidia-container
mft_kernel
mft_kernel-signed
mlnx-ethtool
mlnx-iproute2
mlnx-nfsrdma
mlnx-nfsrdma-signed
mlnx-ofa_kernel
mlnx-ofa_kernel-modules-signed
mlnx-tools
mlx-bootctl
mlx-steering-dump
multiperf
nvidia-container-toolkit
ofed-docs
ofed-scripts
perftest
rshim
srp
xpmem
xpmem-lib
xpmem-modules-signed | +| NVIDIA | [ASL 2.0 License and spec specific licenses](http://www.apache.org/licenses/LICENSE-2.0) | fwctl
fwctl-signed
ibarr
ibsim
iser
iser-signed
isert
isert-signed
knem
knem-modules-signed
libnvidia-container
mft_kernel
mft_kernel-signed
mlnx-ethtool
mlnx-iproute2
mlnx-nfsrdma
mlnx-nfsrdma-signed
mlnx-ofa_kernel
mlnx-ofa_kernel-modules-signed
mlnx-tools
mlx-bootctl
mlx-steering-dump
multiperf
nvidia-container-toolkit
ofed-docs
ofed-scripts
perftest
rshim
srp
srp-signed
xpmem
xpmem-lib
xpmem-modules-signed | | NVIDIA (BSD) | [BSD](https://github.com/Mellanox/sockperf/blob/sockperf_v2/copying) | sockperf | | OpenEuler | [BSD-3 License](https://github.com/pytorch/pytorch/blob/master/LICENSE) | pytorch | | OpenMamba | [Openmamba GPLv2 License](https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt) | bash-completion | From 825bd2711a95b8f0d316bd91451eec0ddb74fd6d Mon Sep 17 00:00:00 2001 From: chalamalasetty Date: Thu, 16 Jan 2025 14:43:15 -0800 Subject: [PATCH 27/29] Update NVIDIA BSD to default entry --- LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md | 2 +- LICENSES-AND-NOTICES/SPECS/data/licenses.json | 1 + SPECS/sockperf/sockperf.spec | 2 +- toolkit/scripts/spec_source_attributions.py | 3 +-- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md b/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md index 647198b918a..5fcd03e11c9 100644 --- a/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md +++ b/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md @@ -12,7 +12,7 @@ The Azure Linux SPEC files originated from a variety of sources with varying lic | Microsoft | [Microsoft MIT License](/LICENSES-AND-NOTICES/LICENSE.md) | application-gateway-kubernetes-ingress
asc
azcopy
azure-iot-sdk-c
azure-nvme-utils
azure-storage-cpp
azurelinux-release
azurelinux-repos
azurelinux-rpm-macros
azurelinux-sysinfo
bazel
blobfuse2
bmon
bpftrace
ccache
cert-manager
cf-cli
check-restart
clamav
cloud-hypervisor-cvm
cmake-fedora
containerd
containerd2
coredns
dcos-cli
debugedit
dejavu-fonts
distroless-packages
docker-buildx
docker-cli
docker-compose
doxygen
dtc
elixir
espeak-ng
espeakup
flannel
fluent-bit
freefont
gflags
gh
go-md2man
grpc
grub2-efi-binary-signed
GSL
gtk-update-icon-cache
helm
ig
intel-pf-bb-config
ivykis
jsonbuilder
jx
kata-containers-cc
kata-packages-uvm
keda
keras
kernel-64k-signed
kernel-signed
kernel-uki
kernel-uki-signed
kpatch
kube-vip-cloud-provider
kubernetes
libacvp
libconfini
libconfuse
libgdiplus
libmaxminddb
libmetalink
libsafec
libuv
libxml++
lld
local-path-provisioner
lsb-release
ltp
lttng-consume
mm-common
moby-containerd-cc
moby-engine
msgpack
ncompress
networkd-dispatcher
nlohmann-json
nmap
node-problem-detector
ntopng
opentelemetry-cpp
packer
pcaudiolib
pcre2
perl-Test-Warnings
perl-Text-Template
pigz
prebuilt-ca-certificates
prebuilt-ca-certificates-base
prometheus-adapter
python-cachetools
python-cherrypy
python-cstruct
python-execnet
python-google-pasta
python-libclang
python-libevdev
python-logutils
python-ml-dtypes
python-namex
python-nocasedict
python-omegaconf
python-opt-einsum
python-optree
python-pecan
python-pip
python-pyrpm
python-remoto
python-repoze-lru
python-routes
python-rsa
python-setuptools
python-sphinxcontrib-websupport
python-tensorboard
python-tensorboard-plugin-wit
python-yamlloader
R
rabbitmq-server
rocksdb
rubygem-addressable
rubygem-asciidoctor
rubygem-async
rubygem-async-http
rubygem-async-io
rubygem-async-pool
rubygem-bindata
rubygem-concurrent-ruby
rubygem-connection_pool
rubygem-console
rubygem-cool.io
rubygem-deep_merge
rubygem-digest-crc
rubygem-elastic-transport
rubygem-elasticsearch
rubygem-elasticsearch-api
rubygem-eventmachine
rubygem-excon
rubygem-faraday
rubygem-faraday-em_http
rubygem-faraday-em_synchrony
rubygem-faraday-excon
rubygem-faraday-httpclient
rubygem-faraday-multipart
rubygem-faraday-net_http
rubygem-faraday-net_http_persistent
rubygem-faraday-patron
rubygem-faraday-rack
rubygem-faraday-retry
rubygem-ffi
rubygem-fiber-local
rubygem-fluent-config-regexp-type
rubygem-fluent-logger
rubygem-fluent-plugin-elasticsearch
rubygem-fluent-plugin-kafka
rubygem-fluent-plugin-prometheus
rubygem-fluent-plugin-prometheus_pushgateway
rubygem-fluent-plugin-record-modifier
rubygem-fluent-plugin-rewrite-tag-filter
rubygem-fluent-plugin-systemd
rubygem-fluent-plugin-webhdfs
rubygem-fluent-plugin-windows-exporter
rubygem-fluentd
rubygem-hirb
rubygem-hocon
rubygem-hoe
rubygem-http_parser
rubygem-httpclient
rubygem-io-event
rubygem-jmespath
rubygem-ltsv
rubygem-mini_portile2
rubygem-minitest
rubygem-mocha
rubygem-msgpack
rubygem-multi_json
rubygem-multipart-post
rubygem-net-http-persistent
rubygem-nio4r
rubygem-nokogiri
rubygem-oj
rubygem-parallel
rubygem-power_assert
rubygem-prometheus-client
rubygem-protocol-hpack
rubygem-protocol-http
rubygem-protocol-http1
rubygem-protocol-http2
rubygem-public_suffix
rubygem-puppet-resource_api
rubygem-rdiscount
rubygem-rdkafka
rubygem-rexml
rubygem-ruby-kafka
rubygem-ruby-progressbar
rubygem-rubyzip
rubygem-semantic_puppet
rubygem-serverengine
rubygem-sigdump
rubygem-strptime
rubygem-systemd-journal
rubygem-test-unit
rubygem-thor
rubygem-timers
rubygem-tzinfo
rubygem-tzinfo-data
rubygem-webhdfs
rubygem-webrick
rubygem-yajl-ruby
rubygem-zip-zip
runc
sdbus-cpp
sgx-backwards-compatibility
shim
skopeo
span-lite
sriov-network-device-plugin
SymCrypt
SymCrypt-OpenSSL
systemd-boot-signed
tensorflow
tinyxml2
toml11
tracelogging
umoci
usrsctp
vala
valkey
vnstat
zstd | | Netplan source | [GPLv3](https://github.com/canonical/netplan/blob/main/COPYING) | netplan | | Numad source | [LGPLv2 License](https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt) | numad | -| NVIDIA | [ASL 2.0 License and spec specific licenses](http://www.apache.org/licenses/LICENSE-2.0) | fwctl
fwctl-signed
ibarr
ibsim
iser
iser-signed
isert
isert-signed
knem
knem-modules-signed
libnvidia-container
mft_kernel
mft_kernel-signed
mlnx-ethtool
mlnx-iproute2
mlnx-nfsrdma
mlnx-nfsrdma-signed
mlnx-ofa_kernel
mlnx-ofa_kernel-modules-signed
mlnx-tools
mlx-bootctl
mlx-steering-dump
multiperf
nvidia-container-toolkit
ofed-docs
ofed-scripts
perftest
rshim
srp
srp-signed
xpmem
xpmem-lib
xpmem-modules-signed | +| NVIDIA | [ASL 2.0 License and spec specific licenses](http://www.apache.org/licenses/LICENSE-2.0) | fwctl
fwctl-signed
ibarr
ibsim
iser
iser-signed
isert
isert-signed
knem
knem-modules-signed
libnvidia-container
mft_kernel
mft_kernel-signed
mlnx-ethtool
mlnx-iproute2
mlnx-nfsrdma
mlnx-nfsrdma-signed
mlnx-ofa_kernel
mlnx-ofa_kernel-modules-signed
mlnx-tools
mlx-bootctl
mlx-steering-dump
multiperf
nvidia-container-toolkit
ofed-docs
ofed-scripts
perftest
rshim
sockperf
srp
srp-signed
xpmem
xpmem-lib
xpmem-modules-signed | | NVIDIA (BSD) | [BSD](https://github.com/Mellanox/sockperf/blob/sockperf_v2/copying) | sockperf | | OpenEuler | [BSD-3 License](https://github.com/pytorch/pytorch/blob/master/LICENSE) | pytorch | | OpenMamba | [Openmamba GPLv2 License](https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt) | bash-completion | diff --git a/LICENSES-AND-NOTICES/SPECS/data/licenses.json b/LICENSES-AND-NOTICES/SPECS/data/licenses.json index 89a7def1eeb..086ec693df5 100644 --- a/LICENSES-AND-NOTICES/SPECS/data/licenses.json +++ b/LICENSES-AND-NOTICES/SPECS/data/licenses.json @@ -2483,6 +2483,7 @@ "ofed-scripts", "perftest", "rshim", + "sockperf", "srp", "srp-signed", "xpmem", diff --git a/SPECS/sockperf/sockperf.spec b/SPECS/sockperf/sockperf.spec index 79f9cb72b52..39c25b61cab 100644 --- a/SPECS/sockperf/sockperf.spec +++ b/SPECS/sockperf/sockperf.spec @@ -84,5 +84,5 @@ make install DESTDIR="%{?buildroot}" %changelog * Tue Dec 17 2024 Binu Jose Philip -- Initial Azure Linux import from NVIDIA (BSD) (license: BSD). +- Initial Azure Linux import from NVIDIA (license: BSD). - License verified diff --git a/toolkit/scripts/spec_source_attributions.py b/toolkit/scripts/spec_source_attributions.py index b1216d4778e..f04a6f531c0 100755 --- a/toolkit/scripts/spec_source_attributions.py +++ b/toolkit/scripts/spec_source_attributions.py @@ -16,8 +16,7 @@ "Fedora (Copyright Remi Collet)": r'\n-\s+Initial (CBL-Mariner|Azure Linux) import from Fedora \d+ \(license: CC-BY-SA\)(\.|\n|$)', "Fedora (ISC)": r'\n-\s+Initial (CBL-Mariner|Azure Linux) import from Fedora \d+ \(license: ISC\)(\.|\n|$)', "Magnus Edenhill Open Source": r'\n-\s+Initial (CBL-Mariner|Azure Linux) import from Magnus Edenhill Open Source \(license: BSD\)(\.|\n|$)', - "NVIDIA": r'\n-\s+Initial (CBL-Mariner|Azure Linux) import from NVIDIA \(license: (ASL 2\.0|GPLv2)\)(\.|\n|$)', - "NVIDIA (BSD)": r'\n-\s+Initial (CBL-Mariner|Azure Linux) import from NVIDIA \(BSD\) \(license: (BSD)\)(\.|\n|$)', + "NVIDIA": r'\n-\s+Initial (CBL-Mariner|Azure Linux) import from NVIDIA \(license: (ASL 2\.0|GPLv2|BSD)\)(\.|\n|$)', "OpenEuler": r'\n-\s+Initial (CBL-Mariner|Azure Linux) import from OpenEuler \(license: BSD\)(\.|\n|$)', "OpenMamba": r'\n-\s+Initial (CBL-Mariner|Azure Linux) import from OpenMamba(\.|\n|$)', "OpenSUSE": r'\n-\s+Initial (CBL-Mariner|Azure Linux) import from openSUSE \w+ \(license: same as "License" tag\)(\.|\n|$)', From c9688a6e4f8e67d1ca18cc4a63aedc6595e0409a Mon Sep 17 00:00:00 2001 From: chalamalasetty Date: Thu, 16 Jan 2025 15:33:11 -0800 Subject: [PATCH 28/29] Add changes to MOFED signed SPECS --- SPECS-SIGNED/fwctl-signed/fwctl-signed.spec | 5 +++-- SPECS-SIGNED/iser-signed/iser-signed.spec | 6 ++++-- SPECS-SIGNED/isert-signed/isert-signed.spec | 6 ++++-- SPECS-SIGNED/knem-signed/knem-modules-signed.spec | 5 +++-- SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec | 6 ++++-- SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec | 6 ++++-- .../mlnx-ofa_kernel-modules-signed.spec | 5 +++-- SPECS-SIGNED/srp-signed/srp-signed.spec | 5 +++-- SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec | 6 ++++-- 9 files changed, 32 insertions(+), 18 deletions(-) diff --git a/SPECS-SIGNED/fwctl-signed/fwctl-signed.spec b/SPECS-SIGNED/fwctl-signed/fwctl-signed.spec index 2936c6f972e..9d3f6d9a7a1 100644 --- a/SPECS-SIGNED/fwctl-signed/fwctl-signed.spec +++ b/SPECS-SIGNED/fwctl-signed/fwctl-signed.spec @@ -72,9 +72,10 @@ fwctl signed kernel modules %prep %build -rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} %install +rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} + cp -r %{SOURCE1} %{buildroot}/lib/modules/%{KVERSION}/updates/fwctl/fwctl.ko cp -r %{SOURCE2} %{buildroot}/lib/modules/%{KVERSION}/updates/fwctl/mlx5/mlx5_fwctl.ko @@ -92,7 +93,7 @@ fi # 1 : closed %files %defattr(-,root,root,-) -%license copyright +%license %{_datadir}/licenses/%{name}/copyright /lib/modules/%{KVERSION}/updates/ %config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf diff --git a/SPECS-SIGNED/iser-signed/iser-signed.spec b/SPECS-SIGNED/iser-signed/iser-signed.spec index 300cad66bde..3879e6d8aa1 100644 --- a/SPECS-SIGNED/iser-signed/iser-signed.spec +++ b/SPECS-SIGNED/iser-signed/iser-signed.spec @@ -67,9 +67,11 @@ iser signed kernel modules %prep %build -rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} + %install +rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} + cp -r %{SOURCE1} %{buildroot}/lib/modules/%{KVERSION}/updates/iser/ib_iser.ko %clean @@ -86,7 +88,7 @@ fi # 1 : closed %files %defattr(-,root,root,-) -%license copyright +%license %{_datadir}/licenses/%{name}/copyright /lib/modules/%{KVERSION}/updates/ %config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf diff --git a/SPECS-SIGNED/isert-signed/isert-signed.spec b/SPECS-SIGNED/isert-signed/isert-signed.spec index 4425b829fa6..a52b4481a6c 100644 --- a/SPECS-SIGNED/isert-signed/isert-signed.spec +++ b/SPECS-SIGNED/isert-signed/isert-signed.spec @@ -67,9 +67,11 @@ isert signed kernel modules %prep %build -rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} + %install +rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} + cp -r %{SOURCE1} %{buildroot}/lib/modules/%{KVERSION}/updates/isert/ib_isert.ko %clean @@ -86,7 +88,7 @@ fi # 1 : closed %files %defattr(-,root,root,-) -%license copyright +%license %{_datadir}/licenses/%{name}/copyright /lib/modules/%{KVERSION}/updates/ %config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf diff --git a/SPECS-SIGNED/knem-signed/knem-modules-signed.spec b/SPECS-SIGNED/knem-signed/knem-modules-signed.spec index ce100d055f5..c4df6592bc0 100644 --- a/SPECS-SIGNED/knem-signed/knem-modules-signed.spec +++ b/SPECS-SIGNED/knem-signed/knem-modules-signed.spec @@ -71,9 +71,10 @@ See http://knem.gitlabpages.inria.fr for details. %prep %build -rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} %install +rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} + cp -r %{SOURCE1} %{buildroot}/lib/modules/%{KVERSION}/extra/knem/knem.ko %clean @@ -88,7 +89,7 @@ if [ $1 = 0 ]; then # 1 : Erase, not upgrade fi %files -%license COPYING COPYING.BSD-3 COPYING.GPL-2 +%{_datadir}/licenses /lib/modules/ %if %{IS_RHEL_VENDOR} %if ! 0%{?fedora} diff --git a/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec b/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec index 59840473440..cfdfbad1ddb 100644 --- a/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec +++ b/SPECS-SIGNED/mft_kernel-signed/mft_kernel-signed.spec @@ -39,9 +39,11 @@ mft kernel module(s) %prep %build -rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} + %install +rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} + cp -r %{SOURCE1} %{buildroot}/lib/modules/%{KVERSION}/updates/mst_pci.ko cp -r %{SOURCE2} %{buildroot}/lib/modules/%{KVERSION}/updates/mst_pciconf.ko @@ -56,7 +58,7 @@ rm -rf %{buildroot} %files %defattr(-,root,root,-) -%license COPYING +%license %{_datadir}/licenses/%{name}/COPYING /lib/modules/%{KVERSION}/updates/ %changelog diff --git a/SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec b/SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec index 9f4948d89cf..761c7eb34d7 100644 --- a/SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec +++ b/SPECS-SIGNED/mlnx-nfsrdma-signed/mlnx-nfsrdma-signed.spec @@ -69,9 +69,11 @@ mellanox rdma signed kernel modules %prep %build -rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} + %install +rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} + cp -r %{SOURCE1} %{buildroot}/lib/modules/%{KVERSION}/updates/mlnx-nfsrdma/rpcrdma.ko cp -r %{SOURCE2} %{buildroot}/lib/modules/%{KVERSION}/updates/mlnx-nfsrdma/svcrdma.ko cp -r %{SOURCE3} %{buildroot}/lib/modules/%{KVERSION}/updates/mlnx-nfsrdma/xprtrdma.ko @@ -90,7 +92,7 @@ fi %files %defattr(-,root,root,-) -%license copyright +%license %{_datadir}/licenses/%{name}/copyright /lib/modules/%{KVERSION}/updates/ %config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf diff --git a/SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec b/SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec index ed6a72e553c..ffa0bc558d5 100644 --- a/SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec +++ b/SPECS-SIGNED/mlnx-ofa_kernel-signed/mlnx-ofa_kernel-modules-signed.spec @@ -121,9 +121,10 @@ The driver sources are located at: http://www.mellanox.com/downloads/ %prep %build -rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} %install +rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} + cp -r %{SOURCE1} %{buildroot}/lib/modules/%{KVERSION}/updates/compat/mlx_compat.ko cp -r %{SOURCE2} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/ib_cm.ko cp -r %{SOURCE3} %{buildroot}/lib/modules/%{KVERSION}/updates/drivers/infiniband/core/ib_core.ko @@ -167,7 +168,7 @@ fi %files /lib/modules/%{KVERSION}/updates/ -%license copyright +%license %{_datadir}/licenses/%{name}/copyright %changelog * Tue Dec 16 2024 Binu Jose Philip - 24.10 diff --git a/SPECS-SIGNED/srp-signed/srp-signed.spec b/SPECS-SIGNED/srp-signed/srp-signed.spec index b1178165764..21b993da44a 100644 --- a/SPECS-SIGNED/srp-signed/srp-signed.spec +++ b/SPECS-SIGNED/srp-signed/srp-signed.spec @@ -68,9 +68,10 @@ srp kernel modules %prep %build -rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} %install +rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} + cp -r %{SOURCE1} %{buildroot}/lib/modules/%{KVERSION}/updates/srp/ib_srp.ko cp -r %{SOURCE2} %{buildroot}/lib/modules/%{KVERSION}/updates/srp/scsi/scsi_transport_srp.ko @@ -82,7 +83,7 @@ rm -rf %{buildroot} /lib/modules/%{KVERSION}/updates/srp/ib_srp.ko /lib/modules/%{KVERSION}/updates/srp/scsi/scsi_transport_srp.ko %config(noreplace) %{_sysconfdir}/depmod.d/zz02-%{name}-*.conf -%license copyright +%license %{_datadir}/licenses/%{name}/copyright %changelog * Thu Jan 9 2024 Binu Jose Philip diff --git a/SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec b/SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec index d8f626eae4c..47f370d26b4 100644 --- a/SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec +++ b/SPECS-SIGNED/xpmem-signed/xpmem-modules-signed.spec @@ -47,9 +47,11 @@ This package includes the kernel module. %prep %build -rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} + %install +rpm2cpio %{SOURCE0} | cpio -idmv -D %{buildroot} + cp -r %{SOURCE1} %{buildroot}/lib/modules/%{KVERSION}/updates/xpmem.ko %clean @@ -57,7 +59,7 @@ rm -rf %{buildroot} %files modules /lib/modules/%{KVERSION}/updates/xpmem.ko -%license COPYING COPYING.LESSER +%{_datadir}/licenses %changelog From 63dc594fc7d40023cf4b106e0d850820fe734faa Mon Sep 17 00:00:00 2001 From: chalamalasetty Date: Thu, 16 Jan 2025 16:06:15 -0800 Subject: [PATCH 29/29] Add license file to libxpmem and libxpmem-devel packages --- SPECS/xpmem/xpmem.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SPECS/xpmem/xpmem.spec b/SPECS/xpmem/xpmem.spec index d701b0bcef9..f505bd5b56b 100644 --- a/SPECS/xpmem/xpmem.spec +++ b/SPECS/xpmem/xpmem.spec @@ -228,12 +228,14 @@ fi %if ! %{with kernel_only} %files -n libxpmem %{_libdir}/libxpmem.so.* +%license COPYING COPYING.LESSER %files -n libxpmem-devel %{_prefix}/include/xpmem.h %{_libdir}/libxpmem.a %{_libdir}/libxpmem.so %{_libdir}/pkgconfig/cray-xpmem.pc +%license COPYING COPYING.LESSER %endif %if "%{KMP}" != "1"