commit 745b8dc4b7438088a8f0a6b20c65250a63126f985687b1e736df244434a3b413 Author: OBS User unknown Date: Mon Jan 15 23:25:51 2007 +0000 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mpt-firmware?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/hwcfg-mptfc b/hwcfg-mptfc new file mode 100644 index 0000000..c53f2ec --- /dev/null +++ b/hwcfg-mptfc @@ -0,0 +1,5 @@ +# MPT Fusion FC driver +# Autoload mpctl module +MODULE_0='mptfc' +MODULE_1='mptctl' +STARTMODE='auto' diff --git a/hwcfg-mptsas b/hwcfg-mptsas new file mode 100644 index 0000000..7fbb947 --- /dev/null +++ b/hwcfg-mptsas @@ -0,0 +1,5 @@ +# MPT Fusion SAS driver +# Autoload mpctl module +MODULE_0='mptsas' +MODULE_1='mptctl' +STARTMODE='auto' diff --git a/hwcfg-mptspi b/hwcfg-mptspi new file mode 100644 index 0000000..55c15ec --- /dev/null +++ b/hwcfg-mptspi @@ -0,0 +1,5 @@ +# MPT Fusion SPI driver +# Autoload mpctl module +MODULE_0='mptspi' +MODULE_1='mptctl' +STARTMODE='auto' diff --git a/mpt-firmware.changes b/mpt-firmware.changes new file mode 100644 index 0000000..01c689f --- /dev/null +++ b/mpt-firmware.changes @@ -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). + diff --git a/mpt-firmware.spec b/mpt-firmware.spec new file mode 100644 index 0000000..f25fe7e --- /dev/null +++ b/mpt-firmware.spec @@ -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 + + +%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). diff --git a/mpt-firmware.spec.test b/mpt-firmware.spec.test new file mode 100644 index 0000000..655b603 --- /dev/null +++ b/mpt-firmware.spec.test @@ -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 + -Create files dynamically +* Tue Sep 12 2006 Eric Moore + -Initial creation of this rpm. diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4 diff --git a/update-pci-id-list.sh b/update-pci-id-list.sh new file mode 100644 index 0000000..a9f50c6 --- /dev/null +++ b/update-pci-id-list.sh @@ -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 +