forked from pool/kernel-firmware
Accepting request 89167 from Kernel:HEAD
fix supplements generation with rpm-4.9 OBS-URL: https://build.opensuse.org/request/show/89167 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kernel-firmware?expand=0&rev=25
This commit is contained in:
commit
a5099a1dd8
3
.gitattributes
vendored
3
.gitattributes
vendored
@ -21,3 +21,6 @@
|
|||||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||||
|
## Specific LFS patterns
|
||||||
|
iwlwifi-4965-1.ucode filter=lfs diff=lfs merge=lfs -text
|
||||||
|
t4fw.bin filter=lfs diff=lfs merge=lfs -text
|
||||||
|
27
firmware.sh
27
firmware.sh
@ -54,6 +54,31 @@ get_kernel_dir()
|
|||||||
usage
|
usage
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cache=
|
||||||
|
if test "$1" = "--cache" ; then
|
||||||
|
cache=$2
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$1" = "--find-supplements" -a -n "$cache" ; then
|
||||||
|
if ! test -e "$cache"; then
|
||||||
|
get_kernel_dir
|
||||||
|
echo "Using $kernel" >&2
|
||||||
|
find "$kernel" -name '*.ko' -type f | while read ko; do
|
||||||
|
/sbin/modinfo -F firmware "$ko" | sed -e "s@\$@ $ko@"
|
||||||
|
done > $cache
|
||||||
|
fi
|
||||||
|
hits=$(while read fw ; do
|
||||||
|
sed -n -e "s@^${fw#$RPM_BUILD_ROOT/lib/firmware/} @@p" < "$cache"
|
||||||
|
done | sort)
|
||||||
|
if test -n "$hits"; then
|
||||||
|
echo "$hits" | RPMBUILD_SPECFILE=/dev/null /usr/lib/rpm/find-supplements.ksyms | \
|
||||||
|
sed 's/^modalias(kernel-[^:]*:/modalias(/' # strip the kernel-$flavor: prefix
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
trap 'rm -rf "$tmp"' EXIT
|
trap 'rm -rf "$tmp"' EXIT
|
||||||
tmp=$(mktemp -d)
|
tmp=$(mktemp -d)
|
||||||
|
|
||||||
@ -72,7 +97,7 @@ case "$1" in
|
|||||||
echo "$ko"
|
echo "$ko"
|
||||||
fi
|
fi
|
||||||
done | sort | \
|
done | sort | \
|
||||||
RPMBUILD_SPECFILE=/dev/null /usr/lib/rpm/find-supplements.ksyms | \
|
RPMBUILD_SPECFILE=/dev/null /usr/lib/rpm/find-supplements.ksyms dummy-package-please-ignore | \
|
||||||
sed 's/^modalias(kernel-[^:]*:/modalias(/' # strip the kernel-$flavor: prefix
|
sed 's/^modalias(kernel-[^:]*:/modalias(/' # strip the kernel-$flavor: prefix
|
||||||
;;
|
;;
|
||||||
--kill-duplicates)
|
--kill-duplicates)
|
||||||
|
3
iwlwifi-4965-1.ucode
Normal file
3
iwlwifi-4965-1.ucode
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:389283cf2aa7ba1c0ba86c59d342ff84b45e5ff58105dc91167d6592aabeedca
|
||||||
|
size 187608
|
@ -1,3 +1,22 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 25 18:04:35 CEST 2011 - mls@suse.de
|
||||||
|
|
||||||
|
- fix supplements generation with rpm-4.9
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 12 14:57:20 CEST 2011 - dmueller@suse.de
|
||||||
|
|
||||||
|
- add provides/obsoletes for ath3k-firmware
|
||||||
|
- Update to 20110731:
|
||||||
|
* iwlwifi-6000g2a-5.ucode: Updated to v17.168.5.3
|
||||||
|
* ath6kl - Atheros support for AR6003 WiFi-Bluetooth combo module
|
||||||
|
* drxk - Micronas DRX-K demodulator driver
|
||||||
|
* ene-ub6250 -- ENE UB6250 SD card reader driver
|
||||||
|
- update qlogic firmware to 5.06.00 (bnc#702696)
|
||||||
|
- add iwlwifi-4965-1.ucode (was additionally in iwl4965-ucode
|
||||||
|
package before)
|
||||||
|
- Add latest firmware (1.3.10.0) for cxgb4 from Chelsio git (bnc#711432)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Aug 9 10:48:15 UTC 2011 - mmarek@suse.cz
|
Tue Aug 9 10:48:15 UTC 2011 - mmarek@suse.cz
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
Name: kernel-firmware
|
Name: kernel-firmware
|
||||||
BuildRequires: fdupes kernel-default
|
BuildRequires: fdupes kernel-default
|
||||||
Version: 20110709
|
Version: 20110731
|
||||||
Release: 7
|
Release: 7
|
||||||
Summary: Linux kernel firmware files
|
Summary: Linux kernel firmware files
|
||||||
License: Distributable in unmodified form; GPL v2 only; GPL v2 or later; X11/MIT
|
License: Distributable in unmodified form; GPL v2 only; GPL v2 or later; X11/MIT
|
||||||
@ -27,7 +27,12 @@ Group: System/Kernel
|
|||||||
Url: ftp://ftp.kernel.org/pub/linux/kernel/people/dwmw2/firmware/
|
Url: ftp://ftp.kernel.org/pub/linux/kernel/people/dwmw2/firmware/
|
||||||
Source0: ftp://ftp.kernel.org/pub/linux/kernel/people/dwmw2/firmware/linux-firmware-%{version}.tar.bz2
|
Source0: ftp://ftp.kernel.org/pub/linux/kernel/people/dwmw2/firmware/linux-firmware-%{version}.tar.bz2
|
||||||
Source1: firmware.sh
|
Source1: firmware.sh
|
||||||
|
Source2: qlogic.tar.bz2
|
||||||
|
Source3: iwlwifi-4965-1.ucode
|
||||||
|
Source4: t4fw.bin
|
||||||
%define __find_supplements bash %_sourcedir/firmware.sh --find-supplements
|
%define __find_supplements bash %_sourcedir/firmware.sh --find-supplements
|
||||||
|
%define __ksyms_supplements bash %_sourcedir/firmware.sh --cache %{_builddir}/%{?buildsubdir}/find_supplements.cache --find-supplements
|
||||||
|
%define __ksyms_path ^/lib/firmware
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Provides: qlogic-firmware
|
Provides: qlogic-firmware
|
||||||
@ -56,7 +61,8 @@ Provides: iwl6050-ucode
|
|||||||
Obsoletes: iwl6050-ucode
|
Obsoletes: iwl6050-ucode
|
||||||
Provides: iwl6000g2-ucode
|
Provides: iwl6000g2-ucode
|
||||||
Obsoletes: iwl6000g2-ucode
|
Obsoletes: iwl6000g2-ucode
|
||||||
AutoReq: off
|
Provides: ath3k-firmware
|
||||||
|
Obsoletes: ath3k-firmware
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains the firmware for in-kernel drivers that was
|
This package contains the firmware for in-kernel drivers that was
|
||||||
@ -66,7 +72,9 @@ previously included in the kernel. It is shared by all kernels >=
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n linux-firmware-%version
|
%setup -q -n linux-firmware-%version -a 2
|
||||||
|
cp -v %{S:3} iwlwifi-4965-1.ucode
|
||||||
|
cp -v %{S:4} cxgb4/t4fw.bin
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# nothing to do
|
# nothing to do
|
||||||
@ -77,6 +85,7 @@ cp -avf * %{buildroot}/lib/firmware
|
|||||||
rm -f %{buildroot}/lib/firmware/WHENCE
|
rm -f %{buildroot}/lib/firmware/WHENCE
|
||||||
bash %_sourcedir/firmware.sh --kill-duplicates %buildroot/lib/firmware/
|
bash %_sourcedir/firmware.sh --kill-duplicates %buildroot/lib/firmware/
|
||||||
%fdupes %{buildroot}
|
%fdupes %{buildroot}
|
||||||
|
rm -f find_supplements.cache
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:f1b61c5ef9b9bd34eff2296dc40a4732939e687ef80f3d0e749f58e4a1990134
|
|
||||||
size 15267126
|
|
3
linux-firmware-20110731.tar.bz2
Normal file
3
linux-firmware-20110731.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f7e122642b99727db63ec6cf2fb64037e7e49a2e5db59a62cdba444a273905d3
|
||||||
|
size 15251521
|
3
qlogic.tar.bz2
Normal file
3
qlogic.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:53c628b99e43ee69384dab2bb3e60ac6b7ba41f52b22dded9ebfe6cc2b0db863
|
||||||
|
size 416209
|
Loading…
Reference in New Issue
Block a user