2009-05-05 04:38:08 +02:00
|
|
|
#
|
2011-02-25 10:27:16 +01:00
|
|
|
# spec file for package kernel-firmware
|
2009-05-05 04:38:08 +02:00
|
|
|
#
|
2018-01-04 16:21:48 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2009-05-05 04:38:08 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2012-03-09 23:56:44 +01:00
|
|
|
|
2016-01-12 08:41:18 +01:00
|
|
|
%define __ksyms_path ^/lib/firmware
|
2018-04-03 15:23:13 +02:00
|
|
|
%define version_unconverted 20180402
|
2009-05-05 04:38:08 +02:00
|
|
|
Name: kernel-firmware
|
2018-04-03 15:23:13 +02:00
|
|
|
Version: 20180402
|
2011-12-15 14:58:12 +01:00
|
|
|
Release: 0
|
2009-10-03 03:21:11 +02:00
|
|
|
Summary: Linux kernel firmware files
|
2018-03-14 12:44:18 +01:00
|
|
|
License: SUSE-Firmware AND GPL-2.0-only AND GPL-2.0-or-later AND MIT
|
2009-05-05 04:38:08 +02:00
|
|
|
Group: System/Kernel
|
2018-04-14 11:20:55 +02:00
|
|
|
Url: https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/
|
2017-06-02 10:35:30 +02:00
|
|
|
# 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
|
2017-10-11 17:43:07 +02:00
|
|
|
# git archive --format=tar --prefix=kernel-firmware-$version/ -v master ./ | xz -9 -M 4G --check=crc32 -T 4 > /tmp/kernel-firmware-$version.tar.xz
|
2017-06-02 10:35:30 +02:00
|
|
|
#
|
2016-04-04 11:11:27 +02:00
|
|
|
Source0: kernel-firmware-%{version}.tar.xz
|
2014-09-09 11:04:11 +02:00
|
|
|
# ast_dp501_fw.bin generated from header file of xf86-video-ast: MIT/X11 License
|
|
|
|
Source2: ast_dp501_fw.bin
|
2017-06-02 10:35:30 +02:00
|
|
|
Source8: ql2600_fw.bin
|
|
|
|
Source9: ql2700_fw.bin
|
|
|
|
Source10: ql8300_fw.bin
|
2017-04-05 18:23:02 +02:00
|
|
|
Source99: %{name}-rpmlintrc
|
2018-01-04 16:21:48 +01:00
|
|
|
# CVE-2017-5715
|
|
|
|
Source200: microcode_amd_fam17h.bin
|
2016-01-12 08:41:18 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: suse-module-tools
|
2015-12-15 17:32:39 +01:00
|
|
|
Requires(post): coreutils
|
|
|
|
Requires(postun): coreutils
|
2016-10-17 17:24:29 +02:00
|
|
|
Provides: bcm43xx-firmware:/lib/firmware/brcm/brcmfmac43430-sdio.bin
|
2009-10-08 18:05:19 +02:00
|
|
|
Provides: qlogic-firmware
|
2009-05-05 04:38:08 +02:00
|
|
|
Obsoletes: qlogic-firmware
|
2009-10-08 18:05:19 +02:00
|
|
|
Provides: cxgb3-firmware
|
2009-05-05 04:38:08 +02:00
|
|
|
Obsoletes: cxgb3-firmware
|
2009-10-08 18:05:19 +02:00
|
|
|
Provides: ralink-firmware
|
2009-10-03 03:21:11 +02:00
|
|
|
Obsoletes: ralink-firmware
|
2009-10-12 16:59:18 +02:00
|
|
|
Provides: iwl1000-ucode
|
|
|
|
Obsoletes: iwl1000-ucode
|
2009-10-08 18:05:19 +02:00
|
|
|
Provides: iwl3945-ucode
|
2009-10-03 03:21:11 +02:00
|
|
|
Obsoletes: iwl3945-ucode
|
2009-10-08 18:05:19 +02:00
|
|
|
Provides: iwl4965-ucode
|
2009-10-03 03:21:11 +02:00
|
|
|
Obsoletes: iwl4965-ucode
|
2009-10-08 18:05:19 +02:00
|
|
|
Provides: iwl5000-ucode
|
2009-10-03 03:21:11 +02:00
|
|
|
Obsoletes: iwl5000-ucode
|
2009-10-08 18:05:19 +02:00
|
|
|
Provides: iwl5150-ucode
|
2009-10-03 03:21:11 +02:00
|
|
|
Obsoletes: iwl5150-ucode
|
2011-08-04 16:45:34 +02:00
|
|
|
Provides: iwl100-ucode
|
|
|
|
Obsoletes: iwl100-ucode
|
|
|
|
Provides: iwl6000-ucode
|
2011-08-07 19:05:49 +02:00
|
|
|
Obsoletes: iwl6000-ucode
|
2011-08-04 16:45:34 +02:00
|
|
|
Provides: iwl6050-ucode
|
2011-08-07 19:05:49 +02:00
|
|
|
Obsoletes: iwl6050-ucode
|
2011-08-04 16:45:34 +02:00
|
|
|
Provides: iwl6000g2-ucode
|
2011-08-07 19:05:49 +02:00
|
|
|
Obsoletes: iwl6000g2-ucode
|
2011-08-13 01:11:16 +02:00
|
|
|
Provides: ath3k-firmware
|
|
|
|
Obsoletes: ath3k-firmware
|
2017-06-02 10:35:30 +02:00
|
|
|
Provides: compat-wireless-firmware = 4.4
|
|
|
|
Obsoletes: compat-wireless-firmware < 4.4
|
2016-01-12 08:41:18 +01:00
|
|
|
BuildArch: noarch
|
2009-05-05 04:38:08 +02:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2013-07-25 01:43:59 +02:00
|
|
|
%package -n ucode-amd
|
|
|
|
Summary: Microcode updates for AMD CPUs
|
|
|
|
Group: System/Kernel
|
2015-12-15 17:32:39 +01:00
|
|
|
Requires(post): coreutils
|
|
|
|
Requires(postun): coreutils
|
2018-03-23 08:16:34 +01:00
|
|
|
# new style (after 3.12 kernel somewhen)
|
2018-04-14 11:20:55 +02:00
|
|
|
Supplements: modalias(cpu:type%%3Ax86*ven0002*)
|
2018-03-23 10:07:56 +01:00
|
|
|
# old style (before 3.16 kernel)
|
|
|
|
Supplements: modalias(x86cpu:vendor%%3A0002%%3Afamily%%3A*%%3Amodel%%3A*%%3Afeature%%3A*)
|
2013-07-25 01:43:59 +02:00
|
|
|
|
|
|
|
%description -n ucode-amd
|
|
|
|
This package contains the microcode files used by AMD CPUs.
|
2009-05-05 04:38:08 +02:00
|
|
|
|
|
|
|
%prep
|
2016-04-04 11:11:27 +02:00
|
|
|
%setup -q
|
2017-06-23 14:50:57 +02:00
|
|
|
cp %{SOURCE2} %{SOURCE8} %{SOURCE9} %{SOURCE10} .
|
2017-11-30 15:48:41 +01:00
|
|
|
# change ./check_whence.py to be a python3 program
|
2018-01-04 16:43:04 +01:00
|
|
|
sed -i "s|%{_bindir}/python$|%{_bindir}/python3|" ./check_whence.py
|
2009-05-05 04:38:08 +02:00
|
|
|
|
2010-04-23 16:12:20 +02:00
|
|
|
%build
|
|
|
|
# nothing to do
|
|
|
|
|
2009-05-05 04:38:08 +02:00
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}/lib/firmware
|
|
|
|
cp -avf * %{buildroot}/lib/firmware
|
|
|
|
rm -f %{buildroot}/lib/firmware/WHENCE
|
2018-01-04 16:21:48 +01:00
|
|
|
# CVE-2017-5715 fix
|
|
|
|
cp %{SOURCE200} %{buildroot}/lib/firmware/amd-ucode/
|
2009-10-03 03:21:11 +02:00
|
|
|
%fdupes %{buildroot}
|
2013-07-25 01:43:59 +02:00
|
|
|
# In alsa-firmware
|
|
|
|
rm -f %{buildroot}/lib/firmware/ctefx.bin
|
|
|
|
rm -f %{buildroot}/lib/firmware/ctspeq.bin
|
|
|
|
# Devel files
|
2013-07-19 15:25:39 +02:00
|
|
|
rm -rf %{buildroot}/lib/firmware/carl9170fw
|
2017-06-02 10:35:30 +02:00
|
|
|
# Devel files
|
|
|
|
rm -f %{buildroot}/lib/firmware/isci/{Makefile,README}
|
|
|
|
rm -f %{buildroot}/lib/firmware/isci/*.[ch]
|
2009-05-05 04:38:08 +02:00
|
|
|
|
2014-09-03 14:27:09 +02:00
|
|
|
%post
|
|
|
|
%{?regenerate_initrd_post}
|
|
|
|
|
2013-12-11 12:52:20 +01:00
|
|
|
%post -n ucode-amd
|
2014-09-03 14:27:09 +02:00
|
|
|
%{?regenerate_initrd_post}
|
|
|
|
|
2015-12-15 17:32:39 +01:00
|
|
|
%postun
|
|
|
|
%{?regenerate_initrd_post}
|
|
|
|
|
|
|
|
%postun -n ucode-amd
|
|
|
|
%{?regenerate_initrd_post}
|
|
|
|
|
2014-09-03 14:27:09 +02:00
|
|
|
%posttrans
|
|
|
|
%{?regenerate_initrd_posttrans}
|
|
|
|
|
|
|
|
%posttrans -n ucode-amd
|
|
|
|
%{?regenerate_initrd_posttrans}
|
2013-12-11 12:52:20 +01:00
|
|
|
|
2009-05-05 04:38:08 +02:00
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
2018-02-12 10:58:15 +01:00
|
|
|
%doc WHENCE README
|
|
|
|
%license GPL-2 GPL-3 LICEN[CS]E.*
|
2015-03-23 20:28:41 +01:00
|
|
|
%exclude /lib/firmware/amd-ucode
|
|
|
|
%exclude /lib/firmware/LICENSE.amd-ucode
|
2009-05-05 04:38:08 +02:00
|
|
|
/lib/firmware/*
|
|
|
|
|
2013-07-25 01:43:59 +02:00
|
|
|
%files -n ucode-amd
|
|
|
|
%defattr(0644,root,root,0755)
|
2015-03-23 20:28:41 +01:00
|
|
|
/lib/firmware/amd-ucode
|
|
|
|
/lib/firmware/LICENSE.amd-ucode
|
2013-07-25 01:43:59 +02:00
|
|
|
|
2009-05-05 04:38:08 +02:00
|
|
|
%changelog
|