Sync from SUSE:SLFO:Main mpt-firmware revision 106cad21560c5da1deb7865edb4ac3a0
This commit is contained in:
commit
f699fa2172
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
60
mpt-firmware.changes
Normal file
60
mpt-firmware.changes
Normal file
|
@ -0,0 +1,60 @@
|
|||
-------------------------------------------------------------------
|
||||
Mon Apr 20 18:15:03 UTC 2015 - mpluskal@suse.com
|
||||
|
||||
- Cleanup spec file with spec-cleaner
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 15 22:57:38 UTC 2013 - crrodriguez@opensuse.org
|
||||
|
||||
- Also, update modaliases.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Apr 14 20:40:56 UTC 2013 - crrodriguez@opensuse.org
|
||||
|
||||
- Fix udev rules location and update them to use builtin
|
||||
module loading features.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 2 23:00:15 UTC 2013 - crrodriguez@opensuse.org
|
||||
|
||||
- Require modutils and not module-init-tools otherwise I cannot
|
||||
switch to kmod..
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 11 08:30:36 UTC 2012 - rmilasan@suse.com
|
||||
|
||||
- Drop {ignore_error} from the udev rule, its not supported anymore.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 4 07:11:36 CET 2008 - coolo@suse.de
|
||||
|
||||
- fix file list
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 3 15:04:10 CET 2008 - hare@suse.de
|
||||
|
||||
- Move to use udev rules to avoid mkinitrd breakage
|
||||
(bnc#449123)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 20 11:00:16 CET 2008 - hare@suse.de
|
||||
|
||||
- Update to use modprobe files (bnc#444815)
|
||||
- Update modalias definitions.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 13 15:24:57 CET 2006 - hare@suse.de
|
||||
|
||||
- Create hwcfg files based on the modalias provided by the
|
||||
respective modules.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 17 11:17:35 CET 2006 - hare@suse.de
|
||||
|
||||
- Create files dynamically
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 12 15:00:00 PDT 2006 - Eric.Moore@lsil.com
|
||||
|
||||
- Initial creation of this rpm (FATE 300676).
|
||||
|
79
mpt-firmware.spec
Normal file
79
mpt-firmware.spec
Normal file
|
@ -0,0 +1,79 @@
|
|||
#
|
||||
# spec file for package mpt-firmware
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define _udevrulesdir %(pkg-config --variable=udevdir udev)/rules.d
|
||||
Name: mpt-firmware
|
||||
Version: 1.0
|
||||
Release: 0
|
||||
Summary: Configuration files for autoloading mptctl at boot time
|
||||
License: GPL-2.0+
|
||||
Group: Hardware/Other
|
||||
Source0: mptctl.rules
|
||||
Source3: update-pci-id-list.sh
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkgconfig(udev) > 176
|
||||
Requires: modutils
|
||||
# Module: mptspi.ko
|
||||
Supplements: modalias(pci:v00001000d00000030sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v0000117Cd00000030sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d00000040sv*sd*bc*sc*i*)
|
||||
# Module: mptsas.ko
|
||||
Supplements: modalias(pci:v00001000d00000050sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d00000054sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d00000056sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d00000058sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d00000059sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d00000062sv*sd*bc*sc*i*)
|
||||
# Module: mptfc.ko
|
||||
Supplements: modalias(pci:v00001000d00000621sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d00000622sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d00000624sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d00000626sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d00000628sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d00000640sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d00000642sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d00000646sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001657d00000646sv*sd*bc*sc*i*)
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
|
||||
%prep
|
||||
|
||||
%build
|
||||
# There is nothing to build
|
||||
|
||||
%install
|
||||
install -D -m644 %{SOURCE0} %{buildroot}%{_udevrulesdir}/81-mptctl.rules
|
||||
|
||||
%description
|
||||
This package contains modprobe configuration files to autoload the
|
||||
mptctl ioctl driver at boot time. The mptctl driver is an ioctl
|
||||
character driver for the LSI Logic Fusion-MPT Host adapter series.
|
||||
These adapters include
|
||||
|
||||
- Ultra320 53C1030, 53C1020
|
||||
|
||||
- Fiber Channel FC909, FC919, FC929, FC919X and FC929X
|
||||
|
||||
- SAS SAS1064, and SAS1068
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_udevrulesdir}/81-mptctl.rules
|
||||
|
||||
%changelog
|
86
mpt-firmware.spec.test
Normal file
86
mpt-firmware.spec.test
Normal file
|
@ -0,0 +1,86 @@
|
|||
#
|
||||
# spec file for package mpt-firmware (Version 1.0)
|
||||
#
|
||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
Name: mpt-firmware
|
||||
Summary: Configuration files for autoloading mptctl at boot time.
|
||||
Version: 1.0
|
||||
Release: 1
|
||||
Vendor: LSI Logic
|
||||
License: GPL
|
||||
Group: Hardware/Other
|
||||
BuildRequires: sysconfig
|
||||
Requires: sysconfig
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source0: hwcfg-mptspi
|
||||
Source1: hwcfg-mptsas
|
||||
Source2: hwcfg-mptfc
|
||||
# Module: mptspi.ko
|
||||
Supplements: modalias(pci:v00001000d00000030sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d00000032sv*sd*bc*sc*i*)
|
||||
# Module: mptfc.ko
|
||||
Supplements: modalias(pci:v00001000d00000621sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d00000624sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d00000622sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d00000628sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d00000626sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d00000642sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d00000640sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d00000646sv*sd*bc*sc*i*)
|
||||
# Module: mptsas.ko
|
||||
Supplements: modalias(pci:v00001000d00000050sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d0000005Esv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d00000054sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d00000056sv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d0000005Asv*sd*bc*sc*i*)
|
||||
Supplements: modalias(pci:v00001000d00000058sv*sd*bc*sc*i*)
|
||||
# end of supplements list
|
||||
|
||||
%prep
|
||||
# There is nothing to prepare
|
||||
|
||||
%build
|
||||
# There is nothing to build
|
||||
|
||||
%install
|
||||
spi_pid="0030 0032"
|
||||
sas_pid="0050 0054 0056 0058 0062"
|
||||
fc_pid="0622 0624 0626 0628 0640 0646"
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig/hardware
|
||||
for pid in $spi_pid; do
|
||||
cp %{S:0} $RPM_BUILD_ROOT/etc/sysconfig/hardware/hwcfg-vpid-1000-$pid
|
||||
done
|
||||
for pid in $sas_pid; do
|
||||
cp %{S:1} $RPM_BUILD_ROOT/etc/sysconfig/hardware/hwcfg-vpid-1000-$pid
|
||||
done
|
||||
for pid in $fc_pid; do
|
||||
cp %{S:2} $RPM_BUILD_ROOT/etc/sysconfig/hardware/hwcfg-vpid-1000-$pid
|
||||
done
|
||||
|
||||
%description
|
||||
This package contains hwcfg-files that autoload
|
||||
the mptctl ioctl driver at boot time.
|
||||
The mptctl driver is ioctl character driver
|
||||
for the LSI Logic Fusion-MPT Architecture parts.
|
||||
These include the Ultra320 53C1030, 53C1020 and the Fiber
|
||||
Channel FC909, FC919, FC929, FC919X and FC929X adapters.
|
||||
SAS1064, and SAS1068 adapters.
|
||||
|
||||
%files
|
||||
%defattr(0644,root,root)
|
||||
/etc/sysconfig/hardware/*
|
||||
|
||||
%changelog
|
||||
* Tue Oct 17 2006 Hannes Reinecke <hare@suse.de>
|
||||
-Create files dynamically
|
||||
* Tue Sep 12 2006 Eric Moore <Eric.Moore@lsil.com>
|
||||
-Initial creation of this rpm.
|
6
mptctl.rules
Normal file
6
mptctl.rules
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Autoload mptctl module
|
||||
ACTION!="add", GOTO="mptctl_end"
|
||||
|
||||
SUBSYSTEM=="pci", DRIVER=="mpt*", ENV{MODALIAS}=="?*", RUN{builtin}="kmod load mptctl"
|
||||
|
||||
LABEL="mptctl_end"
|
70
update-pci-id-list.sh
Normal file
70
update-pci-id-list.sh
Normal file
|
@ -0,0 +1,70 @@
|
|||
#!/bin/bash
|
||||
|
||||
KVERS=$1
|
||||
|
||||
if [ -z "$KVERS" ]; then
|
||||
for dir in /lib/modules/2.6.*; do
|
||||
if [ -f $dir/modules.alias ] ; then
|
||||
MODPATH=$dir/modules.alias
|
||||
fi
|
||||
done
|
||||
if [ -z "$MODPATH" ] ; then
|
||||
echo 'Cannot determine kernel version'
|
||||
exit 1
|
||||
else
|
||||
echo "Using $MODPATH"
|
||||
fi
|
||||
else
|
||||
MODPATH=/lib/modules/$KVERS/modules.alias
|
||||
fi
|
||||
|
||||
if [ ! -f $MODPATH ] ; then
|
||||
echo '$MODPATH not found'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
spi_list=$(grep mptspi $MODPATH | sed 's/\(alias\) \(pci:.*\*\) \(mpt.*\)/\2/g')
|
||||
echo "/^# Module: mptspi/
|
||||
kb
|
||||
+
|
||||
/^#/
|
||||
-
|
||||
ke
|
||||
'b,'ed
|
||||
i
|
||||
# Module: mptspi.ko
|
||||
$(for id in $spi_list; do echo Supplements: modalias\($id\); done)
|
||||
.
|
||||
w
|
||||
q " | ed $2
|
||||
|
||||
fc_list=$(grep mptfc $MODPATH | sed 's/\(alias\) \(pci:.*\*\) \(mpt.*\)/\2/g')
|
||||
echo "/^# Module: mptfc/
|
||||
kb
|
||||
+
|
||||
/^#/
|
||||
-
|
||||
ke
|
||||
'b,'ed
|
||||
i
|
||||
# Module: mptfc.ko
|
||||
$(for id in $fc_list; do echo Supplements: modalias\($id\); done)
|
||||
.
|
||||
w
|
||||
q " | ed $2
|
||||
|
||||
sas_list=$(grep mptsas $MODPATH | sed 's/\(alias\) \(pci:.*\*\) \(mpt.*\)/\2/g')
|
||||
echo "/^# Module: mptsas/
|
||||
kb
|
||||
+
|
||||
/^#/
|
||||
-
|
||||
ke
|
||||
'b,'ed
|
||||
i
|
||||
# Module: mptsas.ko
|
||||
$(for id in $sas_list; do echo Supplements: modalias\($id\); done)
|
||||
.
|
||||
w
|
||||
q " | ed $2
|
||||
|
Loading…
Reference in New Issue
Block a user