This commit is contained in:
commit
745b8dc4b7
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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
5
hwcfg-mptfc
Normal file
5
hwcfg-mptfc
Normal file
@ -0,0 +1,5 @@
|
||||
# MPT Fusion FC driver
|
||||
# Autoload mpctl module
|
||||
MODULE_0='mptfc'
|
||||
MODULE_1='mptctl'
|
||||
STARTMODE='auto'
|
5
hwcfg-mptsas
Normal file
5
hwcfg-mptsas
Normal file
@ -0,0 +1,5 @@
|
||||
# MPT Fusion SAS driver
|
||||
# Autoload mpctl module
|
||||
MODULE_0='mptsas'
|
||||
MODULE_1='mptctl'
|
||||
STARTMODE='auto'
|
5
hwcfg-mptspi
Normal file
5
hwcfg-mptspi
Normal file
@ -0,0 +1,5 @@
|
||||
# MPT Fusion SPI driver
|
||||
# Autoload mpctl module
|
||||
MODULE_0='mptspi'
|
||||
MODULE_1='mptctl'
|
||||
STARTMODE='auto'
|
16
mpt-firmware.changes
Normal file
16
mpt-firmware.changes
Normal file
@ -0,0 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
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).
|
||||
|
92
mpt-firmware.spec
Normal file
92
mpt-firmware.spec
Normal file
@ -0,0 +1,92 @@
|
||||
#
|
||||
# spec file for package mpt-firmware (Version 1.0)
|
||||
#
|
||||
# Copyright (c) 2007 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: 2
|
||||
License: GNU General Public License (GPL)
|
||||
Group: Hardware/Other
|
||||
BuildRequires: kernel-default sysconfig
|
||||
Requires: sysconfig
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source0: hwcfg-mptspi
|
||||
Source1: hwcfg-mptfc
|
||||
Source2: hwcfg-mptsas
|
||||
Source3: update-pci-id-list.sh
|
||||
# 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
|
||||
|
||||
%build
|
||||
# There is nothing to build
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig/hardware
|
||||
for pid in $(grep mptspi /lib/modules/*/modules.alias | sed 's/.*d0000\(.*\)sv.*/\1/g' | tr [A-F] [a-f]); do
|
||||
cp %{S:0} $RPM_BUILD_ROOT/etc/sysconfig/hardware/hwcfg-vpid-1000-$pid
|
||||
done
|
||||
for pid in $(grep mptfc /lib/modules/*/modules.alias | sed 's/.*d0000\(.*\)sv.*/\1/g' | tr [A-F] [a-f]); do
|
||||
cp %{S:1} $RPM_BUILD_ROOT/etc/sysconfig/hardware/hwcfg-vpid-1000-$pid
|
||||
done
|
||||
for pid in $(grep mptsas /lib/modules/*/modules.alias | sed 's/.*d0000\(.*\)sv.*/\1/g' | tr [A-F] [a-f]); do
|
||||
cp %{S:2} $RPM_BUILD_ROOT/etc/sysconfig/hardware/hwcfg-vpid-1000-$pid
|
||||
done
|
||||
|
||||
%description
|
||||
This package contains hardware configuration files that 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
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Eric Moore <emoore@lsil.com>
|
||||
|
||||
|
||||
%files
|
||||
%defattr(0644,root,root)
|
||||
/etc/sysconfig/hardware/*
|
||||
|
||||
%changelog -n mpt-firmware
|
||||
* Mon Nov 13 2006 - hare@suse.de
|
||||
- Create hwcfg files based on the modalias provided by the
|
||||
respective modules.
|
||||
* Tue Oct 17 2006 - hare@suse.de
|
||||
- Create files dynamically
|
||||
* Tue Sep 12 2006 - Eric.Moore@lsil.com
|
||||
- Initial creation of this rpm (FATE 300676).
|
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.
|
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