forked from pool/kernel-firmware
Takashi Iwai
4dc2d9d9e6
- Cleanup spec file to reduce superfluous lines (bsc#1041354). - Remove the superfluous isci/* devel sources - Sync changelogs with SLE (bsc#1041354) - Update qlogic qla2xxx firmware to 08.04.00 (bsc#993846) - Exclude i586 and s390 builds on OBS as well - Update to version 20170530 (bsc#1039310): * Update Intel OPA hfi1 firmware (fate#319251) - Remove hfi1_platform.dat manually (fate#321476 and 321477) - Update to version 20170404 (fate#321702): - Update to version 20170113 (FATE#321353): - Update to version 20161130 (bsc#1010690): - Update qlogic qed/qede - update FW to version 8.10.5.0 (bsc#993873). - Update Chelsio cxgb4 firmware to version 1.15.37.0 (bsc#975328) - Update to version 20160516git / commit 80d463be829a (fate#320305). - Intel SKL audio update - rt2800usb / rt2800pci update - amdgpu update - Obsolete the SP1 compat-wireless-firmware package (bsc#975894). - Update to version 20160503 : - Update to version 20160421 (fate#fate#320305): - Update to version 20160330 (fate#fate#320305): - Update to version 20160112git (commit 40e9ae8) (fate#320305): - cxgb4: update firmware to revision 1.14.4.0 for T4 and T5 (bsc#945218) - Replaced cxgb4-update-firmware-to-revision-1.13.32.0-for-T4-a.patch OBS-URL: https://build.opensuse.org/request/show/500382 OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-firmware?expand=0&rev=162
153 lines
4.7 KiB
RPMSpec
153 lines
4.7 KiB
RPMSpec
#
|
|
# spec file for package kernel-firmware
|
|
#
|
|
# Copyright (c) 2017 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 __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
|
|
%define version_unconverted 20170530
|
|
|
|
Name: kernel-firmware
|
|
Version: 20170530
|
|
Release: 0
|
|
Summary: Linux kernel firmware files
|
|
License: SUSE-Firmware and GPL-2.0 and GPL-2.0+ and MIT
|
|
Group: System/Kernel
|
|
Url: https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/
|
|
# Created with umask 022; cd /_tmp
|
|
# After git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
|
|
# cd linux-firmware
|
|
# git archive --format=tar --prefix=linux-firmware-$version/ -v master ./ | xz -9 -M 4G --check=crc32 -T 4 > /tmp/linux-firmware-$version.tar.xz
|
|
#
|
|
Source0: kernel-firmware-%{version}.tar.xz
|
|
Source1: firmware.sh
|
|
# ast_dp501_fw.bin generated from header file of xf86-video-ast: MIT/X11 License
|
|
Source2: ast_dp501_fw.bin
|
|
Source8: ql2600_fw.bin
|
|
Source9: ql2700_fw.bin
|
|
Source10: ql8300_fw.bin
|
|
Source99: %{name}-rpmlintrc
|
|
BuildRequires: fdupes
|
|
BuildRequires: kernel-default
|
|
BuildRequires: suse-module-tools
|
|
Requires(post): coreutils
|
|
Requires(postun): coreutils
|
|
Provides: bcm43xx-firmware:/lib/firmware/brcm/brcmfmac43430-sdio.bin
|
|
Provides: qlogic-firmware
|
|
Obsoletes: qlogic-firmware
|
|
Provides: cxgb3-firmware
|
|
Obsoletes: cxgb3-firmware
|
|
Provides: ralink-firmware
|
|
Obsoletes: ralink-firmware
|
|
Provides: iwl1000-ucode
|
|
Obsoletes: iwl1000-ucode
|
|
Provides: iwl3945-ucode
|
|
Obsoletes: iwl3945-ucode
|
|
Provides: iwl4965-ucode
|
|
Obsoletes: iwl4965-ucode
|
|
Provides: iwl5000-ucode
|
|
Obsoletes: iwl5000-ucode
|
|
Provides: iwl5150-ucode
|
|
Obsoletes: iwl5150-ucode
|
|
Provides: iwl100-ucode
|
|
Obsoletes: iwl100-ucode
|
|
Provides: iwl1000-ucode
|
|
Obsoletes: iwl1000-ucode
|
|
Provides: iwl6000-ucode
|
|
Obsoletes: iwl6000-ucode
|
|
Provides: iwl6050-ucode
|
|
Obsoletes: iwl6050-ucode
|
|
Provides: iwl6000g2-ucode
|
|
Obsoletes: iwl6000g2-ucode
|
|
Provides: ath3k-firmware
|
|
Obsoletes: ath3k-firmware
|
|
Provides: compat-wireless-firmware = 4.4
|
|
Obsoletes: compat-wireless-firmware < 4.4
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
ExcludeArch: %ix86 s390
|
|
|
|
%description
|
|
This package contains the firmware for in-kernel drivers that was
|
|
previously included in the kernel. It is shared by all kernels >=
|
|
2.6.27-rc1.
|
|
|
|
%package -n ucode-amd
|
|
Summary: Microcode updates for AMD CPUs
|
|
Group: System/Kernel
|
|
Requires(post): coreutils
|
|
Requires(postun): coreutils
|
|
Supplements: modalias(x86cpu:vendor%%3A0002%%3Afamily%%3A*%%3Amodel%%3A*%%3Afeature%%3A*)
|
|
|
|
%description -n ucode-amd
|
|
This package contains the microcode files used by AMD CPUs.
|
|
|
|
%prep
|
|
%setup -q
|
|
cp %{S:2} %{S:8} %{S:9} %{S:10} .
|
|
|
|
%build
|
|
# nothing to do
|
|
|
|
%install
|
|
mkdir -p %{buildroot}/lib/firmware
|
|
cp -avf * %{buildroot}/lib/firmware
|
|
rm -f %{buildroot}/lib/firmware/WHENCE
|
|
bash %{_sourcedir}/firmware.sh --kill-duplicates %{buildroot}/lib/firmware/
|
|
%fdupes %{buildroot}
|
|
rm -f find_supplements.cache
|
|
# In alsa-firmware
|
|
rm -f %{buildroot}/lib/firmware/ctefx.bin
|
|
rm -f %{buildroot}/lib/firmware/ctspeq.bin
|
|
# Devel files
|
|
rm -rf %{buildroot}/lib/firmware/carl9170fw
|
|
# Devel files
|
|
rm -f %{buildroot}/lib/firmware/isci/{Makefile,README}
|
|
rm -f %{buildroot}/lib/firmware/isci/*.[ch]
|
|
|
|
%post
|
|
%{?regenerate_initrd_post}
|
|
|
|
%post -n ucode-amd
|
|
%{?regenerate_initrd_post}
|
|
|
|
%postun
|
|
%{?regenerate_initrd_post}
|
|
|
|
%postun -n ucode-amd
|
|
%{?regenerate_initrd_post}
|
|
|
|
%posttrans
|
|
%{?regenerate_initrd_posttrans}
|
|
|
|
%posttrans -n ucode-amd
|
|
%{?regenerate_initrd_posttrans}
|
|
|
|
%files
|
|
%defattr(0644,root,root,0755)
|
|
%doc WHENCE README GPL-2 GPL-3 LICEN[CS]E.*
|
|
%exclude /lib/firmware/amd-ucode
|
|
%exclude /lib/firmware/LICENSE.amd-ucode
|
|
/lib/firmware/*
|
|
|
|
%files -n ucode-amd
|
|
%defattr(0644,root,root,0755)
|
|
/lib/firmware/amd-ucode
|
|
/lib/firmware/LICENSE.amd-ucode
|
|
|
|
%changelog
|