2009-05-05 02:38:08 +00:00
|
|
|
#
|
2011-02-25 09:27:16 +00:00
|
|
|
# spec file for package kernel-firmware
|
2009-05-05 02:38:08 +00:00
|
|
|
#
|
2015-03-23 19:28:41 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2009-05-05 02:38:08 +00: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 22:56:44 +00:00
|
|
|
|
2009-05-05 02:38:08 +00:00
|
|
|
Name: kernel-firmware
|
2011-12-15 13:58:12 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: kernel-default
|
2014-09-03 12:27:09 +00:00
|
|
|
BuildRequires: suse-module-tools
|
2015-07-15 11:02:19 +00:00
|
|
|
Version: 20150715git
|
2011-12-15 13:58:12 +00:00
|
|
|
Release: 0
|
2009-10-03 01:21:11 +00:00
|
|
|
Summary: Linux kernel firmware files
|
2013-02-16 17:25:48 +00:00
|
|
|
License: SUSE-Firmware and GPL-2.0 and GPL-2.0+ and MIT
|
2009-05-05 02:38:08 +00:00
|
|
|
Group: System/Kernel
|
2015-02-10 10:59:09 +00:00
|
|
|
Url: https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/
|
2012-06-05 18:03:23 +00:00
|
|
|
# Created with git archive | bzip2
|
2014-09-03 12:27:09 +00:00
|
|
|
Source0: linux-firmware-%{version}.tar.xz
|
2010-05-14 20:34:09 +00:00
|
|
|
Source1: firmware.sh
|
2014-09-09 09:04:11 +00:00
|
|
|
# ast_dp501_fw.bin generated from header file of xf86-video-ast: MIT/X11 License
|
|
|
|
Source2: ast_dp501_fw.bin
|
2010-05-14 20:34:09 +00:00
|
|
|
%define __find_supplements bash %_sourcedir/firmware.sh --find-supplements
|
2012-06-05 18:03:23 +00:00
|
|
|
|
2011-08-25 16:04:51 +00:00
|
|
|
%define __ksyms_supplements bash %_sourcedir/firmware.sh --cache %{_builddir}/%{?buildsubdir}/find_supplements.cache --find-supplements
|
|
|
|
%define __ksyms_path ^/lib/firmware
|
2009-05-05 02:38:08 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2014-12-15 10:37:20 +00:00
|
|
|
# We make use of mkdir and touch during pre
|
|
|
|
Requires(pre): coreutils
|
2009-10-08 16:05:19 +00:00
|
|
|
Provides: qlogic-firmware
|
2009-05-05 02:38:08 +00:00
|
|
|
Obsoletes: qlogic-firmware
|
2009-10-08 16:05:19 +00:00
|
|
|
Provides: cxgb3-firmware
|
2009-05-05 02:38:08 +00:00
|
|
|
Obsoletes: cxgb3-firmware
|
2009-10-08 16:05:19 +00:00
|
|
|
Provides: ralink-firmware
|
2009-10-03 01:21:11 +00:00
|
|
|
Obsoletes: ralink-firmware
|
2009-10-12 14:59:18 +00:00
|
|
|
Provides: iwl1000-ucode
|
|
|
|
Obsoletes: iwl1000-ucode
|
2009-10-08 16:05:19 +00:00
|
|
|
Provides: iwl3945-ucode
|
2009-10-03 01:21:11 +00:00
|
|
|
Obsoletes: iwl3945-ucode
|
2009-10-08 16:05:19 +00:00
|
|
|
Provides: iwl4965-ucode
|
2009-10-03 01:21:11 +00:00
|
|
|
Obsoletes: iwl4965-ucode
|
2009-10-08 16:05:19 +00:00
|
|
|
Provides: iwl5000-ucode
|
2009-10-03 01:21:11 +00:00
|
|
|
Obsoletes: iwl5000-ucode
|
2009-10-08 16:05:19 +00:00
|
|
|
Provides: iwl5150-ucode
|
2009-10-03 01:21:11 +00:00
|
|
|
Obsoletes: iwl5150-ucode
|
2011-08-04 14:45:34 +00:00
|
|
|
Provides: iwl100-ucode
|
|
|
|
Obsoletes: iwl100-ucode
|
|
|
|
Provides: iwl1000-ucode
|
2011-08-07 17:05:49 +00:00
|
|
|
Obsoletes: iwl1000-ucode
|
2011-08-04 14:45:34 +00:00
|
|
|
Provides: iwl6000-ucode
|
2011-08-07 17:05:49 +00:00
|
|
|
Obsoletes: iwl6000-ucode
|
2011-08-04 14:45:34 +00:00
|
|
|
Provides: iwl6050-ucode
|
2011-08-07 17:05:49 +00:00
|
|
|
Obsoletes: iwl6050-ucode
|
2011-08-04 14:45:34 +00:00
|
|
|
Provides: iwl6000g2-ucode
|
2011-08-07 17:05:49 +00:00
|
|
|
Obsoletes: iwl6000g2-ucode
|
2011-08-12 23:11:16 +00:00
|
|
|
Provides: ath3k-firmware
|
|
|
|
Obsoletes: ath3k-firmware
|
2009-05-05 02:38:08 +00: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-24 23:43:59 +00:00
|
|
|
%package -n ucode-amd
|
2013-12-09 14:20:28 +00:00
|
|
|
Supplements: modalias(x86cpu:vendor%3A0002%3Afamily%3A*%3Amodel%3A*%3Afeature%3A*)
|
2013-07-24 23:43:59 +00:00
|
|
|
Summary: Microcode updates for AMD CPUs
|
|
|
|
Group: System/Kernel
|
|
|
|
|
|
|
|
%description -n ucode-amd
|
|
|
|
This package contains the microcode files used by AMD CPUs.
|
2009-05-05 02:38:08 +00:00
|
|
|
|
|
|
|
%prep
|
2014-09-03 12:27:09 +00:00
|
|
|
%setup -q -n linux-firmware-%version
|
2014-09-09 09:04:11 +00:00
|
|
|
cp %{S:2} .
|
2009-05-05 02:38:08 +00:00
|
|
|
|
2010-04-23 14:12:20 +00:00
|
|
|
%build
|
|
|
|
# nothing to do
|
|
|
|
|
2009-05-05 02:38:08 +00:00
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}/lib/firmware
|
|
|
|
cp -avf * %{buildroot}/lib/firmware
|
|
|
|
rm -f %{buildroot}/lib/firmware/WHENCE
|
2010-05-14 20:34:09 +00:00
|
|
|
bash %_sourcedir/firmware.sh --kill-duplicates %buildroot/lib/firmware/
|
2009-10-03 01:21:11 +00:00
|
|
|
%fdupes %{buildroot}
|
2011-08-25 16:04:51 +00:00
|
|
|
rm -f find_supplements.cache
|
2013-07-24 23:43:59 +00:00
|
|
|
# In alsa-firmware
|
|
|
|
rm -f %{buildroot}/lib/firmware/ctefx.bin
|
|
|
|
rm -f %{buildroot}/lib/firmware/ctspeq.bin
|
|
|
|
# Devel files
|
2013-07-19 13:25:39 +00:00
|
|
|
rm -rf %{buildroot}/lib/firmware/carl9170fw
|
2009-05-05 02:38:08 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2014-09-03 12:27:09 +00:00
|
|
|
%post
|
|
|
|
%{?regenerate_initrd_post}
|
|
|
|
|
2013-12-11 11:52:20 +00:00
|
|
|
%post -n ucode-amd
|
2014-09-03 12:27:09 +00:00
|
|
|
%{?regenerate_initrd_post}
|
|
|
|
|
|
|
|
%posttrans
|
|
|
|
%{?regenerate_initrd_posttrans}
|
|
|
|
|
|
|
|
%posttrans -n ucode-amd
|
|
|
|
%{?regenerate_initrd_posttrans}
|
2013-12-11 11:52:20 +00:00
|
|
|
|
2009-05-05 02:38:08 +00:00
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
2014-09-03 12:27:09 +00:00
|
|
|
%doc WHENCE README GPL-3 LICEN[CS]E.*
|
2015-03-23 19:28:41 +00:00
|
|
|
%exclude /lib/firmware/amd-ucode
|
|
|
|
%exclude /lib/firmware/LICENSE.amd-ucode
|
2009-05-05 02:38:08 +00:00
|
|
|
/lib/firmware/*
|
|
|
|
|
2013-07-24 23:43:59 +00:00
|
|
|
%files -n ucode-amd
|
|
|
|
%defattr(0644,root,root,0755)
|
2015-03-23 19:28:41 +00:00
|
|
|
/lib/firmware/amd-ucode
|
|
|
|
/lib/firmware/LICENSE.amd-ucode
|
2013-07-24 23:43:59 +00:00
|
|
|
|
2009-05-05 02:38:08 +00:00
|
|
|
%changelog
|