kernel-firmware/kernel-firmware.spec

146 lines
4.4 KiB
RPMSpec
Raw Normal View History

#
# 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 __ksyms_path ^/lib/firmware
Accepting request 546675 from home:pluskalm:branches:Kernel:HEAD - Update to version 20171125: * brcm: update firmware for bcm4358 * brcm: update firmware for bcm4356 * brcm: update firmware for bcm4354 * brcm: introduce firmware for bcm43430 revision 0 * brcm: update firmware for bcm4339 * Mellanox: Add new mlxsw_spectrum firmware 13.1530.152 * WHENCE: Add missing entry for mlxsw_spectrum firmware * WHENCE: Fix typo in entry for iwlwifi-8265-34.ucode * s2255drv: f2255usb: firmware version 1.2.8 * amdgpu: add new CP firmware for polaris chips * qed: Add firmware 8.33.1.0 * qcom: add venus firmware files for v4.2 * qcom: add firmware files for Adreno a530 * iwlwifi: add firmware version 34 for new 9000 series * linux-firmware: liquidio: update firmware to v1.7.0 * linux-firmware: intel: Update Geminilake audio firmware * iwlwifi: add firmware version 33 for new 9000 series * iwlwifi: add new firmware version 34 for 8000C and 8265 * iwlwifi: update firmwares for 3160, 3168, 7260, 7265 and 7265D * iwlwifi: update firmwares for 3160, 3168, 7265D, 8000C and 8265 * linux-firmware: DMC firmware for kabylake v1.04 * linux-firmware: update Marvell PCIe-USB8997 firmware image * linux-firmware: GuC firmware for kabylake v9.39 * linux-firmware: GuC firmware for Broxton v9.29 * linux-firmware: GuC firmware for Skylake v9.33 * linux-firmware/i915: Add Cannonlake DMC version 1.06 * linux-firmware/i915: Add Geminilake DMC version 1.04 * WHENCE: Add new qed firmware * WHENCE: Add new radeon firmware OBS-URL: https://build.opensuse.org/request/show/546675 OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-firmware?expand=0&rev=182
2017-11-30 12:55:35 +01:00
%define version_unconverted 20171125
Name: kernel-firmware
Accepting request 546675 from home:pluskalm:branches:Kernel:HEAD - Update to version 20171125: * brcm: update firmware for bcm4358 * brcm: update firmware for bcm4356 * brcm: update firmware for bcm4354 * brcm: introduce firmware for bcm43430 revision 0 * brcm: update firmware for bcm4339 * Mellanox: Add new mlxsw_spectrum firmware 13.1530.152 * WHENCE: Add missing entry for mlxsw_spectrum firmware * WHENCE: Fix typo in entry for iwlwifi-8265-34.ucode * s2255drv: f2255usb: firmware version 1.2.8 * amdgpu: add new CP firmware for polaris chips * qed: Add firmware 8.33.1.0 * qcom: add venus firmware files for v4.2 * qcom: add firmware files for Adreno a530 * iwlwifi: add firmware version 34 for new 9000 series * linux-firmware: liquidio: update firmware to v1.7.0 * linux-firmware: intel: Update Geminilake audio firmware * iwlwifi: add firmware version 33 for new 9000 series * iwlwifi: add new firmware version 34 for 8000C and 8265 * iwlwifi: update firmwares for 3160, 3168, 7260, 7265 and 7265D * iwlwifi: update firmwares for 3160, 3168, 7265D, 8000C and 8265 * linux-firmware: DMC firmware for kabylake v1.04 * linux-firmware: update Marvell PCIe-USB8997 firmware image * linux-firmware: GuC firmware for kabylake v9.39 * linux-firmware: GuC firmware for Broxton v9.29 * linux-firmware: GuC firmware for Skylake v9.33 * linux-firmware/i915: Add Cannonlake DMC version 1.06 * linux-firmware/i915: Add Geminilake DMC version 1.04 * WHENCE: Add new qed firmware * WHENCE: Add new radeon firmware OBS-URL: https://build.opensuse.org/request/show/546675 OBS-URL: https://build.opensuse.org/package/show/Kernel:HEAD/kernel-firmware?expand=0&rev=182
2017-11-30 12:55:35 +01:00
Version: 20171125
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=kernel-firmware-$version/ -v master ./ | xz -9 -M 4G --check=crc32 -T 4 > /tmp/kernel-firmware-$version.tar.xz
#
Source0: kernel-firmware-%{version}.tar.xz
# 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: 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: 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
%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 %{SOURCE2} %{SOURCE8} %{SOURCE9} %{SOURCE10} .
# change ./check_whence.py to be a python3 program
sed -i "s|/usr/bin/python$|/usr/bin/python3|" ./check_whence.py
%build
# nothing to do
%install
mkdir -p %{buildroot}/lib/firmware
cp -avf * %{buildroot}/lib/firmware
rm -f %{buildroot}/lib/firmware/WHENCE
%fdupes %{buildroot}
# 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