blob: 0013e2458035bfa638abf2e071ae6f987730dd13 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "Firmware files for use with Linux kernel"
Andrew Geissler90fd73c2021-03-05 15:25:55 -06002DESCRIPTION = "Linux firmware is a package distributed alongside the Linux kernel \
3that contains firmware binary blobs necessary for partial or full functionality \
4of certain hardware devices."
Andrew Geissler82c905d2020-04-13 13:39:40 -05005SECTION = "kernel"
6
7LICENSE = "\
8 Firmware-Abilis \
9 & Firmware-adsp_sst \
10 & Firmware-agere \
11 & Firmware-amdgpu \
12 & Firmware-amd-ucode \
13 & Firmware-amlogic_vdec \
14 & Firmware-atheros_firmware \
15 & Firmware-atmel \
16 & Firmware-broadcom_bcm43xx \
17 & Firmware-ca0132 \
18 & Firmware-cavium \
19 & Firmware-chelsio_firmware \
20 & Firmware-cw1200 \
21 & Firmware-cypress \
22 & Firmware-dib0700 \
23 & Firmware-e100 \
24 & Firmware-ene_firmware \
25 & Firmware-fw_sst_0f28 \
26 & Firmware-go7007 \
27 & Firmware-GPLv2 \
28 & Firmware-hfi1_firmware \
29 & Firmware-i2400m \
30 & Firmware-i915 \
31 & Firmware-ibt_firmware \
Andrew Geisslerd25ed322020-06-27 00:28:28 -050032 & Firmware-ice \
Andrew Geissler82c905d2020-04-13 13:39:40 -050033 & Firmware-it913x \
34 & Firmware-iwlwifi_firmware \
35 & Firmware-IntcSST2 \
36 & Firmware-kaweth \
Andrew Geisslerd1e89492021-02-12 15:35:20 -060037 & Firmware-Lontium \
Andrew Geissler82c905d2020-04-13 13:39:40 -050038 & Firmware-Marvell \
39 & Firmware-moxa \
40 & Firmware-myri10ge_firmware \
41 & Firmware-netronome \
42 & Firmware-nvidia \
43 & Firmware-OLPC \
44 & Firmware-ath9k-htc \
45 & Firmware-phanfw \
46 & Firmware-qat \
47 & Firmware-qcom \
48 & Firmware-qla1280 \
49 & Firmware-qla2xxx \
50 & Firmware-qualcommAthos_ar3k \
51 & Firmware-qualcommAthos_ath10k \
52 & Firmware-r8a779x_usb3 \
53 & Firmware-radeon \
54 & Firmware-ralink_a_mediatek_company_firmware \
55 & Firmware-ralink-firmware \
56 & Firmware-rtlwifi_firmware \
57 & Firmware-imx-sdma_firmware \
58 & Firmware-siano \
59 & Firmware-tda7706-firmware \
60 & Firmware-ti-connectivity \
61 & Firmware-ti-keystone \
62 & Firmware-ueagle-atm4-firmware \
63 & Firmware-via_vt6656 \
64 & Firmware-wl1251 \
65 & Firmware-xc4000 \
66 & Firmware-xc5000 \
67 & Firmware-xc5000c \
68 & WHENCE \
69"
70
71LIC_FILES_CHKSUM = "file://LICENCE.Abilis;md5=b5ee3f410780e56711ad48eadc22b8bc \
72 file://LICENCE.adsp_sst;md5=615c45b91a5a4a9fe046d6ab9a2df728 \
73 file://LICENCE.agere;md5=af0133de6b4a9b2522defd5f188afd31 \
74 file://LICENSE.amdgpu;md5=d357524f5099e2a3db3c1838921c593f \
75 file://LICENSE.amd-ucode;md5=3c5399dc9148d7f0e1f41e34b69cf14f \
76 file://LICENSE.amlogic_vdec;md5=dc44f59bf64a81643e500ad3f39a468a \
77 file://LICENCE.atheros_firmware;md5=30a14c7823beedac9fa39c64fdd01a13 \
78 file://LICENSE.atmel;md5=aa74ac0c60595dee4d4e239107ea77a3 \
79 file://LICENCE.broadcom_bcm43xx;md5=3160c14df7228891b868060e1951dfbc \
80 file://LICENCE.ca0132;md5=209b33e66ee5be0461f13d31da392198 \
81 file://LICENCE.cadence;md5=009f46816f6956cfb75ede13d3e1cee0 \
82 file://LICENCE.cavium;md5=c37aaffb1ebe5939b2580d073a95daea \
83 file://LICENCE.chelsio_firmware;md5=819aa8c3fa453f1b258ed8d168a9d903 \
84 file://LICENCE.cw1200;md5=f0f770864e7a8444a5c5aa9d12a3a7ed \
85 file://LICENCE.cypress;md5=48cd9436c763bf873961f9ed7b5c147b \
86 file://LICENSE.dib0700;md5=f7411825c8a555a1a3e5eab9ca773431 \
87 file://LICENCE.e100;md5=ec0f84136766df159a3ae6d02acdf5a8 \
88 file://LICENCE.ene_firmware;md5=ed67f0f62f8f798130c296720b7d3921 \
89 file://LICENCE.fw_sst_0f28;md5=6353931c988ad52818ae733ac61cd293 \
90 file://LICENCE.go7007;md5=c0bb9f6aaaba55b0529ee9b30aa66beb \
91 file://GPL-2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
92 file://LICENSE.hfi1_firmware;md5=5e7b6e586ce7339d12689e49931ad444 \
93 file://LICENCE.i2400m;md5=14b901969e23c41881327c0d9e4b7d36 \
94 file://LICENSE.i915;md5=2b0b2e0d20984affd4490ba2cba02570 \
95 file://LICENCE.ibt_firmware;md5=fdbee1ddfe0fb7ab0b2fcd6b454a366b \
96 file://LICENSE.ice;md5=742ab4850f2670792940e6d15c974b2f \
97 file://LICENCE.IntcSST2;md5=9e7d8bea77612d7cc7d9e9b54b623062 \
98 file://LICENCE.it913x;md5=1fbf727bfb6a949810c4dbfa7e6ce4f8 \
99 file://LICENCE.iwlwifi_firmware;md5=3fd842911ea93c29cd32679aa23e1c88 \
100 file://LICENCE.kaweth;md5=b1d876e562f4b3b8d391ad8395dfe03f \
Andrew Geisslerd1e89492021-02-12 15:35:20 -0600101 file://LICENSE.Lontium;md5=4ec8dc582ff7295f39e2ca6a7b0be2b6 \
Andrew Geissler82c905d2020-04-13 13:39:40 -0500102 file://LICENCE.Marvell;md5=28b6ed8bd04ba105af6e4dcd6e997772 \
103 file://LICENCE.mediatek;md5=7c1976b63217d76ce47d0a11d8a79cf2 \
104 file://LICENCE.moxa;md5=1086614767d8ccf744a923289d3d4261 \
105 file://LICENCE.myri10ge_firmware;md5=42e32fb89f6b959ca222e25ac8df8fed \
106 file://LICENCE.Netronome;md5=4add08f2577086d44447996503cddf5f \
107 file://LICENCE.nvidia;md5=4428a922ed3ba2ceec95f076a488ce07 \
108 file://LICENCE.NXP;md5=58bb8ba632cd729b9ba6183bc6aed36f \
109 file://LICENCE.OLPC;md5=5b917f9d8c061991be4f6f5f108719cd \
110 file://LICENCE.open-ath9k-htc-firmware;md5=1b33c9f4d17bc4d457bdb23727046837 \
111 file://LICENCE.phanfw;md5=954dcec0e051f9409812b561ea743bfa \
112 file://LICENCE.qat_firmware;md5=9e7d8bea77612d7cc7d9e9b54b623062 \
113 file://LICENSE.qcom;md5=164e3362a538eb11d3ac51e8e134294b \
114 file://LICENCE.qla1280;md5=d6895732e622d950609093223a2c4f5d \
115 file://LICENCE.qla2xxx;md5=505855e921b75f1be4a437ad9b79dff0 \
116 file://LICENSE.QualcommAtheros_ar3k;md5=b5fe244fb2b532311de1472a3bc06da5 \
117 file://LICENSE.QualcommAtheros_ath10k;md5=cb42b686ee5f5cb890275e4321db60a8 \
118 file://LICENCE.r8a779x_usb3;md5=4c1671656153025d7076105a5da7e498 \
119 file://LICENSE.radeon;md5=68ec28bacb3613200bca44f404c69b16 \
120 file://LICENCE.ralink_a_mediatek_company_firmware;md5=728f1a85fd53fd67fa8d7afb080bc435 \
121 file://LICENCE.ralink-firmware.txt;md5=ab2c269277c45476fb449673911a2dfd \
122 file://LICENCE.rtlwifi_firmware.txt;md5=00d06cfd3eddd5a2698948ead2ad54a5 \
123 file://LICENSE.sdma_firmware;md5=51e8c19ecc2270f4b8ea30341ad63ce9 \
124 file://LICENCE.siano;md5=4556c1bf830067f12ca151ad953ec2a5 \
125 file://LICENCE.tda7706-firmware.txt;md5=835997cf5e3c131d0dddd695c7d9103e \
126 file://LICENCE.ti-connectivity;md5=c5e02be633f1499c109d1652514d85ec \
127 file://LICENCE.ti-keystone;md5=3a86335d32864b0bef996bee26cc0f2c \
128 file://LICENCE.ueagle-atm4-firmware;md5=4ed7ea6b507ccc583b9d594417714118 \
129 file://LICENCE.via_vt6656;md5=e4159694cba42d4377a912e78a6e850f \
130 file://LICENCE.wl1251;md5=ad3f81922bb9e197014bb187289d3b5b \
131 file://LICENCE.xc4000;md5=0ff51d2dc49fce04814c9155081092f0 \
132 file://LICENCE.xc5000;md5=1e170c13175323c32c7f4d0998d53f66 \
133 file://LICENCE.xc5000c;md5=12b02efa3049db65d524aeb418dd87ca \
Andrew Geissler90fd73c2021-03-05 15:25:55 -0600134 file://WHENCE;md5=ef0565762eac313c409567b59dff00b2 \
Andrew Geissler82c905d2020-04-13 13:39:40 -0500135 "
136
137# These are not common licenses, set NO_GENERIC_LICENSE for them
138# so that the license files will be copied from fetched source
139NO_GENERIC_LICENSE[Firmware-Abilis] = "LICENCE.Abilis"
140NO_GENERIC_LICENSE[Firmware-adsp_sst] = "LICENCE.adsp_sst"
141NO_GENERIC_LICENSE[Firmware-agere] = "LICENCE.agere"
142NO_GENERIC_LICENSE[Firmware-amdgpu] = "LICENSE.amdgpu"
143NO_GENERIC_LICENSE[Firmware-amd-ucode] = "LICENSE.amd-ucode"
144NO_GENERIC_LICENSE[Firmware-amlogic_vdec] = "LICENSE.amlogic_vdec"
145NO_GENERIC_LICENSE[Firmware-atheros_firmware] = "LICENCE.atheros_firmware"
146NO_GENERIC_LICENSE[Firmware-atmel] = "LICENSE.atmel"
147NO_GENERIC_LICENSE[Firmware-broadcom_bcm43xx] = "LICENCE.broadcom_bcm43xx"
148NO_GENERIC_LICENSE[Firmware-ca0132] = "LICENCE.ca0132"
149NO_GENERIC_LICENSE[Firmware-cadence] = "LICENCE.cadence"
150NO_GENERIC_LICENSE[Firmware-cavium] = "LICENCE.cavium"
151NO_GENERIC_LICENSE[Firmware-chelsio_firmware] = "LICENCE.chelsio_firmware"
152NO_GENERIC_LICENSE[Firmware-cw1200] = "LICENCE.cw1200"
153NO_GENERIC_LICENSE[Firmware-cypress] = "LICENCE.cypress"
154NO_GENERIC_LICENSE[Firmware-dib0700] = "LICENSE.dib0700"
155NO_GENERIC_LICENSE[Firmware-e100] = "LICENCE.e100"
156NO_GENERIC_LICENSE[Firmware-ene_firmware] = "LICENCE.ene_firmware"
157NO_GENERIC_LICENSE[Firmware-fw_sst_0f28] = "LICENCE.fw_sst_0f28"
158NO_GENERIC_LICENSE[Firmware-go7007] = "LICENCE.go7007"
159NO_GENERIC_LICENSE[Firmware-GPLv2] = "GPL-2"
160NO_GENERIC_LICENSE[Firmware-hfi1_firmware] = "LICENSE.hfi1_firmware"
161NO_GENERIC_LICENSE[Firmware-i2400m] = "LICENCE.i2400m"
162NO_GENERIC_LICENSE[Firmware-i915] = "LICENSE.i915"
163NO_GENERIC_LICENSE[Firmware-ibt_firmware] = "LICENCE.ibt_firmware"
Andrew Geisslerd25ed322020-06-27 00:28:28 -0500164NO_GENERIC_LICENSE[Firmware-ice] = "LICENSE.ice"
Andrew Geissler82c905d2020-04-13 13:39:40 -0500165NO_GENERIC_LICENSE[Firmware-IntcSST2] = "LICENCE.IntcSST2"
166NO_GENERIC_LICENSE[Firmware-it913x] = "LICENCE.it913x"
167NO_GENERIC_LICENSE[Firmware-iwlwifi_firmware] = "LICENCE.iwlwifi_firmware"
168NO_GENERIC_LICENSE[Firmware-kaweth] = "LICENCE.kaweth"
Andrew Geisslerd1e89492021-02-12 15:35:20 -0600169NO_GENERIC_LICENSE[Firmware-Lontium] = "LICENSE.Lontium"
Andrew Geissler82c905d2020-04-13 13:39:40 -0500170NO_GENERIC_LICENSE[Firmware-Marvell] = "LICENCE.Marvell"
171NO_GENERIC_LICENSE[Firmware-mediatek] = "LICENCE.mediatek"
172NO_GENERIC_LICENSE[Firmware-moxa] = "LICENCE.moxa"
173NO_GENERIC_LICENSE[Firmware-myri10ge_firmware] = "LICENCE.myri10ge_firmware"
174NO_GENERIC_LICENSE[Firmware-netronome] = "LICENCE.Netronome"
175NO_GENERIC_LICENSE[Firmware-nvidia] = "LICENCE.nvidia"
176NO_GENERIC_LICENSE[Firmware-OLPC] = "LICENCE.OLPC"
177NO_GENERIC_LICENSE[Firmware-ath9k-htc] = "LICENCE.open-ath9k-htc-firmware"
178NO_GENERIC_LICENSE[Firmware-phanfw] = "LICENCE.phanfw"
179NO_GENERIC_LICENSE[Firmware-qat] = "LICENCE.qat_firmware"
180NO_GENERIC_LICENSE[Firmware-qcom] = "LICENSE.qcom"
181NO_GENERIC_LICENSE[Firmware-qla1280] = "LICENCE.qla1280"
182NO_GENERIC_LICENSE[Firmware-qla2xxx] = "LICENCE.qla2xxx"
183NO_GENERIC_LICENSE[Firmware-qualcommAthos_ar3k] = "LICENSE.QualcommAtheros_ar3k"
184NO_GENERIC_LICENSE[Firmware-qualcommAthos_ath10k] = "LICENSE.QualcommAtheros_ath10k"
185NO_GENERIC_LICENSE[Firmware-r8a779x_usb3] = "LICENCE.r8a779x_usb3"
186NO_GENERIC_LICENSE[Firmware-radeon] = "LICENSE.radeon"
187NO_GENERIC_LICENSE[Firmware-ralink_a_mediatek_company_firmware] = "LICENCE.ralink_a_mediatek_company_firmware"
188NO_GENERIC_LICENSE[Firmware-ralink-firmware] = "LICENCE.ralink-firmware.txt"
189NO_GENERIC_LICENSE[Firmware-rtlwifi_firmware] = "LICENCE.rtlwifi_firmware.txt"
190NO_GENERIC_LICENSE[Firmware-siano] = "LICENCE.siano"
191NO_GENERIC_LICENSE[Firmware-imx-sdma_firmware] = "LICENSE.sdma_firmware"
192NO_GENERIC_LICENSE[Firmware-tda7706-firmware] = "LICENCE.tda7706-firmware.txt"
193NO_GENERIC_LICENSE[Firmware-ti-connectivity] = "LICENCE.ti-connectivity"
194NO_GENERIC_LICENSE[Firmware-ti-keystone] = "LICENCE.ti-keystone"
195NO_GENERIC_LICENSE[Firmware-ueagle-atm4-firmware] = "LICENCE.ueagle-atm4-firmware"
196NO_GENERIC_LICENSE[Firmware-via_vt6656] = "LICENCE.via_vt6656"
197NO_GENERIC_LICENSE[Firmware-wl1251] = "LICENCE.wl1251"
198NO_GENERIC_LICENSE[Firmware-xc4000] = "LICENCE.xc4000"
199NO_GENERIC_LICENSE[Firmware-xc5000] = "LICENCE.xc5000"
200NO_GENERIC_LICENSE[Firmware-xc5000c] = "LICENCE.xc5000c"
201NO_GENERIC_LICENSE[WHENCE] = "WHENCE"
202
203PE = "1"
204
205SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/firmware/${BPN}-${PV}.tar.xz"
206
Andrew Geissler90fd73c2021-03-05 15:25:55 -0600207SRC_URI[sha256sum] = "1bcb1a3944c361507754a7d26ccff40ffc28d1fb93bce711d67da26b33e785b7"
Andrew Geissler82c905d2020-04-13 13:39:40 -0500208
209inherit allarch
210
211CLEANBROKEN = "1"
212
213do_compile() {
214 :
215}
216
217do_install() {
218 oe_runmake 'DESTDIR=${D}' 'FIRMWAREDIR=${nonarch_base_libdir}/firmware' install
219 cp GPL-2 LICEN[CS]E.* WHENCE ${D}${nonarch_base_libdir}/firmware/
220}
221
222
223PACKAGES =+ "${PN}-ralink-license ${PN}-ralink \
224 ${PN}-mt7601u-license ${PN}-mt7601u \
225 ${PN}-radeon-license ${PN}-radeon \
226 ${PN}-marvell-license ${PN}-pcie8897 ${PN}-pcie8997 \
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500227 ${PN}-sd8686 ${PN}-sd8688 ${PN}-sd8787 ${PN}-sd8797 ${PN}-sd8801 \
228 ${PN}-sd8887 ${PN}-sd8897 ${PN}-sd8997 ${PN}-usb8997 \
Andrew Geissler82c905d2020-04-13 13:39:40 -0500229 ${PN}-ti-connectivity-license ${PN}-wlcommon ${PN}-wl12xx ${PN}-wl18xx \
230 ${PN}-vt6656-license ${PN}-vt6656 \
231 ${PN}-rtl-license ${PN}-rtl8188 ${PN}-rtl8192cu ${PN}-rtl8192ce ${PN}-rtl8192su ${PN}-rtl8723 ${PN}-rtl8821 \
232 ${PN}-rtl8168 \
233 ${PN}-cypress-license \
234 ${PN}-broadcom-license \
235 ${PN}-bcm-0bb4-0306 \
236 ${PN}-bcm43143 \
237 ${PN}-bcm43236b \
238 ${PN}-bcm43241b0 \
239 ${PN}-bcm43241b4 \
240 ${PN}-bcm43241b5 \
241 ${PN}-bcm43242a \
242 ${PN}-bcm4329 \
243 ${PN}-bcm4329-fullmac \
244 ${PN}-bcm4330 \
245 ${PN}-bcm4334 \
246 ${PN}-bcm43340 \
247 ${PN}-bcm4335 \
248 ${PN}-bcm43362 \
249 ${PN}-bcm4339 \
250 ${PN}-bcm43430 \
251 ${PN}-bcm43430a0 \
252 ${PN}-bcm43455 \
253 ${PN}-bcm4350 \
254 ${PN}-bcm4350c2 \
255 ${PN}-bcm4354 \
256 ${PN}-bcm4356 \
257 ${PN}-bcm4356-pcie \
258 ${PN}-bcm43569 \
259 ${PN}-bcm43570 \
260 ${PN}-bcm4358 \
261 ${PN}-bcm43602 \
262 ${PN}-bcm4366b \
263 ${PN}-bcm4366c \
264 ${PN}-bcm4371 \
265 ${PN}-bcm4373 \
266 ${PN}-bcm43xx \
267 ${PN}-bcm43xx-hdr \
268 ${PN}-atheros-license ${PN}-ar9170 ${PN}-ath6k ${PN}-ath9k \
269 ${PN}-gplv2-license ${PN}-carl9170 \
Andrew Geissler09209ee2020-12-13 08:44:15 -0600270 ${PN}-ar3k-license ${PN}-ar3k ${PN}-ath10k-license ${PN}-ath10k ${PN}-ath11k ${PN}-qca \
Andrew Geissler82c905d2020-04-13 13:39:40 -0500271 \
272 ${PN}-imx-sdma-license ${PN}-imx-sdma-imx6q ${PN}-imx-sdma-imx7d \
273 \
274 ${PN}-iwlwifi-license ${PN}-iwlwifi \
275 ${PN}-iwlwifi-135-6 \
276 ${PN}-iwlwifi-3160-7 ${PN}-iwlwifi-3160-8 ${PN}-iwlwifi-3160-9 \
277 ${PN}-iwlwifi-3160-10 ${PN}-iwlwifi-3160-12 ${PN}-iwlwifi-3160-13 \
278 ${PN}-iwlwifi-3160-16 ${PN}-iwlwifi-3160-17 \
279 ${PN}-iwlwifi-6000-4 ${PN}-iwlwifi-6000g2a-5 ${PN}-iwlwifi-6000g2a-6 \
280 ${PN}-iwlwifi-6000g2b-5 ${PN}-iwlwifi-6000g2b-6 \
281 ${PN}-iwlwifi-6050-4 ${PN}-iwlwifi-6050-5 \
282 ${PN}-iwlwifi-7260 \
283 ${PN}-iwlwifi-7265 \
284 ${PN}-iwlwifi-7265d ${PN}-iwlwifi-8000c ${PN}-iwlwifi-8265 \
285 ${PN}-iwlwifi-9000 \
286 ${PN}-iwlwifi-misc \
Andrew Geisslerb7d28612020-07-24 16:15:54 -0500287 ${PN}-ibt-license ${PN}-ibt \
Andrew Geissler82c905d2020-04-13 13:39:40 -0500288 ${PN}-ibt-11-5 ${PN}-ibt-12-16 ${PN}-ibt-hw-37-7 ${PN}-ibt-hw-37-8 \
289 ${PN}-ibt-17 \
Andrew Geisslerb7d28612020-07-24 16:15:54 -0500290 ${PN}-ibt-20 \
291 ${PN}-ibt-misc \
Andrew Geissler82c905d2020-04-13 13:39:40 -0500292 ${PN}-i915-license ${PN}-i915 \
Andrew Geisslerd25ed322020-06-27 00:28:28 -0500293 ${PN}-ice-license ${PN}-ice \
Andrew Geissler82c905d2020-04-13 13:39:40 -0500294 ${PN}-adsp-sst-license ${PN}-adsp-sst \
295 ${PN}-bnx2-mips \
296 ${PN}-liquidio \
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500297 ${PN}-nvidia-license \
298 ${PN}-nvidia-tegra-k1 ${PN}-nvidia-tegra \
299 ${PN}-nvidia-gpu \
Andrew Geissler82c905d2020-04-13 13:39:40 -0500300 ${PN}-netronome-license ${PN}-netronome \
301 ${PN}-qat ${PN}-qat-license \
302 ${PN}-qcom-license \
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500303 ${PN}-qcom-venus-1.8 ${PN}-qcom-venus-4.2 ${PN}-qcom-venus-5.2 ${PN}-qcom-venus-5.4 \
Andrew Geissler1e34c2d2020-05-29 16:02:59 -0500304 ${PN}-qcom-adreno-a3xx ${PN}-qcom-adreno-a530 ${PN}-qcom-adreno-a630 \
Andrew Geissler82c905d2020-04-13 13:39:40 -0500305 ${PN}-qcom-sdm845-audio ${PN}-qcom-sdm845-compute ${PN}-qcom-sdm845-modem \
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500306 ${PN}-amlogic-vdec-license ${PN}-amlogic-vdec \
Andrew Geisslerd1e89492021-02-12 15:35:20 -0600307 ${PN}-lt9611uxc ${PN}-lontium-license \
Andrew Geissler82c905d2020-04-13 13:39:40 -0500308 ${PN}-whence-license \
309 ${PN}-license \
310 "
311
312# For atheros
313LICENSE_${PN}-ar9170 = "Firmware-atheros_firmware"
314LICENSE_${PN}-ath6k = "Firmware-atheros_firmware"
315LICENSE_${PN}-ath9k = "Firmware-atheros_firmware"
316LICENSE_${PN}-atheros-license = "Firmware-atheros_firmware"
317
318FILES_${PN}-atheros-license = "${nonarch_base_libdir}/firmware/LICENCE.atheros_firmware"
319FILES_${PN}-ar9170 = " \
320 ${nonarch_base_libdir}/firmware/ar9170*.fw \
321"
322FILES_${PN}-ath6k = " \
323 ${nonarch_base_libdir}/firmware/ath6k \
324"
325FILES_${PN}-ath9k = " \
326 ${nonarch_base_libdir}/firmware/ar9271.fw \
327 ${nonarch_base_libdir}/firmware/ar7010*.fw \
328 ${nonarch_base_libdir}/firmware/htc_9271.fw \
329 ${nonarch_base_libdir}/firmware/htc_7010.fw \
330 ${nonarch_base_libdir}/firmware/ath9k_htc/htc_7010-1.4.0.fw \
331 ${nonarch_base_libdir}/firmware/ath9k_htc/htc_9271-1.4.0.fw \
332"
333
334RDEPENDS_${PN}-ar9170 += "${PN}-atheros-license"
335RDEPENDS_${PN}-ath6k += "${PN}-atheros-license"
336RDEPENDS_${PN}-ath9k += "${PN}-atheros-license"
337
338# For carl9170
339LICENSE_${PN}-carl9170 = "Firmware-GPLv2"
340LICENSE_${PN}-gplv2-license = "Firmware-GPLv2"
341
342FILES_${PN}-gplv2-license = "${nonarch_base_libdir}/firmware/GPL-2"
343FILES_${PN}-carl9170 = " \
344 ${nonarch_base_libdir}/firmware/carl9170*.fw \
345"
346
347RDEPENDS_${PN}-carl9170 += "${PN}-gplv2-license"
348
349# For QualCommAthos
350LICENSE_${PN}-ar3k = "Firmware-qualcommAthos_ar3k"
351LICENSE_${PN}-ar3k-license = "Firmware-qualcommAthos_ar3k"
352LICENSE_${PN}-ath10k = "Firmware-qualcommAthos_ath10k"
353LICENSE_${PN}-ath10k-license = "Firmware-qualcommAthos_ath10k"
354LICENSE_${PN}-qca = "Firmware-qualcommAthos_ath10k"
355
356FILES_${PN}-ar3k-license = "${nonarch_base_libdir}/firmware/LICENSE.QualcommAtheros_ar3k"
357FILES_${PN}-ar3k = " \
358 ${nonarch_base_libdir}/firmware/ar3k \
359"
360
361FILES_${PN}-ath10k-license = "${nonarch_base_libdir}/firmware/LICENSE.QualcommAtheros_ath10k"
362FILES_${PN}-ath10k = " \
363 ${nonarch_base_libdir}/firmware/ath10k \
364"
365
Andrew Geissler09209ee2020-12-13 08:44:15 -0600366FILES_${PN}-ath11k = " \
367 ${nonarch_base_libdir}/firmware/ath11k \
368"
369
Andrew Geissler82c905d2020-04-13 13:39:40 -0500370FILES_${PN}-qca = " \
371 ${nonarch_base_libdir}/firmware/qca \
372"
373
374RDEPENDS_${PN}-ar3k += "${PN}-ar3k-license"
375RDEPENDS_${PN}-ath10k += "${PN}-ath10k-license"
Andrew Geissler09209ee2020-12-13 08:44:15 -0600376RDEPENDS_${PN}-ath11k += "${PN}-ath10k-license"
Andrew Geissler82c905d2020-04-13 13:39:40 -0500377RDEPENDS_${PN}-qca += "${PN}-ath10k-license"
378
379# For ralink
380LICENSE_${PN}-ralink = "Firmware-ralink-firmware"
381LICENSE_${PN}-ralink-license = "Firmware-ralink-firmware"
382
383FILES_${PN}-ralink-license = "${nonarch_base_libdir}/firmware/LICENCE.ralink-firmware.txt"
384FILES_${PN}-ralink = " \
385 ${nonarch_base_libdir}/firmware/rt*.bin \
386"
387
388RDEPENDS_${PN}-ralink += "${PN}-ralink-license"
389
390# For mediatek MT7601U
391LICENSE_${PN}-mt7601u = "Firmware-ralink_a_mediatek_company_firmware"
392LICENSE_${PN}-mt7601u-license = "Firmware-ralink_a_mediatek_company_firmware"
393
394FILES_${PN}-mt7601u-license = "${nonarch_base_libdir}/firmware/LICENCE.ralink_a_mediatek_company_firmware"
395FILES_${PN}-mt7601u = " \
396 ${nonarch_base_libdir}/firmware/mt7601u.bin \
397"
398
399RDEPENDS_${PN}-mt7601u += "${PN}-mt7601u-license"
400
401# For radeon
402LICENSE_${PN}-radeon = "Firmware-radeon"
403LICENSE_${PN}-radeon-license = "Firmware-radeon"
404
405FILES_${PN}-radeon-license = "${nonarch_base_libdir}/firmware/LICENSE.radeon"
406FILES_${PN}-radeon = " \
407 ${nonarch_base_libdir}/firmware/radeon \
408"
409
410RDEPENDS_${PN}-radeon += "${PN}-radeon-license"
411
Andrew Geisslerd1e89492021-02-12 15:35:20 -0600412# For lontium
413LICENSE_${PN}-lt9611uxc = "Firmware-Lontium"
414
415FILES_${PN}-lontium-license = "${nonarch_base_libdir}/firmware/LICENSE.Lontium"
416FILES_${PN}-lt9611uxc = "${nonarch_base_libdir}/firmware/lt9611uxc_fw.bin"
417
Andrew Geissler82c905d2020-04-13 13:39:40 -0500418# For marvell
419LICENSE_${PN}-pcie8897 = "Firmware-Marvell"
420LICENSE_${PN}-pcie8997 = "Firmware-Marvell"
421LICENSE_${PN}-sd8686 = "Firmware-Marvell"
422LICENSE_${PN}-sd8688 = "Firmware-Marvell"
423LICENSE_${PN}-sd8787 = "Firmware-Marvell"
424LICENSE_${PN}-sd8797 = "Firmware-Marvell"
425LICENSE_${PN}-sd8801 = "Firmware-Marvell"
426LICENSE_${PN}-sd8887 = "Firmware-Marvell"
427LICENSE_${PN}-sd8897 = "Firmware-Marvell"
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500428LICENSE_${PN}-sd8997 = "Firmware-Marvell"
Andrew Geissler82c905d2020-04-13 13:39:40 -0500429LICENSE_${PN}-usb8997 = "Firmware-Marvell"
430LICENSE_${PN}-marvell-license = "Firmware-Marvell"
431
432FILES_${PN}-marvell-license = "${nonarch_base_libdir}/firmware/LICENCE.Marvell"
433FILES_${PN}-pcie8897 = " \
434 ${nonarch_base_libdir}/firmware/mrvl/pcie8897_uapsta.bin \
435"
436FILES_${PN}-pcie8997 = " \
437 ${nonarch_base_libdir}/firmware/mrvl/pcie8997_wlan_v4.bin \
438 ${nonarch_base_libdir}/firmware/mrvl/pcieuart8997_combo_v4.bin \
439 ${nonarch_base_libdir}/firmware/mrvl/pcieusb8997_combo_v4.bin \
440"
441FILES_${PN}-sd8686 = " \
442 ${nonarch_base_libdir}/firmware/libertas/sd8686_v9* \
443 ${nonarch_base_libdir}/firmware/sd8686* \
444"
445FILES_${PN}-sd8688 = " \
446 ${nonarch_base_libdir}/firmware/libertas/sd8688* \
447 ${nonarch_base_libdir}/firmware/mrvl/sd8688* \
448"
449FILES_${PN}-sd8787 = " \
450 ${nonarch_base_libdir}/firmware/mrvl/sd8787_uapsta.bin \
451"
452FILES_${PN}-sd8797 = " \
453 ${nonarch_base_libdir}/firmware/mrvl/sd8797_uapsta.bin \
454"
455FILES_${PN}-sd8801 = " \
456 ${nonarch_base_libdir}/firmware/mrvl/sd8801_uapsta.bin \
457"
458FILES_${PN}-sd8887 = " \
459 ${nonarch_base_libdir}/firmware/mrvl/sd8887_uapsta.bin \
460"
461FILES_${PN}-sd8897 = " \
462 ${nonarch_base_libdir}/firmware/mrvl/sd8897_uapsta.bin \
463"
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500464do_install_append() {
465 # The kernel 5.6.x driver still uses the old name, provide a symlink for
466 # older kernels
467 ln -fs sdsd8997_combo_v4.bin ${D}${nonarch_base_libdir}/firmware/mrvl/sd8997_uapsta.bin
468}
469FILES_${PN}-sd8997 = " \
470 ${nonarch_base_libdir}/firmware/mrvl/sd8997_uapsta.bin \
471 ${nonarch_base_libdir}/firmware/mrvl/sdsd8997_combo_v4.bin \
472"
Andrew Geissler82c905d2020-04-13 13:39:40 -0500473FILES_${PN}-usb8997 = " \
474 ${nonarch_base_libdir}/firmware/mrvl/usbusb8997_combo_v4.bin \
475"
476
477RDEPENDS_${PN}-sd8686 += "${PN}-marvell-license"
478RDEPENDS_${PN}-sd8688 += "${PN}-marvell-license"
479RDEPENDS_${PN}-sd8787 += "${PN}-marvell-license"
480RDEPENDS_${PN}-sd8797 += "${PN}-marvell-license"
481RDEPENDS_${PN}-sd8801 += "${PN}-marvell-license"
482RDEPENDS_${PN}-sd8887 += "${PN}-marvell-license"
483RDEPENDS_${PN}-sd8897 += "${PN}-marvell-license"
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500484RDEPENDS_${PN}-sd8997 += "${PN}-marvell-license"
Andrew Geissler82c905d2020-04-13 13:39:40 -0500485RDEPENDS_${PN}-usb8997 += "${PN}-marvell-license"
486
487# For netronome
488LICENSE_${PN}-netronome = "Firmware-netronome"
489
490FILES_${PN}-netronome-license = " \
491 ${nonarch_base_libdir}/firmware/LICENCE.Netronome \
492"
493FILES_${PN}-netronome = " \
494 ${nonarch_base_libdir}/firmware/netronome/nic_AMDA0081*.nffw \
495 ${nonarch_base_libdir}/firmware/netronome/nic_AMDA0096*.nffw \
496 ${nonarch_base_libdir}/firmware/netronome/nic_AMDA0097*.nffw \
497 ${nonarch_base_libdir}/firmware/netronome/nic_AMDA0099*.nffw \
498"
499
500RDEPENDS_${PN}-netronome += "${PN}-netronome-license"
501
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500502# For Nvidia
503LICENSE_${PN}-nvidia-gpu = "Firmware-nvidia"
504LICENSE_${PN}-nvidia-tegra = "Firmware-nvidia"
505LICENSE_${PN}-nvidia-tegra-k1 = "Firmware-nvidia"
506LICENSE_${PN}-nvidia-license = "Firmware-nvidia"
507
508FILES_${PN}-nvidia-gpu = "${nonarch_base_libdir}/firmware/nvidia"
509FILES_${PN}-nvidia-tegra = " \
510 ${nonarch_base_libdir}/firmware/nvidia/tegra* \
511 ${nonarch_base_libdir}/firmware/nvidia/gm20b \
512 ${nonarch_base_libdir}/firmware/nvidia/gp10b \
513"
514FILES_${PN}-nvidia-tegra-k1 = " \
515 ${nonarch_base_libdir}/firmware/nvidia/tegra124 \
516 ${nonarch_base_libdir}/firmware/nvidia/gk20a \
517"
518FILES_${PN}-nvidia-license = "${nonarch_base_libdir}/firmware/LICENCE.nvidia"
519
520RDEPENDS_${PN}-nvidia-gpu += "${PN}-nvidia-license"
521RDEPENDS_${PN}-nvidia-tegra += "${PN}-nvidia-license"
Andrew Geissler6ce62a22020-11-30 19:58:47 -0600522RDEPENDS_${PN}-nvidia-tegra-k1 += "${PN}-nvidia-license"
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500523
Andrew Geissler82c905d2020-04-13 13:39:40 -0500524# For rtl
525LICENSE_${PN}-rtl8188 = "Firmware-rtlwifi_firmware"
526LICENSE_${PN}-rtl8192cu = "Firmware-rtlwifi_firmware"
527LICENSE_${PN}-rtl8192ce = "Firmware-rtlwifi_firmware"
528LICENSE_${PN}-rtl8192su = "Firmware-rtlwifi_firmware"
529LICENSE_${PN}-rtl8723 = "Firmware-rtlwifi_firmware"
530LICENSE_${PN}-rtl8821 = "Firmware-rtlwifi_firmware"
531LICENSE_${PN}-rtl-license = "Firmware-rtlwifi_firmware"
532LICENSE_${PN}-rtl8168 = "WHENCE"
533
534FILES_${PN}-rtl-license = " \
535 ${nonarch_base_libdir}/firmware/LICENCE.rtlwifi_firmware.txt \
536"
537FILES_${PN}-rtl8188 = " \
538 ${nonarch_base_libdir}/firmware/rtlwifi/rtl8188*.bin \
539"
540FILES_${PN}-rtl8192cu = " \
541 ${nonarch_base_libdir}/firmware/rtlwifi/rtl8192cufw*.bin \
542"
543FILES_${PN}-rtl8192ce = " \
544 ${nonarch_base_libdir}/firmware/rtlwifi/rtl8192cfw*.bin \
545"
546FILES_${PN}-rtl8192su = " \
547 ${nonarch_base_libdir}/firmware/rtlwifi/rtl8712u.bin \
548"
549FILES_${PN}-rtl8723 = " \
550 ${nonarch_base_libdir}/firmware/rtlwifi/rtl8723*.bin \
551"
552FILES_${PN}-rtl8821 = " \
553 ${nonarch_base_libdir}/firmware/rtlwifi/rtl8821*.bin \
554"
555FILES_${PN}-rtl8168 = " \
556 ${nonarch_base_libdir}/firmware/rtl_nic/rtl8168*.fw \
557"
558
559RDEPENDS_${PN}-rtl8188 += "${PN}-rtl-license"
560RDEPENDS_${PN}-rtl8192ce += "${PN}-rtl-license"
561RDEPENDS_${PN}-rtl8192cu += "${PN}-rtl-license"
562RDEPENDS_${PN}-rtl8192su = "${PN}-rtl-license"
563RDEPENDS_${PN}-rtl8723 += "${PN}-rtl-license"
564RDEPENDS_${PN}-rtl8821 += "${PN}-rtl-license"
565RDEPENDS_${PN}-rtl8168 += "${PN}-whence-license"
566
567# For ti-connectivity
568LICENSE_${PN}-wlcommon = "Firmware-ti-connectivity"
569LICENSE_${PN}-wl12xx = "Firmware-ti-connectivity"
570LICENSE_${PN}-wl18xx = "Firmware-ti-connectivity"
571LICENSE_${PN}-ti-connectivity-license = "Firmware-ti-connectivity"
572
573FILES_${PN}-ti-connectivity-license = "${nonarch_base_libdir}/firmware/LICENCE.ti-connectivity"
574# wl18xx optionally needs wl1271-nvs.bin (which itself is a symlink to
575# wl127x-nvs.bin) - see linux/drivers/net/wireless/ti/wlcore/sdio.c
576# and drivers/net/wireless/ti/wlcore/spi.c.
577# While they're optional and actually only used to override the MAC
578# address on wl18xx, driver loading will delay (by udev timout - 60s)
579# if not there. So let's make it available always. Because it's a
580# symlink, both need to go to wlcommon.
581FILES_${PN}-wlcommon = " \
582 ${nonarch_base_libdir}/firmware/ti-connectivity/TI* \
583 ${nonarch_base_libdir}/firmware/ti-connectivity/wl127x-nvs.bin \
584 ${nonarch_base_libdir}/firmware/ti-connectivity/wl1271-nvs.bin \
585"
586FILES_${PN}-wl12xx = " \
587 ${nonarch_base_libdir}/firmware/ti-connectivity/wl12* \
588"
589FILES_${PN}-wl18xx = " \
590 ${nonarch_base_libdir}/firmware/ti-connectivity/wl18* \
591"
592
593RDEPENDS_${PN}-wl12xx = "${PN}-ti-connectivity-license ${PN}-wlcommon"
594RDEPENDS_${PN}-wl18xx = "${PN}-ti-connectivity-license ${PN}-wlcommon"
595
596# For vt6656
597LICENSE_${PN}-vt6656 = "Firmware-via_vt6656"
598LICENSE_${PN}-vt6656-license = "Firmware-via_vt6656"
599
600FILES_${PN}-vt6656-license = "${nonarch_base_libdir}/firmware/LICENCE.via_vt6656"
601FILES_${PN}-vt6656 = " \
602 ${nonarch_base_libdir}/firmware/vntwusb.fw \
603"
604
605RDEPENDS_${PN}-vt6656 = "${PN}-vt6656-license"
606
607# For broadcom
608
609# for i in `grep brcm WHENCE | grep ^File | sed 's/File: brcm.//g'`; do pkg=`echo $i | sed 's/-[sp40].*//g; s/\.bin//g; s/brcmfmac/bcm/g; s/_hdr/-hdr/g; s/BCM/bcm-0bb4-0306/g'`; echo -e " \${PN}-$pkg \\"; done | sort -u
610
611LICENSE_${PN}-broadcom-license = "Firmware-broadcom_bcm43xx"
612FILES_${PN}-broadcom-license = "${nonarch_base_libdir}/firmware/LICENCE.broadcom_bcm43xx"
613
614# for i in `grep brcm WHENCE | grep ^File | sed 's/File: brcm.//g'`; do pkg=`echo $i | sed 's/-[sp40].*//g; s/\.bin//g; s/brcmfmac/bcm/g; s/_hdr/-hdr/g; s/BCM/bcm-0bb4-0306/g'`; echo "$i - $pkg"; echo -e "FILES_\${PN}-$pkg = \"\${nonarch_base_libdir}/firmware/brcm/$i\""; done | grep ^FILES
615
616FILES_${PN}-bcm43xx = "${nonarch_base_libdir}/firmware/brcm/bcm43xx-0.fw"
617FILES_${PN}-bcm43xx-hdr = "${nonarch_base_libdir}/firmware/brcm/bcm43xx_hdr-0.fw"
618FILES_${PN}-bcm4329-fullmac = "${nonarch_base_libdir}/firmware/brcm/bcm4329-fullmac-4.bin"
619FILES_${PN}-bcm43236b = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43236b.bin"
620FILES_${PN}-bcm4329 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4329-sdio.bin"
621FILES_${PN}-bcm4330 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4330-sdio.*"
622FILES_${PN}-bcm4334 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4334-sdio.bin"
623FILES_${PN}-bcm4335 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4335-sdio.bin"
624FILES_${PN}-bcm4339 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4339-sdio.bin"
625FILES_${PN}-bcm43241b0 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43241b0-sdio.bin"
626FILES_${PN}-bcm43241b4 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43241b4-sdio.bin"
627FILES_${PN}-bcm43241b5 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43241b5-sdio.bin"
628FILES_${PN}-bcm43242a = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43242a.bin"
629FILES_${PN}-bcm43143 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43143.bin \
630 ${nonarch_base_libdir}/firmware/brcm/brcmfmac43143-sdio.bin \
631"
632FILES_${PN}-bcm43430a0 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43430a0-sdio.*"
633FILES_${PN}-bcm43455 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43455-sdio.*"
634FILES_${PN}-bcm4350c2 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4350c2-pcie.bin"
635FILES_${PN}-bcm4350 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4350-pcie.bin"
636FILES_${PN}-bcm4356 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4356-sdio.bin"
637FILES_${PN}-bcm43569 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43569.bin"
638FILES_${PN}-bcm43570 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43570-pcie.bin"
639FILES_${PN}-bcm4358 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4358-pcie.bin"
640FILES_${PN}-bcm43602 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43602-pcie.bin \
641 ${nonarch_base_libdir}/firmware/brcm/brcmfmac43602-pcie.ap.bin \
642"
643FILES_${PN}-bcm4366b = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4366b-pcie.bin"
644FILES_${PN}-bcm4366c = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4366c-pcie.bin"
645FILES_${PN}-bcm4371 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4371-pcie.bin"
646
647# for i in `grep brcm WHENCE | grep ^File | sed 's/File: brcm.//g'`; do pkg=`echo $i | sed 's/-[sp40].*//g; s/\.bin//g; s/brcmfmac/bcm/g; s/_hdr/-hdr/g; s/BCM/bcm-0bb4-0306/g'`; echo -e "LICENSE_\${PN}-$pkg = \"Firmware-broadcom_bcm43xx\"\nRDEPENDS_\${PN}-$pkg += \"\${PN}-broadcom-license\""; done
648# Currently 1st one and last 6 have cypress LICENSE
649
650LICENSE_${PN}-bcm43xx = "Firmware-broadcom_bcm43xx"
651RDEPENDS_${PN}-bcm43xx += "${PN}-broadcom-license"
652LICENSE_${PN}-bcm43xx-hdr = "Firmware-broadcom_bcm43xx"
653RDEPENDS_${PN}-bcm43xx-hdr += "${PN}-broadcom-license"
654LICENSE_${PN}-bcm4329-fullmac = "Firmware-broadcom_bcm43xx"
655RDEPENDS_${PN}-bcm4329-fullmac += "${PN}-broadcom-license"
656LICENSE_${PN}-bcm43236b = "Firmware-broadcom_bcm43xx"
657RDEPENDS_${PN}-bcm43236b += "${PN}-broadcom-license"
658LICENSE_${PN}-bcm4329 = "Firmware-broadcom_bcm43xx"
659RDEPENDS_${PN}-bcm4329 += "${PN}-broadcom-license"
660LICENSE_${PN}-bcm4330 = "Firmware-broadcom_bcm43xx"
661RDEPENDS_${PN}-bcm4330 += "${PN}-broadcom-license"
662LICENSE_${PN}-bcm4334 = "Firmware-broadcom_bcm43xx"
663RDEPENDS_${PN}-bcm4334 += "${PN}-broadcom-license"
664LICENSE_${PN}-bcm4335 = "Firmware-broadcom_bcm43xx"
665RDEPENDS_${PN}-bcm4335 += "${PN}-broadcom-license"
666LICENSE_${PN}-bcm4339 = "Firmware-broadcom_bcm43xx"
667RDEPENDS_${PN}-bcm4339 += "${PN}-broadcom-license"
668LICENSE_${PN}-bcm43241b0 = "Firmware-broadcom_bcm43xx"
669RDEPENDS_${PN}-bcm43241b0 += "${PN}-broadcom-license"
670LICENSE_${PN}-bcm43241b4 = "Firmware-broadcom_bcm43xx"
671RDEPENDS_${PN}-bcm43241b4 += "${PN}-broadcom-license"
672LICENSE_${PN}-bcm43241b5 = "Firmware-broadcom_bcm43xx"
673RDEPENDS_${PN}-bcm43241b5 += "${PN}-broadcom-license"
674LICENSE_${PN}-bcm43242a = "Firmware-broadcom_bcm43xx"
675RDEPENDS_${PN}-bcm43242a += "${PN}-broadcom-license"
676LICENSE_${PN}-bcm43143 = "Firmware-broadcom_bcm43xx"
677RDEPENDS_${PN}-bcm43143 += "${PN}-broadcom-license"
678LICENSE_${PN}-bcm43430a0 = "Firmware-broadcom_bcm43xx"
679RDEPENDS_${PN}-bcm43430a0 += "${PN}-broadcom-license"
680LICENSE_${PN}-bcm43455 = "Firmware-broadcom_bcm43xx"
681RDEPENDS_${PN}-bcm43455 += "${PN}-broadcom-license"
682LICENSE_${PN}-bcm4350c2 = "Firmware-broadcom_bcm43xx"
683RDEPENDS_${PN}-bcm4350c2 += "${PN}-broadcom-license"
684LICENSE_${PN}-bcm4350 = "Firmware-broadcom_bcm43xx"
685RDEPENDS_${PN}-bcm4350 += "${PN}-broadcom-license"
686LICENSE_${PN}-bcm4356 = "Firmware-broadcom_bcm43xx"
687RDEPENDS_${PN}-bcm4356 += "${PN}-broadcom-license"
688LICENSE_${PN}-bcm43569 = "Firmware-broadcom_bcm43xx"
689RDEPENDS_${PN}-bcm43569 += "${PN}-broadcom-license"
690LICENSE_${PN}-bcm43570 = "Firmware-broadcom_bcm43xx"
691RDEPENDS_${PN}-bcm43570 += "${PN}-broadcom-license"
692LICENSE_${PN}-bcm4358 = "Firmware-broadcom_bcm43xx"
693RDEPENDS_${PN}-bcm4358 += "${PN}-broadcom-license"
694LICENSE_${PN}-bcm43602 = "Firmware-broadcom_bcm43xx"
695RDEPENDS_${PN}-bcm43602 += "${PN}-broadcom-license"
696LICENSE_${PN}-bcm4366b = "Firmware-broadcom_bcm43xx"
697RDEPENDS_${PN}-bcm4366b += "${PN}-broadcom-license"
698LICENSE_${PN}-bcm4366c = "Firmware-broadcom_bcm43xx"
699RDEPENDS_${PN}-bcm4366c += "${PN}-broadcom-license"
700LICENSE_${PN}-bcm4371 = "Firmware-broadcom_bcm43xx"
701RDEPENDS_${PN}-bcm4371 += "${PN}-broadcom-license"
702
703# For broadcom cypress
704
705LICENSE_${PN}-cypress-license = "Firmware-cypress"
706FILES_${PN}-cypress-license = "${nonarch_base_libdir}/firmware/LICENCE.cypress"
707
708FILES_${PN}-bcm-0bb4-0306 = "${nonarch_base_libdir}/firmware/brcm/BCM-0bb4-0306.hcd"
709FILES_${PN}-bcm43340 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43340-sdio.*"
710FILES_${PN}-bcm43362 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43362-sdio.*"
711FILES_${PN}-bcm43430 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43430-sdio.*"
712FILES_${PN}-bcm4354 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4354-sdio.bin"
713FILES_${PN}-bcm4356-pcie = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4356-pcie.*"
714FILES_${PN}-bcm4373 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4373-sdio.bin \
715 ${nonarch_base_libdir}/firmware/brcm/brcmfmac4373.bin \
716"
717
718LICENSE_${PN}-bcm-0bb4-0306 = "Firmware-cypress"
719RDEPENDS_${PN}-bcm-0bb4-0306 += "${PN}-cypress-license"
720LICENSE_${PN}-bcm43340 = "Firmware-cypress"
721RDEPENDS_${PN}-bcm43340 += "${PN}-cypress-license"
722LICENSE_${PN}-bcm43362 = "Firmware-cypress"
723RDEPENDS_${PN}-bcm43362 += "${PN}-cypress-license"
724LICENSE_${PN}-bcm43430 = "Firmware-cypress"
725RDEPENDS_${PN}-bcm43430 += "${PN}-cypress-license"
726LICENSE_${PN}-bcm4354 = "Firmware-cypress"
727RDEPENDS_${PN}-bcm4354 += "${PN}-cypress-license"
728LICENSE_${PN}-bcm4356-pcie = "Firmware-cypress"
729RDEPENDS_${PN}-bcm4356-pcie += "${PN}-cypress-license"
730LICENSE_${PN}-bcm4373 = "Firmware-cypress"
731RDEPENDS_${PN}-bcm4373 += "${PN}-cypress-license"
732
733# For Broadcom bnx2-mips
734#
735# which is a separate case to the other Broadcom firmwares since its
736# license is contained in the shared WHENCE file.
737
738LICENSE_${PN}-bnx2-mips = "WHENCE"
739LICENSE_${PN}-whence-license = "WHENCE"
740
741FILES_${PN}-bnx2-mips = "${nonarch_base_libdir}/firmware/bnx2/bnx2-mips-09-6.2.1b.fw"
742FILES_${PN}-whence-license = "${nonarch_base_libdir}/firmware/WHENCE"
743
744RDEPENDS_${PN}-bnx2-mips += "${PN}-whence-license"
745
746# For imx-sdma
747LICENSE_${PN}-imx-sdma-imx6q = "Firmware-imx-sdma_firmware"
748LICENSE_${PN}-imx-sdma-imx7d = "Firmware-imx-sdma_firmware"
749LICENSE_${PN}-imx-sdma-license = "Firmware-imx-sdma_firmware"
750
751FILES_${PN}-imx-sdma-imx6q = "${nonarch_base_libdir}/firmware/imx/sdma/sdma-imx6q.bin"
752
753RPROVIDES_${PN}-imx-sdma-imx6q = "firmware-imx-sdma-imx6q"
754RREPLACES_${PN}-imx-sdma-imx6q = "firmware-imx-sdma-imx6q"
755RCONFLICTS_${PN}-imx-sdma-imx6q = "firmware-imx-sdma-imx6q"
756
757FILES_${PN}-imx-sdma-imx7d = "${nonarch_base_libdir}/firmware/imx/sdma/sdma-imx7d.bin"
758
759FILES_${PN}-imx-sdma-license = "${nonarch_base_libdir}/firmware/LICENSE.sdma_firmware"
760
761RDEPENDS_${PN}-imx-sdma-imx6q += "${PN}-imx-sdma-license"
762RDEPENDS_${PN}-imx-sdma-imx7d += "${PN}-imx-sdma-license"
763
764# For iwlwifi
765LICENSE_${PN}-iwlwifi = "Firmware-iwlwifi_firmware"
766LICENSE_${PN}-iwlwifi-135-6 = "Firmware-iwlwifi_firmware"
767LICENSE_${PN}-iwlwifi-3160-7 = "Firmware-iwlwifi_firmware"
768LICENSE_${PN}-iwlwifi-3160-8 = "Firmware-iwlwifi_firmware"
769LICENSE_${PN}-iwlwifi-3160-9 = "Firmware-iwlwifi_firmware"
770LICENSE_${PN}-iwlwifi-3160-10 = "Firmware-iwlwifi_firmware"
771LICENSE_${PN}-iwlwifi-3160-12 = "Firmware-iwlwifi_firmware"
772LICENSE_${PN}-iwlwifi-3160-13 = "Firmware-iwlwifi_firmware"
773LICENSE_${PN}-iwlwifi-3160-16 = "Firmware-iwlwifi_firmware"
774LICENSE_${PN}-iwlwifi-3160-17 = "Firmware-iwlwifi_firmware"
775LICENSE_${PN}-iwlwifi-6000-4 = "Firmware-iwlwifi_firmware"
776LICENSE_${PN}-iwlwifi-6000g2a-5 = "Firmware-iwlwifi_firmware"
777LICENSE_${PN}-iwlwifi-6000g2a-6 = "Firmware-iwlwifi_firmware"
778LICENSE_${PN}-iwlwifi-6000g2b-5 = "Firmware-iwlwifi_firmware"
779LICENSE_${PN}-iwlwifi-6000g2b-6 = "Firmware-iwlwifi_firmware"
780LICENSE_${PN}-iwlwifi-6050-4 = "Firmware-iwlwifi_firmware"
781LICENSE_${PN}-iwlwifi-6050-5 = "Firmware-iwlwifi_firmware"
782LICENSE_${PN}-iwlwifi-7260 = "Firmware-iwlwifi_firmware"
783LICENSE_${PN}-iwlwifi-7265 = "Firmware-iwlwifi_firmware"
784LICENSE_${PN}-iwlwifi-7265d = "Firmware-iwlwifi_firmware"
785LICENSE_${PN}-iwlwifi-8000c = "Firmware-iwlwifi_firmware"
786LICENSE_${PN}-iwlwifi-8265 = "Firmware-iwlwifi_firmware"
787LICENSE_${PN}-iwlwifi-9000 = "Firmware-iwlwifi_firmware"
788LICENSE_${PN}-iwlwifi-misc = "Firmware-iwlwifi_firmware"
789LICENSE_${PN}-iwlwifi-license = "Firmware-iwlwifi_firmware"
790
791
792FILES_${PN}-iwlwifi-license = "${nonarch_base_libdir}/firmware/LICENCE.iwlwifi_firmware"
793FILES_${PN}-iwlwifi-135-6 = "${nonarch_base_libdir}/firmware/iwlwifi-135-6.ucode"
794FILES_${PN}-iwlwifi-3160-7 = "${nonarch_base_libdir}/firmware/iwlwifi-3160-7.ucode"
795FILES_${PN}-iwlwifi-3160-8 = "${nonarch_base_libdir}/firmware/iwlwifi-3160-8.ucode"
796FILES_${PN}-iwlwifi-3160-9 = "${nonarch_base_libdir}/firmware/iwlwifi-3160-9.ucode"
797FILES_${PN}-iwlwifi-3160-10 = "${nonarch_base_libdir}/firmware/iwlwifi-3160-10.ucode"
798FILES_${PN}-iwlwifi-3160-12 = "${nonarch_base_libdir}/firmware/iwlwifi-3160-12.ucode"
799FILES_${PN}-iwlwifi-3160-13 = "${nonarch_base_libdir}/firmware/iwlwifi-3160-13.ucode"
800FILES_${PN}-iwlwifi-3160-16 = "${nonarch_base_libdir}/firmware/iwlwifi-3160-16.ucode"
801FILES_${PN}-iwlwifi-3160-17 = "${nonarch_base_libdir}/firmware/iwlwifi-3160-17.ucode"
802FILES_${PN}-iwlwifi-6000-4 = "${nonarch_base_libdir}/firmware/iwlwifi-6000-4.ucode"
803FILES_${PN}-iwlwifi-6000g2a-5 = "${nonarch_base_libdir}/firmware/iwlwifi-6000g2a-5.ucode"
804FILES_${PN}-iwlwifi-6000g2a-6 = "${nonarch_base_libdir}/firmware/iwlwifi-6000g2a-6.ucode"
805FILES_${PN}-iwlwifi-6000g2b-5 = "${nonarch_base_libdir}/firmware/iwlwifi-6000g2b-5.ucode"
806FILES_${PN}-iwlwifi-6000g2b-6 = "${nonarch_base_libdir}/firmware/iwlwifi-6000g2b-6.ucode"
807FILES_${PN}-iwlwifi-6050-4 = "${nonarch_base_libdir}/firmware/iwlwifi-6050-4.ucode"
808FILES_${PN}-iwlwifi-6050-5 = "${nonarch_base_libdir}/firmware/iwlwifi-6050-5.ucode"
809FILES_${PN}-iwlwifi-7260 = "${nonarch_base_libdir}/firmware/iwlwifi-7260-*.ucode"
810FILES_${PN}-iwlwifi-7265 = "${nonarch_base_libdir}/firmware/iwlwifi-7265-*.ucode"
811FILES_${PN}-iwlwifi-7265d = "${nonarch_base_libdir}/firmware/iwlwifi-7265D-*.ucode"
812FILES_${PN}-iwlwifi-8000c = "${nonarch_base_libdir}/firmware/iwlwifi-8000C-*.ucode"
813FILES_${PN}-iwlwifi-8265 = "${nonarch_base_libdir}/firmware/iwlwifi-8265-*.ucode"
814FILES_${PN}-iwlwifi-9000 = "${nonarch_base_libdir}/firmware/iwlwifi-9000-*.ucode"
815FILES_${PN}-iwlwifi-misc = "${nonarch_base_libdir}/firmware/iwlwifi-*.ucode"
816
817RDEPENDS_${PN}-iwlwifi-135-6 = "${PN}-iwlwifi-license"
818RDEPENDS_${PN}-iwlwifi-3160-7 = "${PN}-iwlwifi-license"
819RDEPENDS_${PN}-iwlwifi-3160-8 = "${PN}-iwlwifi-license"
820RDEPENDS_${PN}-iwlwifi-3160-9 = "${PN}-iwlwifi-license"
821RDEPENDS_${PN}-iwlwifi-3160-10 = "${PN}-iwlwifi-license"
822RDEPENDS_${PN}-iwlwifi-3160-12 = "${PN}-iwlwifi-license"
823RDEPENDS_${PN}-iwlwifi-3160-13 = "${PN}-iwlwifi-license"
824RDEPENDS_${PN}-iwlwifi-3160-16 = "${PN}-iwlwifi-license"
825RDEPENDS_${PN}-iwlwifi-3160-17 = "${PN}-iwlwifi-license"
826RDEPENDS_${PN}-iwlwifi-6000-4 = "${PN}-iwlwifi-license"
827RDEPENDS_${PN}-iwlwifi-6000g2a-5 = "${PN}-iwlwifi-license"
828RDEPENDS_${PN}-iwlwifi-6000g2a-6 = "${PN}-iwlwifi-license"
829RDEPENDS_${PN}-iwlwifi-6000g2b-5 = "${PN}-iwlwifi-license"
830RDEPENDS_${PN}-iwlwifi-6000g2b-6 = "${PN}-iwlwifi-license"
831RDEPENDS_${PN}-iwlwifi-6050-4 = "${PN}-iwlwifi-license"
832RDEPENDS_${PN}-iwlwifi-6050-5 = "${PN}-iwlwifi-license"
833RDEPENDS_${PN}-iwlwifi-7260 = "${PN}-iwlwifi-license"
834RDEPENDS_${PN}-iwlwifi-7265 = "${PN}-iwlwifi-license"
835RDEPENDS_${PN}-iwlwifi-7265d = "${PN}-iwlwifi-license"
836RDEPENDS_${PN}-iwlwifi-8000c = "${PN}-iwlwifi-license"
837RDEPENDS_${PN}-iwlwifi-8265 = "${PN}-iwlwifi-license"
838RDEPENDS_${PN}-iwlwifi-9000 = "${PN}-iwlwifi-license"
839RDEPENDS_${PN}-iwlwifi-misc = "${PN}-iwlwifi-license"
840
841# -iwlwifi-misc is a "catch all" package that includes all the iwlwifi
842# firmwares that are not already included in other -iwlwifi- packages.
843# -iwlwifi is a virtual package that depends upon all iwlwifi packages.
844# These are distinct in order to allow the -misc firmwares to be installed
845# without pulling in every other iwlwifi package.
846ALLOW_EMPTY_${PN}-iwlwifi = "1"
847ALLOW_EMPTY_${PN}-iwlwifi-misc = "1"
848
849# Handle package updating for the newly merged iwlwifi groupings
850RPROVIDES_${PN}-iwlwifi-7265 = "${PN}-iwlwifi-7265-8 ${PN}-iwlwifi-7265-9"
851RREPLACES_${PN}-iwlwifi-7265 = "${PN}-iwlwifi-7265-8 ${PN}-iwlwifi-7265-9"
852RCONFLICTS_${PN}-iwlwifi-7265 = "${PN}-iwlwifi-7265-8 ${PN}-iwlwifi-7265-9"
853
854RPROVIDES_${PN}-iwlwifi-7260 = "${PN}-iwlwifi-7260-7 ${PN}-iwlwifi-7260-8 ${PN}-iwlwifi-7260-9"
855RREPLACES_${PN}-iwlwifi-7260 = "${PN}-iwlwifi-7260-7 ${PN}-iwlwifi-7260-8 ${PN}-iwlwifi-7260-9"
856RCONFLICTS_${PN}-iwlwifi-7260 = "${PN}-iwlwifi-7260-7 ${PN}-iwlwifi-7260-8 ${PN}-iwlwifi-7260-9"
857
858# For ibt
859LICENSE_${PN}-ibt-license = "Firmware-ibt_firmware"
860LICENSE_${PN}-ibt-hw-37-7 = "Firmware-ibt_firmware"
861LICENSE_${PN}-ibt-hw-37-8 = "Firmware-ibt_firmware"
862LICENSE_${PN}-ibt-11-5 = "Firmware-ibt_firmware"
863LICENSE_${PN}-ibt-12-16 = "Firmware-ibt_firmware"
864LICENSE_${PN}-ibt-17 = "Firmware-ibt_firmware"
Andrew Geisslerb7d28612020-07-24 16:15:54 -0500865LICENSE_${PN}-ibt-20 = "Firmware-ibt_firmware"
Andrew Geissler82c905d2020-04-13 13:39:40 -0500866LICENSE_${PN}-ibt-misc = "Firmware-ibt_firmware"
867
868FILES_${PN}-ibt-license = "${nonarch_base_libdir}/firmware/LICENCE.ibt_firmware"
869FILES_${PN}-ibt-hw-37-7 = "${nonarch_base_libdir}/firmware/intel/ibt-hw-37.7*.bseq"
870FILES_${PN}-ibt-hw-37-8 = "${nonarch_base_libdir}/firmware/intel/ibt-hw-37.8*.bseq"
871FILES_${PN}-ibt-11-5 = "${nonarch_base_libdir}/firmware/intel/ibt-11-5.sfi ${nonarch_base_libdir}/firmware/intel/ibt-11-5.ddc"
872FILES_${PN}-ibt-12-16 = "${nonarch_base_libdir}/firmware/intel/ibt-12-16.sfi ${nonarch_base_libdir}/firmware/intel/ibt-12-16.ddc"
873FILES_${PN}-ibt-17 = "${nonarch_base_libdir}/firmware/intel/ibt-17-*.sfi ${nonarch_base_libdir}/firmware/intel/ibt-17-*.ddc"
Andrew Geisslerb7d28612020-07-24 16:15:54 -0500874FILES_${PN}-ibt-20 = "${nonarch_base_libdir}/firmware/intel/ibt-20-*.sfi ${nonarch_base_libdir}/firmware/intel/ibt-20-*.ddc"
875FILES_${PN}-ibt-misc = "${nonarch_base_libdir}/firmware/intel/ibt-*"
Andrew Geissler82c905d2020-04-13 13:39:40 -0500876
877RDEPENDS_${PN}-ibt-hw-37-7 = "${PN}-ibt-license"
878RDEPENDS_${PN}-ibt-hw-37.8 = "${PN}-ibt-license"
879RDEPENDS_${PN}-ibt-11-5 = "${PN}-ibt-license"
880RDEPENDS_${PN}-ibt-12-16 = "${PN}-ibt-license"
881RDEPENDS_${PN}-ibt-17 = "${PN}-ibt-license"
Andrew Geisslerb7d28612020-07-24 16:15:54 -0500882RDEPENDS_${PN}-ibt-20 = "${PN}-ibt-license"
Andrew Geissler82c905d2020-04-13 13:39:40 -0500883RDEPENDS_${PN}-ibt-misc = "${PN}-ibt-license"
884
885ALLOW_EMPTY_${PN}-ibt= "1"
886ALLOW_EMPTY_${PN}-ibt-misc = "1"
887
888LICENSE_${PN}-i915 = "Firmware-i915"
889LICENSE_${PN}-i915-license = "Firmware-i915"
890FILES_${PN}-i915-license = "${nonarch_base_libdir}/firmware/LICENSE.i915"
891FILES_${PN}-i915 = "${nonarch_base_libdir}/firmware/i915"
892RDEPENDS_${PN}-i915 = "${PN}-i915-license"
893
Andrew Geisslerd25ed322020-06-27 00:28:28 -0500894LICENSE_${PN}-ice = "Firmware-ice"
895LICENSE_${PN}-ice-license = "Firmware-ice"
896FILES_${PN}-ice-license = "${nonarch_base_libdir}/firmware/LICENSE.ice"
897FILES_${PN}-ice = "${nonarch_base_libdir}/firmware/intel/ice"
898RDEPENDS_${PN}-ice = "${PN}-ice-license"
899
Andrew Geissler82c905d2020-04-13 13:39:40 -0500900FILES_${PN}-adsp-sst-license = "${nonarch_base_libdir}/firmware/LICENCE.adsp_sst"
901LICENSE_${PN}-adsp-sst = "Firmware-adsp_sst"
902LICENSE_${PN}-adsp-sst-license = "Firmware-adsp_sst"
903FILES_${PN}-adsp-sst = "${nonarch_base_libdir}/firmware/intel/dsp_fw*"
904RDEPENDS_${PN}-adsp-sst = "${PN}-adsp-sst-license"
905
906# For QAT
907LICENSE_${PN}-qat = "Firmware-qat"
908LICENSE_${PN}-qat-license = "Firmware-qat"
909FILES_${PN}-qat-license = "${nonarch_base_libdir}/firmware/LICENCE.qat_firmware"
910FILES_${PN}-qat = "${nonarch_base_libdir}/firmware/qat*.bin"
911RDEPENDS_${PN}-qat = "${PN}-qat-license"
912
913# For QCOM VPU/GPU and SDM845
914LICENSE_${PN}-qcom-license = "Firmware-qcom"
915FILES_${PN}-qcom-license = "${nonarch_base_libdir}/firmware/LICENSE.qcom ${nonarch_base_libdir}/firmware/qcom/NOTICE.txt"
916FILES_${PN}-qcom-venus-1.8 = "${nonarch_base_libdir}/firmware/qcom/venus-1.8/*"
917FILES_${PN}-qcom-venus-4.2 = "${nonarch_base_libdir}/firmware/qcom/venus-4.2/*"
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500918FILES_${PN}-qcom-venus-5.2 = "${nonarch_base_libdir}/firmware/qcom/venus-5.2/*"
919FILES_${PN}-qcom-venus-5.4 = "${nonarch_base_libdir}/firmware/qcom/venus-5.4/*"
Andrew Geissler82c905d2020-04-13 13:39:40 -0500920FILES_${PN}-qcom-adreno-a3xx = "${nonarch_base_libdir}/firmware/qcom/a300_*.fw ${nonarch_base_libdir}/firmware/a300_*.fw"
921FILES_${PN}-qcom-adreno-a530 = "${nonarch_base_libdir}/firmware/qcom/a530*.*"
Andrew Geissler1e34c2d2020-05-29 16:02:59 -0500922FILES_${PN}-qcom-adreno-a630 = "${nonarch_base_libdir}/firmware/qcom/a630*.* ${nonarch_base_libdir}/firmware/qcom/sdm845/a630*.*"
Andrew Geissler82c905d2020-04-13 13:39:40 -0500923FILES_${PN}-qcom-sdm845-audio = "${nonarch_base_libdir}/firmware/qcom/sdm845/adsp*.*"
924FILES_${PN}-qcom-sdm845-compute = "${nonarch_base_libdir}/firmware/qcom/sdm845/cdsp*.*"
Andrew Geissler1e34c2d2020-05-29 16:02:59 -0500925FILES_${PN}-qcom-sdm845-modem = "${nonarch_base_libdir}/firmware/qcom/sdm845/mba.mbn ${nonarch_base_libdir}/firmware/qcom/sdm845/modem*.* ${nonarch_base_libdir}/firmware/qcom/sdm845/wlanmdsp.mbn"
Andrew Geissler82c905d2020-04-13 13:39:40 -0500926RDEPENDS_${PN}-qcom-venus-1.8 = "${PN}-qcom-license"
927RDEPENDS_${PN}-qcom-venus-4.2 = "${PN}-qcom-license"
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500928RDEPENDS_${PN}-qcom-venus-5.2 = "${PN}-qcom-license"
929RDEPENDS_${PN}-qcom-venus-5.4 = "${PN}-qcom-license"
Andrew Geissler82c905d2020-04-13 13:39:40 -0500930RDEPENDS_${PN}-qcom-adreno-a3xx = "${PN}-qcom-license"
931RDEPENDS_${PN}-qcom-adreno-a530 = "${PN}-qcom-license"
Andrew Geissler1e34c2d2020-05-29 16:02:59 -0500932RDEPENDS_${PN}-qcom-adreno-a630 = "${PN}-qcom-license"
Andrew Geissler82c905d2020-04-13 13:39:40 -0500933RDEPENDS_${PN}-qcom-sdm845-audio = "${PN}-qcom-license"
934RDEPENDS_${PN}-qcom-sdm845-compute = "${PN}-qcom-license"
935RDEPENDS_${PN}-qcom-sdm845-modem = "${PN}-qcom-license"
936
937FILES_${PN}-liquidio = "${nonarch_base_libdir}/firmware/liquidio"
938
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500939# For Amlogic VDEC
940LICENSE_${PN}-amlogic-vdec = "Firmware-amlogic_vdec"
941FILES_${PN}-amlogic-vdec-license = "${nonarch_base_libdir}/firmware/LICENSE.amlogic_vdec"
942FILES_${PN}-amlogic-vdec = "${nonarch_base_libdir}/firmware/meson/vdec/*"
943RDEPENDS_${PN}-amlogic-vdec = "${PN}-amlogic-vdec-license"
944
Andrew Geissler82c905d2020-04-13 13:39:40 -0500945# For other firmwares
946# Maybe split out to separate packages when needed.
947LICENSE_${PN} = "\
948 Firmware-Abilis \
949 & Firmware-agere \
950 & Firmware-amdgpu \
951 & Firmware-amd-ucode \
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500952 & Firmware-amlogic_vdec \
Andrew Geissler82c905d2020-04-13 13:39:40 -0500953 & Firmware-atmel \
954 & Firmware-ca0132 \
955 & Firmware-cavium \
956 & Firmware-chelsio_firmware \
957 & Firmware-cw1200 \
958 & Firmware-dib0700 \
959 & Firmware-e100 \
960 & Firmware-ene_firmware \
961 & Firmware-fw_sst_0f28 \
962 & Firmware-go7007 \
963 & Firmware-hfi1_firmware \
964 & Firmware-i2400m \
965 & Firmware-ibt_firmware \
966 & Firmware-it913x \
967 & Firmware-IntcSST2 \
968 & Firmware-kaweth \
969 & Firmware-moxa \
970 & Firmware-myri10ge_firmware \
971 & Firmware-nvidia \
972 & Firmware-OLPC \
973 & Firmware-ath9k-htc \
974 & Firmware-phanfw \
975 & Firmware-qat \
976 & Firmware-qcom \
977 & Firmware-qla1280 \
978 & Firmware-qla2xxx \
979 & Firmware-r8a779x_usb3 \
980 & Firmware-radeon \
981 & Firmware-ralink_a_mediatek_company_firmware \
982 & Firmware-ralink-firmware \
983 & Firmware-imx-sdma_firmware \
984 & Firmware-siano \
985 & Firmware-tda7706-firmware \
986 & Firmware-ti-connectivity \
987 & Firmware-ti-keystone \
988 & Firmware-ueagle-atm4-firmware \
989 & Firmware-wl1251 \
990 & Firmware-xc4000 \
991 & Firmware-xc5000 \
992 & Firmware-xc5000c \
993 & WHENCE \
994"
995
996FILES_${PN}-license += "${nonarch_base_libdir}/firmware/LICEN*"
997FILES_${PN} += "${nonarch_base_libdir}/firmware/*"
998RDEPENDS_${PN} += "${PN}-license"
999RDEPENDS_${PN} += "${PN}-whence-license"
1000
1001# Make linux-firmware depend on all of the split-out packages.
1002# Make linux-firmware-iwlwifi depend on all of the split-out iwlwifi packages.
1003# Make linux-firmware-ibt depend on all of the split-out ibt packages.
1004python populate_packages_prepend () {
1005 firmware_pkgs = oe.utils.packages_filter_out_system(d)
1006 d.appendVar('RRECOMMENDS_linux-firmware', ' ' + ' '.join(firmware_pkgs))
1007
1008 iwlwifi_pkgs = filter(lambda x: x.find('-iwlwifi-') != -1, firmware_pkgs)
1009 d.appendVar('RRECOMMENDS_linux-firmware-iwlwifi', ' ' + ' '.join(iwlwifi_pkgs))
1010
1011 ibt_pkgs = filter(lambda x: x.find('-ibt-') != -1, firmware_pkgs)
1012 d.appendVar('RRECOMMENDS_linux-firmware-ibt', ' ' + ' '.join(ibt_pkgs))
1013}
1014
1015# Firmware files are generally not ran on the CPU, so they can be
1016# allarch despite being architecture specific
1017INSANE_SKIP = "arch"