forked from HW42/qubes-linux-firmware
-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathlinux-firmware.spec.in
657 lines (587 loc) · 24.3 KB
/
linux-firmware.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
%global debug_package %{nil}
%global _firmwarepath /usr/lib/firmware
%define _binaries_in_noarch_packages_terminate_build 0
Name: linux-firmware
Version: @VERSION@
Release: @REL@%{?dist}
Summary: Firmware files used by the Linux kernel
# Automatically converted from old format: GPL+ and GPLv2+ and MIT and Redistributable, no modification permitted - review is highly recommended.
License: GPL-1.0-or-later AND GPL-2.0-or-later AND LicenseRef-Callaway-MIT AND LicenseRef-Callaway-Redistributable-no-modification-permitted
URL: http://www.kernel.org/
BuildArch: noarch
Epoch: 1
Source0: %{name}-%{version}.tar
BuildRequires: make
BuildRequires: git-core
BuildRequires: python3
# Not required but de-dupes FW so reduces size
BuildRequires: rdfind
Requires: linux-firmware-whence
Provides: kernel-firmware = %{version}
Obsoletes: kernel-firmware < %{version}
Conflicts: microcode_ctl < 2.1-0
%if 0%{?fedora} > 36
Recommends: amd-gpu-firmware
Recommends: intel-gpu-firmware
Recommends: nvidia-gpu-firmware
Recommends: amd-ucode-firmware
Recommends: cirrus-audio-firmware
Recommends: intel-audio-firmware
Recommends: atheros-firmware
Recommends: brcmfmac-firmware
Recommends: mt7xxx-firmware
Recommends: realtek-firmware
%else
Requires: amd-gpu-firmware
Requires: intel-gpu-firmware
Requires: nvidia-gpu-firmware
Requires: amd-ucode-firmware
Requires: cirrus-audio-firmware
Requires: intel-audio-firmware
Requires: atheros-firmware
Requires: brcmfmac-firmware
Requires: mt7xxx-firmware
Requires: realtek-firmware
%endif
%description
This package includes firmware files required for some devices to
operate.
%package whence
Summary: WHENCE License file
# Automatically converted from old format: GPL+ and GPLv2+ and MIT and Redistributable, no modification permitted - review is highly recommended.
License: GPL-1.0-or-later AND GPL-2.0-or-later AND LicenseRef-Callaway-MIT AND LicenseRef-Callaway-Redistributable-no-modification-permitted
%description whence
This package contains the WHENCE license file which documents the vendor license details.
# GPU firmwares
%package -n amd-gpu-firmware
Summary: Firmware for AMD GPUs
# Automatically converted from old format: Redistributable, no modification permitted - review is highly recommended.
License: LicenseRef-Callaway-Redistributable-no-modification-permitted
Requires: linux-firmware-whence
%description -n amd-gpu-firmware
Firmware for AMD amdgpu and radeon GPUs.
%package -n intel-gpu-firmware
Summary: Firmware for Intel GPUs
# Automatically converted from old format: Redistributable, no modification permitted - review is highly recommended.
License: LicenseRef-Callaway-Redistributable-no-modification-permitted
Requires: linux-firmware-whence
%description -n intel-gpu-firmware
Firmware for Intel GPUs including GuC (Graphics Microcontroller), HuC (HEVC/H.265
Microcontroller) and DMC (Display Microcontroller) firmware for Skylake and later
platforms.
%package -n nvidia-gpu-firmware
Summary: Firmware for NVIDIA GPUs
# Automatically converted from old format: Redistributable, no modification permitted - review is highly recommended.
License: LicenseRef-Callaway-Redistributable-no-modification-permitted
Requires: linux-firmware-whence
%description -n nvidia-gpu-firmware
Firmware for NVIDIA GPUs.
# Microcode updates
%package -n amd-ucode-firmware
Summary: Microcode updates for AMD CPUs
# Automatically converted from old format: Redistributable, no modification permitted - review is highly recommended.
License: LicenseRef-Callaway-Redistributable-no-modification-permitted
Requires: linux-firmware-whence
%description -n amd-ucode-firmware
Microcode updates for AMD CPUs, AMD SEV and AMD TEE.
# WiFi/Bluetooth firmwares
%package -n atheros-firmware
Summary: Firmware for Qualcomm Atheros WiFi/Bluetooth adapters
# Automatically converted from old format: Redistributable, no modification permitted - review is highly recommended.
License: LicenseRef-Callaway-Redistributable-no-modification-permitted
Requires: linux-firmware-whence
%description -n atheros-firmware
Firmware for Qualcomm Atheros ath6k/ath9k/ath10k/ath11k WiFi adapters.
%package -n brcmfmac-firmware
Summary: Firmware for Broadcom/Cypress brcmfmac WiFi/Bluetooth adapters
# Automatically converted from old format: Redistributable, no modification permitted - review is highly recommended.
License: LicenseRef-Callaway-Redistributable-no-modification-permitted
Requires: linux-firmware-whence
%description -n brcmfmac-firmware
Firmware for Broadcom/Cypress brcmfmac WiFi/Bluetooth adapters.
%package -n iwlegacy-firmware
Summary: Firmware for Intel(R) Wireless WiFi Link 3945(A)BG and 4965AGN adapters
# Automatically converted from old format: Redistributable, no modification permitted - review is highly recommended.
License: LicenseRef-Callaway-Redistributable-no-modification-permitted
Requires: linux-firmware-whence
Obsoletes: iwl3945-firmware < %{epoch}:%{version}-%{release}
Obsoletes: iwl4965-firmware < %{epoch}:%{version}-%{release}
Provides: iwl3945-firmware = %{epoch}:%{version}-%{release}
Provides: iwl4965-firmware = %{epoch}:%{version}-%{release}
%description -n iwlegacy-firmware
This package contains the firmware required by the iwlegacy driver
for Linux. This includes the 3945(A)BG and 4965AGN WiFi NICs. Usage
of the firmware is subject to the terms and conditions contained
inside the provided LICENSE file. Please read it carefully.
%package -n iwlwifi-dvm-firmware
Summary: DVM Firmware for Intel(R) Wireless WiFi adapters
# Automatically converted from old format: Redistributable, no modification permitted - review is highly recommended.
License: LicenseRef-Callaway-Redistributable-no-modification-permitted
Requires: linux-firmware-whence
Obsoletes: iwl100-firmware < %{epoch}:%{version}-%{release}
Obsoletes: iwl105-firmware < %{epoch}:%{version}-%{release}
Obsoletes: iwl135-firmware < %{epoch}:%{version}-%{release}
Obsoletes: iwl1000-firmware < %{epoch}:%{version}-%{release}
Obsoletes: iwl2000-firmware < %{epoch}:%{version}-%{release}
Obsoletes: iwl2030-firmware < %{epoch}:%{version}-%{release}
Obsoletes: iwl5000-firmware < %{epoch}:%{version}-%{release}
Obsoletes: iwl5150-firmware < %{epoch}:%{version}-%{release}
Obsoletes: iwl6000-firmware < %{epoch}:%{version}-%{release}
Obsoletes: iwl6000g2a-firmware < %{epoch}:%{version}-%{release}
Obsoletes: iwl6000g2b-firmware < %{epoch}:%{version}-%{release}
Obsoletes: iwl6050-firmware < %{epoch}:%{version}-%{release}
Provides: iwl100-firmware = %{epoch}:%{version}-%{release}
Provides: iwl105-firmware = %{epoch}:%{version}-%{release}
Provides: iwl135-firmware = %{epoch}:%{version}-%{release}
Provides: iwl1000-firmware = %{epoch}:%{version}-%{release}
Provides: iwl2000-firmware = %{epoch}:%{version}-%{release}
Provides: iwl2030-firmware = %{epoch}:%{version}-%{release}
Provides: iwl5000-firmware = %{epoch}:%{version}-%{release}
Provides: iwl5150-firmware = %{epoch}:%{version}-%{release}
Provides: iwl6000-firmware = %{epoch}:%{version}-%{release}
Provides: iwl6000g2a-firmware = %{epoch}:%{version}-%{release}
Provides: iwl6000g2b-firmware = %{epoch}:%{version}-%{release}
Provides: iwl6050-firmware = %{epoch}:%{version}-%{release}
%description -n iwlwifi-dvm-firmware
This package contains the firmware required by the iwlwifi driver
for Linux built with DVM firmware support (CONFIG_IWLDVM=y/m). Usage of
the firmware is subject to the terms and conditions contained inside the
provided LICENSE file. Please read it carefully.
%package -n iwlwifi-mvm-firmware
Summary: MVM Firmware for Intel(R) Wireless WiFi adapters
# Automatically converted from old format: Redistributable, no modification permitted - review is highly recommended.
License: LicenseRef-Callaway-Redistributable-no-modification-permitted
Requires: linux-firmware-whence
Obsoletes: iwl3160-firmware < %{epoch}:%{version}-%{release}
Obsoletes: iwl7260-firmware < %{epoch}:%{version}-%{release}
Obsoletes: iwlax2xx-firmware < %{epoch}:%{version}-%{release}
Provides: iwl3160-firmware = %{epoch}:%{version}-%{release}
Provides: iwl7260-firmware = %{epoch}:%{version}-%{release}
Provides: iwlax2xx-firmware = %{epoch}:%{version}-%{release}
%description -n iwlwifi-mvm-firmware
This package contains the firmware required by the iwlwifi driver
for Linux built with MVM firmware support (CONFIG_IWLMVM=y/m). Usage of
the firmware is subject to the terms and conditions contained inside the
provided LICENSE file. Please read it carefully.
%package -n libertas-firmware
Summary: Firmware for Marvell Libertas SD/USB WiFi Network Adapters
# Automatically converted from old format: Redistributable, no modification permitted - review is highly recommended.
License: LicenseRef-Callaway-Redistributable-no-modification-permitted
Requires: linux-firmware-whence
Obsoletes: libertas-sd8686-firmware < %{epoch}:%{version}-%{release}
Obsoletes: libertas-sd8787-firmware < %{epoch}:%{version}-%{release}
Obsoletes: libertas-usb8388-firmware < 2:%{version}-%{release}
Obsoletes: libertas-usb8388-olpc-firmware < %{epoch}:%{version}-%{release}
Provides: libertas-sd8686-firmware < %{epoch}:%{version}-%{release}
Provides: libertas-sd8787-firmware < %{epoch}:%{version}-%{release}
Provides: libertas-usb8388-firmware < 2:%{version}-%{release}
Provides: libertas-usb8388-olpc-firmware < %{epoch}:%{version}-%{release}
%description -n libertas-firmware
Firmware for the Marvell Libertas series of WiFi Network Adapters
Including the SD 8686/8787 and USB 8388/8388.
%package -n mt7xxx-firmware
Summary: Firmware for Mediatek 7600/7900 series WiFi/Bluetooth adapters
# Automatically converted from old format: Redistributable, no modification permitted - review is highly recommended.
License: LicenseRef-Callaway-Redistributable-no-modification-permitted
Requires: linux-firmware-whence
%description -n mt7xxx-firmware
Firmware for Mediatek 7600/7900 series WiFi/Bluetooth adapters
%package -n nxpwireless-firmware
Summary: Firmware for NXP WiFi/Bluetooth/UWB adapters
# Automatically converted from old format: Redistributable, no modification permitted - review is highly recommended.
License: LicenseRef-Callaway-Redistributable-no-modification-permitted
Requires: linux-firmware-whence
%description -n nxpwireless-firmware
Firmware for NXP WiFi/Bluetooth/UWB adapters.
%package -n realtek-firmware
Summary: Firmware for Realtek WiFi/Bluetooth adapters
# Automatically converted from old format: Redistributable, no modification permitted - review is highly recommended.
License: LicenseRef-Callaway-Redistributable-no-modification-permitted
Requires: linux-firmware-whence
%description -n realtek-firmware
Firmware for Realtek WiFi/Bluetooth adapters
%package -n tiwilink-firmware
Summary: Firmware for Texas Instruments WiFi/Bluetooth adapters
# Automatically converted from old format: Redistributable, no modification permitted - review is highly recommended.
License: LicenseRef-Callaway-Redistributable-no-modification-permitted
Requires: linux-firmware-whence
%description -n tiwilink-firmware
Firmware for Texas Instruments WiFi/Bluetooth adapters
# SMART NIC and network switch firmwares
%package -n liquidio-firmware
Summary: Firmware for Cavium LiquidIO Intelligent Server Adapter
# Automatically converted from old format: Redistributable, no modification permitted - review is highly recommended.
License: LicenseRef-Callaway-Redistributable-no-modification-permitted
Requires: linux-firmware-whence
%description -n liquidio-firmware
Firmware for Cavium LiquidIO Intelligent Server Adapter
%package -n mlxsw_spectrum-firmware
Summary: Firmware for Mellanox Spectrum 1/2/3 Switches
# Automatically converted from old format: Redistributable, no modification permitted - review is highly recommended.
License: LicenseRef-Callaway-Redistributable-no-modification-permitted
Requires: linux-firmware-whence
%description -n mlxsw_spectrum-firmware
Firmware for Mellanox Spectrumi series 1/2/3 ethernet switches.
%package -n mrvlprestera-firmware
Summary: Firmware for Marvell Prestera Switchdev/ASIC devices
# Automatically converted from old format: Redistributable, no modification permitted - review is highly recommended.
License: LicenseRef-Callaway-Redistributable-no-modification-permitted
Requires: linux-firmware-whence
%description -n mrvlprestera-firmware
Firmware for Marvell Prestera Switchdev/ASIC devices
%package -n netronome-firmware
Summary: Firmware for Netronome Smart NICs
# Automatically converted from old format: Redistributable, no modification permitted - review is highly recommended.
License: LicenseRef-Callaway-Redistributable-no-modification-permitted
Requires: linux-firmware-whence
%description -n netronome-firmware
Firmware for Netronome Smart NICs
%package -n qed-firmware
Summary: Firmware for Marvell FastLinQ adapters family
# Automatically converted from old format: Redistributable, no modification permitted - review is highly recommended.
License: LicenseRef-Callaway-Redistributable-no-modification-permitted
Requires: linux-firmware-whence
%description -n qed-firmware
Firmware for Marvell FastLinQ adapters family (QDE), this device
supports RoCE (RDMA over Converged Ethernet), iSCSI, iWARP, FCoE
and ethernet including SRIOV, DCB etc.
# Silicon Vendor specific
%package -n qcom-firmware
Summary: Firmware for Qualcomm SoCs
# Automatically converted from old format: Redistributable, no modification permitted - review is highly recommended.
License: LicenseRef-Callaway-Redistributable-no-modification-permitted
Requires: linux-firmware-whence
Requires: atheros-firmware = %{epoch}:%{version}-%{release}
%description -n qcom-firmware
Firmware for various compoents in Qualcomm SoCs including Adreno
GPUs, Venus video encode/decode, Audio DSP, Compute DSP, WWAN
modem, Sensor DSPs.
# Vision and ISP hardware
%package -n intel-vsc-firmware
Summary: Firmware files for Intel Visual Sensing Controller (IVSC)
# Automatically converted from old format: Redistributable, no modification permitted - review is highly recommended.
License: LicenseRef-Callaway-Redistributable-no-modification-permitted
Requires: linux-firmware-whence
%description -n intel-vsc-firmware
Firmware files for Intel Visual Sensing Controller (IVSC) for
Tiger Lake, Alder Lake and Raptor Lake SoCs and the IPU3/6 firmware.
# Sound codec hardware
%package -n cirrus-audio-firmware
Summary: Firmware for Cirrus audio amplifiers and codecs
# Automatically converted from old format: Redistributable, no modification permitted - review is highly recommended.
License: LicenseRef-Callaway-Redistributable-no-modification-permitted
Requires: linux-firmware-whence
%description -n cirrus-audio-firmware
Firmware for Cirrus audio amplifiers and codecs
%package -n intel-audio-firmware
Summary: Firmware for Intel audio DSP amplifiers and codecs
# Automatically converted from old format: Redistributable, no modification permitted - review is highly recommended.
License: LicenseRef-Callaway-Redistributable-no-modification-permitted
Requires: linux-firmware-whence
%description -n intel-audio-firmware
Firmware for Intel audio DSP amplifiers and codecs
# Random other hardware
%package -n dvb-firmware
Summary: Firmware for various DVB broadcast receivers
# Automatically converted from old format: Redistributable, no modification permitted - review is highly recommended.
License: LicenseRef-Callaway-Redistributable-no-modification-permitted
Requires: linux-firmware-whence
%description -n dvb-firmware
Firmware for various DVB broadcast receivers. These include the
Siano DTV devices, devices based on Conexant chipsets (cx18,
cx23885, cx23840, cx231xx), Xceive xc4000/xc5000, DiBcom dib0700,
Terratec H5 DRX-K, ITEtech IT9135 Ax and Bx, and av7110.
%prep
%autosetup -S git -p1
%build
%install
mkdir -p %{buildroot}/%{_firmwarepath}
mkdir -p %{buildroot}/%{_firmwarepath}/updates
%if 0%{?fedora} >= 34 || 0%{?rhel} >= 9
make DESTDIR=%{buildroot}/ FIRMWAREDIR=%{_firmwarepath} install-zst
%else
make DESTDIR=%{buildroot}/ FIRMWAREDIR=%{_firmwarepath} install
%endif
make DESTDIR=%{buildroot}/ FIRMWAREDIR=%{_firmwarepath} dedup
#Cleanup files we don't want to ship
pushd %{buildroot}/%{_firmwarepath}
# Remove firmware shipped in separate packages already
# Perhaps these should be built as subpackages of linux-firmware?
rm -rf ess korg sb16 yamaha
# Remove firmware for Creative CA0132 HD as it's in alsa-firmware
rm -f ctefx.bin* ctspeq.bin*
# Remove source files we don't need to install
rm -rf carl9170fw
rm -rf cis/{src,Makefile}
rm -f atusb/ChangeLog
rm -f av7110/{Boot.S,Makefile}
rm -f dsp56k/{bootstrap.asm,concat-bootstrap.pl,Makefile}
rm -f iscis/{*.c,*.h,README,Makefile}
rm -f keyspan_pda/{keyspan_pda.S,xircom_pgs.S,Makefile}
rm -f usbdux/*dux */*.asm
# No need to install old firmware versions where we also provide newer versions
# which are preferred and support the same (or more) hardware
rm -f libertas/sd8686_v8*
rm -f libertas/usb8388_v5.bin*
# Remove superfluous infra files
rm -f check_whence.py configure Makefile README
popd
# Create file list but exclude firmwares that we place in subpackages
FILEDIR=`pwd`
pushd %{buildroot}/%{_firmwarepath}
find . \! -type d > $FILEDIR/linux-firmware.files
find . -type d | sed -e '/^.$/d' > $FILEDIR/linux-firmware.dirs
popd
sed -i -e 's:^./::' linux-firmware.{files,dirs}
sed \
-i -e '/^a300_p/d' \
-i -e '/^amdgpu/d' \
-i -e '/^amdnpu/d' \
-i -e '/^amd/d' \
-i -e '/^amdtee/d' \
-i -e '/^amd-ucode/d' \
-i -e '/^ar3k/d' \
-i -e '/^ath6k/d' \
-i -e '/^ath9k_htc/d' \
-i -e '/^ath10k/d' \
-i -e '/^ath11k/d' \
-i -e '/^ath12k/d' \
-i -e '/^as102_data/d' \
-i -e '/^av7110/d' \
-i -e '/^brcm/d' \
-i -e '/^cirrus/d' \
-i -e '/^cmmb/d' \
-i -e '/^cypress/d' \
-i -e '/^dvb/d' \
-i -e '/^i915/d' \
-i -e '/^intel\/avs/d' \
-i -e '/^intel\/catpt/d' \
-i -e '/^intel\/dsp_fw/d' \
-i -e '/^intel\/fw_sst/d' \
-i -e '/^intel\/ipu/d' \
-i -e '/^intel\/ipu3/d' \
-i -e '/^intel\/irci_irci/d' \
-i -e '/^intel\/vsc/d' \
-i -e '/^isdbt/d' \
-i -e '/^iwlwifi/d' \
-i -e '/^nvidia\/a/d' \
-i -e '/^nvidia\/g/d' \
-i -e '/^nvidia\/tu/d' \
-i -e '/^lgs8g75/d' \
-i -e '/^libertas/d' \
-i -e '/^liquidio/d' \
-i -e '/^mellanox/d' \
-i -e '/^mediatek\/mt76/d' \
-i -e '/^mediatek\/mt79/d' \
-i -e '/^mediatek\/BT/d' \
-i -e '/^mediatek\/WIFI/d' \
-i -e '/^mrvl\/prestera/d' \
-i -e '/^mrvl\/sd8787/d' \
-i -e '/^mt76/d' \
-i -e '/^netronome/d' \
-i -e '/^nxp/d' \
-i -e '/^qca/d' \
-i -e '/^qcom/d' \
-i -e '/^qed/d' \
-i -e '/^radeon/d' \
-i -e '/^rtl_bt/d' \
-i -e '/^rtlwifi/d' \
-i -e '/^rtw88/d' \
-i -e '/^rtw89/d' \
-i -e '/^sms1xxx/d' \
-i -e '/^tdmb/d' \
-i -e '/^ti-connectivity/d' \
-i -e '/^v4l-cx2/d' \
linux-firmware.files
sed -i -e 's!^!/usr/lib/firmware/!' linux-firmware.{files,dirs}
sed -i -e 's/^/"/;s/$/"/' linux-firmware.files
sed -e 's/^/%%dir /' linux-firmware.dirs >> linux-firmware.files
%files -f linux-firmware.files
%dir %{_firmwarepath}
%license LICENCE.* LICENSE.* GPL*
%files whence
%license WHENCE
# GPU firmwares
%files -n amd-gpu-firmware
%license LICENSE.radeon LICENSE.amdgpu LICENSE.amdnpu
%{_firmwarepath}/amdgpu/
%{_firmwarepath}/amdnpu/
%{_firmwarepath}/radeon/
%files -n intel-gpu-firmware
%license LICENSE.i915
%{_firmwarepath}/i915/
%files -n nvidia-gpu-firmware
%license LICENCE.nvidia
%dir %{_firmwarepath}/nvidia/
%{_firmwarepath}/nvidia/a*/
%{_firmwarepath}/nvidia/g*/
%{_firmwarepath}/nvidia/tu*/
# Microcode updates
%files -n amd-ucode-firmware
%license LICENSE.amd-ucode
%{_firmwarepath}/amd/
%{_firmwarepath}/amdtee/
%{_firmwarepath}/amd-ucode/
# WiFi/Bluetooth firmwares
%files -n atheros-firmware
%license LICENCE.atheros_firmware
%license LICENSE.QualcommAtheros_ar3k
%license LICENSE.QualcommAtheros_ath10k
%license LICENCE.open-ath9k-htc-firmware
%license qca/NOTICE.txt
%{_firmwarepath}/ar3k/
%{_firmwarepath}/ath6k/
%{_firmwarepath}/ath9k_htc/
%{_firmwarepath}/ath10k/
%{_firmwarepath}/ath11k/
%{_firmwarepath}/ath12k/
%{_firmwarepath}/qca/
%files -n brcmfmac-firmware
%license LICENCE.broadcom_bcm43xx
%license LICENCE.cypress
%{_firmwarepath}/brcm/
%{_firmwarepath}/cypress/
%files -n iwlegacy-firmware
%license LICENCE.iwlwifi_firmware
%{_firmwarepath}/iwlwifi-3945-*.ucode*
%{_firmwarepath}/iwlwifi-4965-*.ucode*
%files -n iwlwifi-dvm-firmware
%license LICENCE.iwlwifi_firmware
%{_firmwarepath}/iwlwifi-100-*.ucode*
%{_firmwarepath}/iwlwifi-105-*.ucode*
%{_firmwarepath}/iwlwifi-135-*.ucode*
%{_firmwarepath}/iwlwifi-1000-*.ucode*
%{_firmwarepath}/iwlwifi-2000-*.ucode*
%{_firmwarepath}/iwlwifi-2030-*.ucode*
%{_firmwarepath}/iwlwifi-5000-*.ucode*
%{_firmwarepath}/iwlwifi-5150-*.ucode*
%{_firmwarepath}/iwlwifi-6000-*.ucode*
%{_firmwarepath}/iwlwifi-6000g2a-*.ucode*
%{_firmwarepath}/iwlwifi-6000g2b-*.ucode*
%{_firmwarepath}/iwlwifi-6050-*.ucode*
%files -n iwlwifi-mvm-firmware
%license LICENCE.iwlwifi_firmware
%{_firmwarepath}/iwlwifi-3160-*.ucode*
%{_firmwarepath}/iwlwifi-3168-*.ucode*
%{_firmwarepath}/iwlwifi-7260-*.ucode*
%{_firmwarepath}/iwlwifi-7265-*.ucode*
%{_firmwarepath}/iwlwifi-7265D-*.ucode*
%{_firmwarepath}/iwlwifi-8000C-*.ucode*
%{_firmwarepath}/iwlwifi-8265-*.ucode*
%{_firmwarepath}/iwlwifi-9000-*.ucode*
%{_firmwarepath}/iwlwifi-9260-*.ucode*
%{_firmwarepath}/iwlwifi-cc-a0-*.ucode*
%{_firmwarepath}/iwlwifi-gl-c0*
%{_firmwarepath}/iwlwifi-ma-b0*
%{_firmwarepath}/iwlwifi-Qu*.ucode*
%{_firmwarepath}/iwlwifi-ty-a0*
%{_firmwarepath}/iwlwifi-so-a0*
%{_firmwarepath}/iwlwifi-bz-b0*
%files -n libertas-firmware
%license LICENCE.Marvell LICENCE.OLPC
%dir %{_firmwarepath}/libertas
%dir %{_firmwarepath}/mrvl
%{_firmwarepath}/libertas/*
%{_firmwarepath}/mrvl/sd8787*
%files -n mt7xxx-firmware
%license LICENCE.mediatek
%license LICENCE.ralink_a_mediatek_company_firmware
%dir %{_firmwarepath}/mediatek
%{_firmwarepath}/mediatek/mt76*
%{_firmwarepath}/mediatek/mt79*
%{_firmwarepath}/mediatek/BT*
%{_firmwarepath}/mediatek/WIFI*
%{_firmwarepath}/mt76*
%files -n nxpwireless-firmware
%license LICENSE.nxp
%dir %{_firmwarepath}/nxp
%{_firmwarepath}/nxp/*
%files -n realtek-firmware
%license LICENCE.rtlwifi_firmware.txt
%{_firmwarepath}/rtl_bt/
%{_firmwarepath}/rtlwifi/
%{_firmwarepath}/rtw88/
%{_firmwarepath}/rtw89/
%files -n tiwilink-firmware
%license LICENCE.ti-connectivity
%dir %{_firmwarepath}/ti-connectivity/
%{_firmwarepath}/ti-connectivity/*
# SMART NIC and network switch firmwares
%files -n liquidio-firmware
%license LICENCE.cavium_liquidio
%dir %{_firmwarepath}/liquidio
%{_firmwarepath}/liquidio/*
%files -n mrvlprestera-firmware
%license LICENCE.Marvell
%dir %{_firmwarepath}/mrvl/prestera
%{_firmwarepath}/mrvl/prestera/*
%files -n mlxsw_spectrum-firmware
%dir %{_firmwarepath}/mellanox/
%{_firmwarepath}/mellanox/*
%files -n netronome-firmware
%license LICENCE.Netronome
%dir %{_firmwarepath}/netronome
%{_firmwarepath}/netronome/*
%files -n qed-firmware
%dir %{_firmwarepath}/qed
%{_firmwarepath}/qed/*
# Silicon Vendor specific
%files -n qcom-firmware
%license LICENSE.qcom LICENSE.qcom_yamato qcom/NOTICE.txt
%dir %{_firmwarepath}/qcom
%{_firmwarepath}/qcom/*
%{_firmwarepath}/a300_p*
# Vision and ISP hardware
%files -n intel-vsc-firmware
%license LICENSE.ivsc
%dir %{_firmwarepath}/intel/ipu/
%dir %{_firmwarepath}/intel/vsc/
%{_firmwarepath}/intel/ipu3-fw.bin*
%{_firmwarepath}/intel/irci_irci_ecr-master_20161208_0213_20170112_1500.bin*
%{_firmwarepath}/intel/ipu/*
%{_firmwarepath}/intel/vsc/*
# Sound codec hardware
%files -n cirrus-audio-firmware
%license LICENSE.cirrus
%dir %{_firmwarepath}/cirrus
%{_firmwarepath}/cirrus/*
%files -n intel-audio-firmware
%license LICENCE.adsp_sst LICENCE.IntcSST2
%dir %{_firmwarepath}/intel/
%dir %{_firmwarepath}/intel/avs/
%dir %{_firmwarepath}/intel/catpt/
%{_firmwarepath}/intel/avs/*
%{_firmwarepath}/intel/catpt/*
%{_firmwarepath}/intel/dsp_fw*
%{_firmwarepath}/intel/fw_sst*
# Random other hardware
%files -n dvb-firmware
%license LICENSE.dib0700 LICENCE.it913x LICENCE.siano
%license LICENCE.xc4000 LICENCE.xc5000 LICENCE.xc5000c
%dir %{_firmwarepath}/av7110/
%{_firmwarepath}/av7110/*
%{_firmwarepath}/as102_data*
%{_firmwarepath}/cmmb*
%{_firmwarepath}/dvb*
%{_firmwarepath}/isdbt*
%{_firmwarepath}/lgs8g75*
%{_firmwarepath}/sms1xxx*
%{_firmwarepath}/tdmb*
%{_firmwarepath}/v4l-cx2*
# BEGIN QUBES SPECIFIC PART
%post
# Update initramfs only if was already generated; skip generating it
# during system installation (will be done later anyway).
if [ -f /boot/initramfs-$(uname -r).img ]; then
for initrd in /boot/initramfs-*.img; do
kver=$(basename "$initrd" .img)
kver=${kver#initramfs-}
dracut -f --kver "$kver" "/boot/initramfs-$kver.img"
if [ -f "/boot/efi/EFI/qubes/initramfs-$kver".img ]; then
cp "/boot/initramfs-$kver.img" /boot/efi/EFI/qubes/
fi
done
fi
# END QUBES SPECIFIC PART
%changelog
@CHANGELOG@