blob: cf7abb0f96a20f03245d4fd5445a80fca3938600 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Firmware files for use with Linux kernel"
2SECTION = "kernel"
3
4LICENSE = "\
5 Firmware-Abilis \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05006 & Firmware-adsp_sst \
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007 & Firmware-agere \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05008 & Firmware-amdgpu \
Patrick Williamsc124f4f2015-09-15 14:41:29 -05009 & Firmware-amd-ucode \
10 & Firmware-atheros_firmware \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050011 & Firmware-atmel \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012 & Firmware-broadcom_bcm43xx \
13 & Firmware-ca0132 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050014 & Firmware-cavium \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015 & Firmware-chelsio_firmware \
16 & Firmware-cw1200 \
Brad Bishopd5ae7d92018-06-14 09:52:03 -070017 & Firmware-cypress \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050018 & Firmware-dib0700 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050019 & Firmware-e100 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050020 & Firmware-ene_firmware \
21 & Firmware-fw_sst_0f28 \
22 & Firmware-go7007 \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050023 & Firmware-GPLv2 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050024 & Firmware-hfi1_firmware \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050025 & Firmware-i2400m \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050026 & Firmware-i915 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050027 & Firmware-ibt_firmware \
28 & Firmware-it913x \
29 & Firmware-iwlwifi_firmware \
30 & Firmware-IntcSST2 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050031 & Firmware-kaweth \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050032 & Firmware-Marvell \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050033 & Firmware-moxa \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050034 & Firmware-myri10ge_firmware \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050035 & Firmware-netronome \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050036 & Firmware-nvidia \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050037 & Firmware-OLPC \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050038 & Firmware-ath9k-htc \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050039 & Firmware-phanfw \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050040 & Firmware-qat \
Brad Bishop316dfdd2018-06-25 12:45:53 -040041 & Firmware-qcom \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050042 & Firmware-qla1280 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050043 & Firmware-qla2xxx \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050044 & Firmware-qualcommAthos_ar3k \
45 & Firmware-qualcommAthos_ath10k \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050046 & Firmware-r8a779x_usb3 \
47 & Firmware-radeon \
48 & Firmware-ralink_a_mediatek_company_firmware \
49 & Firmware-ralink-firmware \
50 & Firmware-rtlwifi_firmware \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050051 & Firmware-imx-sdma_firmware \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050052 & Firmware-siano \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050053 & Firmware-tda7706-firmware \
54 & Firmware-ti-connectivity \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050055 & Firmware-ti-keystone \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050056 & Firmware-ueagle-atm4-firmware \
57 & Firmware-via_vt6656 \
58 & Firmware-wl1251 \
59 & Firmware-xc4000 \
60 & Firmware-xc5000 \
61 & Firmware-xc5000c \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060062 & WHENCE \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050063"
64
65LIC_FILES_CHKSUM = "\
66 file://LICENCE.Abilis;md5=b5ee3f410780e56711ad48eadc22b8bc \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050067 file://LICENCE.adsp_sst;md5=615c45b91a5a4a9fe046d6ab9a2df728 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050068 file://LICENCE.agere;md5=af0133de6b4a9b2522defd5f188afd31 \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050069 file://LICENSE.amdgpu;md5=0aa3c2f3e736af320a08a3aeeccecf29 \
Brad Bishopd5ae7d92018-06-14 09:52:03 -070070 file://LICENSE.amd-ucode;md5=3c5399dc9148d7f0e1f41e34b69cf14f \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050071 file://LICENCE.atheros_firmware;md5=30a14c7823beedac9fa39c64fdd01a13 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050072 file://LICENSE.atmel;md5=aa74ac0c60595dee4d4e239107ea77a3 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050073 file://LICENCE.broadcom_bcm43xx;md5=3160c14df7228891b868060e1951dfbc \
74 file://LICENCE.ca0132;md5=209b33e66ee5be0461f13d31da392198 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050075 file://LICENCE.cavium;md5=c37aaffb1ebe5939b2580d073a95daea \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050076 file://LICENCE.chelsio_firmware;md5=819aa8c3fa453f1b258ed8d168a9d903 \
77 file://LICENCE.cw1200;md5=f0f770864e7a8444a5c5aa9d12a3a7ed \
Brad Bishopd5ae7d92018-06-14 09:52:03 -070078 file://LICENCE.cypress;md5=48cd9436c763bf873961f9ed7b5c147b \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050079 file://LICENSE.dib0700;md5=f7411825c8a555a1a3e5eab9ca773431 \
80 file://LICENCE.e100;md5=ec0f84136766df159a3ae6d02acdf5a8 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050081 file://LICENCE.ene_firmware;md5=ed67f0f62f8f798130c296720b7d3921 \
82 file://LICENCE.fw_sst_0f28;md5=6353931c988ad52818ae733ac61cd293 \
83 file://LICENCE.go7007;md5=c0bb9f6aaaba55b0529ee9b30aa66beb \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050084 file://GPL-2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050085 file://LICENSE.hfi1_firmware;md5=5e7b6e586ce7339d12689e49931ad444 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050086 file://LICENCE.i2400m;md5=14b901969e23c41881327c0d9e4b7d36 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050087 file://LICENSE.i915;md5=2b0b2e0d20984affd4490ba2cba02570 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050088 file://LICENCE.ibt_firmware;md5=fdbee1ddfe0fb7ab0b2fcd6b454a366b \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050089 file://LICENCE.IntcSST2;md5=9e7d8bea77612d7cc7d9e9b54b623062 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050090 file://LICENCE.it913x;md5=1fbf727bfb6a949810c4dbfa7e6ce4f8 \
91 file://LICENCE.iwlwifi_firmware;md5=3fd842911ea93c29cd32679aa23e1c88 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050092 file://LICENCE.kaweth;md5=b1d876e562f4b3b8d391ad8395dfe03f \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050093 file://LICENCE.Marvell;md5=9ddea1734a4baf3c78d845151f42a37a \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050094 file://LICENCE.moxa;md5=1086614767d8ccf744a923289d3d4261 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050095 file://LICENCE.myri10ge_firmware;md5=42e32fb89f6b959ca222e25ac8df8fed \
Brad Bishop316dfdd2018-06-25 12:45:53 -040096 file://LICENCE.Netronome;md5=4add08f2577086d44447996503cddf5f \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050097 file://LICENCE.nvidia;md5=4428a922ed3ba2ceec95f076a488ce07 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050098 file://LICENCE.OLPC;md5=5b917f9d8c061991be4f6f5f108719cd \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050099 file://LICENCE.open-ath9k-htc-firmware;md5=1b33c9f4d17bc4d457bdb23727046837 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500100 file://LICENCE.phanfw;md5=954dcec0e051f9409812b561ea743bfa \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500101 file://LICENCE.qat_firmware;md5=9e7d8bea77612d7cc7d9e9b54b623062 \
Brad Bishop316dfdd2018-06-25 12:45:53 -0400102 file://LICENSE.qcom;md5=164e3362a538eb11d3ac51e8e134294b \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500103 file://LICENCE.qla1280;md5=d6895732e622d950609093223a2c4f5d \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500104 file://LICENCE.qla2xxx;md5=505855e921b75f1be4a437ad9b79dff0 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500105 file://LICENSE.QualcommAtheros_ar3k;md5=b5fe244fb2b532311de1472a3bc06da5 \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500106 file://LICENSE.QualcommAtheros_ath10k;md5=cb42b686ee5f5cb890275e4321db60a8 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500107 file://LICENCE.r8a779x_usb3;md5=4c1671656153025d7076105a5da7e498 \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500108 file://LICENSE.radeon;md5=68ec28bacb3613200bca44f404c69b16 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500109 file://LICENCE.ralink_a_mediatek_company_firmware;md5=728f1a85fd53fd67fa8d7afb080bc435 \
110 file://LICENCE.ralink-firmware.txt;md5=ab2c269277c45476fb449673911a2dfd \
111 file://LICENCE.rtlwifi_firmware.txt;md5=00d06cfd3eddd5a2698948ead2ad54a5 \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500112 file://LICENSE.sdma_firmware;md5=51e8c19ecc2270f4b8ea30341ad63ce9 \
113 file://LICENCE.siano;md5=4556c1bf830067f12ca151ad953ec2a5 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500114 file://LICENCE.tda7706-firmware.txt;md5=835997cf5e3c131d0dddd695c7d9103e \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500115 file://LICENCE.ti-connectivity;md5=c5e02be633f1499c109d1652514d85ec \
116 file://LICENCE.ti-keystone;md5=3a86335d32864b0bef996bee26cc0f2c \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500117 file://LICENCE.ueagle-atm4-firmware;md5=4ed7ea6b507ccc583b9d594417714118 \
118 file://LICENCE.via_vt6656;md5=e4159694cba42d4377a912e78a6e850f \
119 file://LICENCE.wl1251;md5=ad3f81922bb9e197014bb187289d3b5b \
120 file://LICENCE.xc4000;md5=0ff51d2dc49fce04814c9155081092f0 \
121 file://LICENCE.xc5000;md5=1e170c13175323c32c7f4d0998d53f66 \
122 file://LICENCE.xc5000c;md5=12b02efa3049db65d524aeb418dd87ca \
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700123 file://WHENCE;md5=eaaf310bac02fee05ea1b334f58c5caf \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500124"
125
126# These are not common licenses, set NO_GENERIC_LICENSE for them
127# so that the license files will be copied from fetched source
128NO_GENERIC_LICENSE[Firmware-Abilis] = "LICENCE.Abilis"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500129NO_GENERIC_LICENSE[Firmware-adsp_sst] = "LICENCE.adsp_sst"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500130NO_GENERIC_LICENSE[Firmware-agere] = "LICENCE.agere"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500131NO_GENERIC_LICENSE[Firmware-amdgpu] = "LICENSE.amdgpu"
132NO_GENERIC_LICENSE[Firmware-amd-ucode] = "LICENSE.amd-ucode"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500133NO_GENERIC_LICENSE[Firmware-atheros_firmware] = "LICENCE.atheros_firmware"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500134NO_GENERIC_LICENSE[Firmware-atmel] = "LICENSE.atmel"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500135NO_GENERIC_LICENSE[Firmware-broadcom_bcm43xx] = "LICENCE.broadcom_bcm43xx"
136NO_GENERIC_LICENSE[Firmware-ca0132] = "LICENCE.ca0132"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500137NO_GENERIC_LICENSE[Firmware-cavium] = "LICENCE.cavium"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500138NO_GENERIC_LICENSE[Firmware-chelsio_firmware] = "LICENCE.chelsio_firmware"
139NO_GENERIC_LICENSE[Firmware-cw1200] = "LICENCE.cw1200"
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700140NO_GENERIC_LICENSE[Firmware-cypress] = "LICENCE.cypress"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500141NO_GENERIC_LICENSE[Firmware-dib0700] = "LICENSE.dib0700"
142NO_GENERIC_LICENSE[Firmware-e100] = "LICENCE.e100"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500143NO_GENERIC_LICENSE[Firmware-ene_firmware] = "LICENCE.ene_firmware"
144NO_GENERIC_LICENSE[Firmware-fw_sst_0f28] = "LICENCE.fw_sst_0f28"
145NO_GENERIC_LICENSE[Firmware-go7007] = "LICENCE.go7007"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500146NO_GENERIC_LICENSE[Firmware-GPLv2] = "GPL-2"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500147NO_GENERIC_LICENSE[Firmware-hfi1_firmware] = "LICENSE.hfi1_firmware"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500148NO_GENERIC_LICENSE[Firmware-i2400m] = "LICENCE.i2400m"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500149NO_GENERIC_LICENSE[Firmware-i915] = "LICENSE.i915"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500150NO_GENERIC_LICENSE[Firmware-ibt_firmware] = "LICENCE.ibt_firmware"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500151NO_GENERIC_LICENSE[Firmware-IntcSST2] = "LICENCE.IntcSST2"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500152NO_GENERIC_LICENSE[Firmware-it913x] = "LICENCE.it913x"
153NO_GENERIC_LICENSE[Firmware-iwlwifi_firmware] = "LICENCE.iwlwifi_firmware"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500154NO_GENERIC_LICENSE[Firmware-kaweth] = "LICENCE.kaweth"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500155NO_GENERIC_LICENSE[Firmware-Marvell] = "LICENCE.Marvell"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500156NO_GENERIC_LICENSE[Firmware-moxa] = "LICENCE.moxa"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500157NO_GENERIC_LICENSE[Firmware-myri10ge_firmware] = "LICENCE.myri10ge_firmware"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500158NO_GENERIC_LICENSE[Firmware-netronome] = "LICENCE.Netronome"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500159NO_GENERIC_LICENSE[Firmware-nvidia] = "LICENCE.nvidia"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500160NO_GENERIC_LICENSE[Firmware-OLPC] = "LICENCE.OLPC"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500161NO_GENERIC_LICENSE[Firmware-ath9k-htc] = "LICENCE.open-ath9k-htc-firmware"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500162NO_GENERIC_LICENSE[Firmware-phanfw] = "LICENCE.phanfw"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500163NO_GENERIC_LICENSE[Firmware-qat] = "LICENCE.qat_firmware"
Brad Bishop316dfdd2018-06-25 12:45:53 -0400164NO_GENERIC_LICENSE[Firmware-qcom] = "LICENSE.qcom"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500165NO_GENERIC_LICENSE[Firmware-qla1280] = "LICENCE.qla1280"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500166NO_GENERIC_LICENSE[Firmware-qla2xxx] = "LICENCE.qla2xxx"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500167NO_GENERIC_LICENSE[Firmware-qualcommAthos_ar3k] = "LICENSE.QualcommAtheros_ar3k"
168NO_GENERIC_LICENSE[Firmware-qualcommAthos_ath10k] = "LICENSE.QualcommAtheros_ath10k"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500169NO_GENERIC_LICENSE[Firmware-r8a779x_usb3] = "LICENCE.r8a779x_usb3"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500170NO_GENERIC_LICENSE[Firmware-radeon] = "LICENSE.radeon"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500171NO_GENERIC_LICENSE[Firmware-ralink_a_mediatek_company_firmware] = "LICENCE.ralink_a_mediatek_company_firmware"
172NO_GENERIC_LICENSE[Firmware-ralink-firmware] = "LICENCE.ralink-firmware.txt"
173NO_GENERIC_LICENSE[Firmware-rtlwifi_firmware] = "LICENCE.rtlwifi_firmware.txt"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500174NO_GENERIC_LICENSE[Firmware-siano] = "LICENCE.siano"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500175NO_GENERIC_LICENSE[Firmware-imx-sdma_firmware] = "LICENSE.sdma_firmware"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500176NO_GENERIC_LICENSE[Firmware-tda7706-firmware] = "LICENCE.tda7706-firmware.txt"
177NO_GENERIC_LICENSE[Firmware-ti-connectivity] = "LICENCE.ti-connectivity"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500178NO_GENERIC_LICENSE[Firmware-ti-keystone] = "LICENCE.ti-keystone"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500179NO_GENERIC_LICENSE[Firmware-ueagle-atm4-firmware] = "LICENCE.ueagle-atm4-firmware"
180NO_GENERIC_LICENSE[Firmware-via_vt6656] = "LICENCE.via_vt6656"
181NO_GENERIC_LICENSE[Firmware-wl1251] = "LICENCE.wl1251"
182NO_GENERIC_LICENSE[Firmware-xc4000] = "LICENCE.xc4000"
183NO_GENERIC_LICENSE[Firmware-xc5000] = "LICENCE.xc5000"
184NO_GENERIC_LICENSE[Firmware-xc5000c] = "LICENCE.xc5000c"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600185NO_GENERIC_LICENSE[WHENCE] = "WHENCE"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500186
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700187SRCREV = "d1147327232ec4616a66ab898df84f9700c816c1"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500188PE = "1"
189PV = "0.0+git${SRCPV}"
190
191SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git"
192
Brad Bishop316dfdd2018-06-25 12:45:53 -0400193UPSTREAM_CHECK_COMMITS = "1"
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500194
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500195S = "${WORKDIR}/git"
196
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500197inherit allarch
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500198
199CLEANBROKEN = "1"
200
201do_compile() {
202 :
203}
204
205do_install() {
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500206 install -d ${D}${nonarch_base_libdir}/firmware/
207 cp -r * ${D}${nonarch_base_libdir}/firmware/
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500208
209 # Avoid Makefile to be deployed
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500210 rm ${D}${nonarch_base_libdir}/firmware/Makefile
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500211
212 # Remove unbuild firmware which needs cmake and bash
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500213 rm ${D}${nonarch_base_libdir}/firmware/carl9170fw -rf
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500214
215 # Remove pointless bash script
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500216 rm ${D}${nonarch_base_libdir}/firmware/configure
217
218 # Remove python script used to check the WHENCE file
219 rm ${D}${nonarch_base_libdir}/firmware/check_whence.py
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500220
221 # Libertas sd8686
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500222 ln -sf libertas/sd8686_v9.bin ${D}${nonarch_base_libdir}/firmware/sd8686.bin
223 ln -sf libertas/sd8686_v9_helper.bin ${D}${nonarch_base_libdir}/firmware/sd8686_helper.bin
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500224
225 # fixup wl12xx location, after 2.6.37 the kernel searches a different location for it
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500226 ( cd ${D}${nonarch_base_libdir}/firmware ; ln -sf ti-connectivity/* . )
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500227}
228
229
230PACKAGES =+ "${PN}-ralink-license ${PN}-ralink \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500231 ${PN}-mt7601u-license ${PN}-mt7601u \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500232 ${PN}-radeon-license ${PN}-radeon \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500233 ${PN}-marvell-license ${PN}-pcie8897 ${PN}-pcie8997 \
234 ${PN}-sd8686 ${PN}-sd8688 ${PN}-sd8787 ${PN}-sd8797 ${PN}-sd8801 ${PN}-sd8887 ${PN}-sd8897 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500235 ${PN}-ti-connectivity-license ${PN}-wl12xx ${PN}-wl18xx \
236 ${PN}-vt6656-license ${PN}-vt6656 \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500237 ${PN}-rtl-license ${PN}-rtl8188 ${PN}-rtl8192cu ${PN}-rtl8192ce ${PN}-rtl8192su ${PN}-rtl8723 ${PN}-rtl8821 \
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700238 ${PN}-rtl8168 \
239 ${PN}-cypress-license \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500240 ${PN}-broadcom-license \
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700241 ${PN}-bcm-0bb4-0306 \
242 ${PN}-bcm43143 \
243 ${PN}-bcm43236b \
244 ${PN}-bcm43241b0 \
245 ${PN}-bcm43241b4 \
246 ${PN}-bcm43241b5 \
247 ${PN}-bcm43242a \
248 ${PN}-bcm4329 \
249 ${PN}-bcm4329-fullmac \
250 ${PN}-bcm4330 \
251 ${PN}-bcm4334 \
252 ${PN}-bcm43340 \
253 ${PN}-bcm4335 \
254 ${PN}-bcm43362 \
255 ${PN}-bcm4339 \
256 ${PN}-bcm43430 \
257 ${PN}-bcm43430a0 \
258 ${PN}-bcm43455 \
259 ${PN}-bcm4350 \
260 ${PN}-bcm4350c2 \
261 ${PN}-bcm4354 \
262 ${PN}-bcm4356 \
263 ${PN}-bcm4356-pcie \
264 ${PN}-bcm43569 \
265 ${PN}-bcm43570 \
266 ${PN}-bcm4358 \
267 ${PN}-bcm43602 \
268 ${PN}-bcm4366b \
269 ${PN}-bcm4371 \
270 ${PN}-bcm4373 \
271 ${PN}-bcm43xx \
272 ${PN}-bcm43xx-hdr \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500273 ${PN}-atheros-license ${PN}-ar9170 ${PN}-ath6k ${PN}-ath9k \
274 ${PN}-gplv2-license ${PN}-carl9170 \
275 ${PN}-ar3k-license ${PN}-ar3k ${PN}-ath10k-license ${PN}-ath10k ${PN}-qca \
276 \
277 ${PN}-imx-sdma-license ${PN}-imx-sdma-imx6q ${PN}-imx-sdma-imx7d \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500278 \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600279 ${PN}-iwlwifi-license ${PN}-iwlwifi \
280 ${PN}-iwlwifi-135-6 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500281 ${PN}-iwlwifi-3160-7 ${PN}-iwlwifi-3160-8 ${PN}-iwlwifi-3160-9 \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500282 ${PN}-iwlwifi-3160-10 ${PN}-iwlwifi-3160-12 ${PN}-iwlwifi-3160-13 \
283 ${PN}-iwlwifi-3160-16 ${PN}-iwlwifi-3160-17 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500284 ${PN}-iwlwifi-6000-4 ${PN}-iwlwifi-6000g2a-5 ${PN}-iwlwifi-6000g2a-6 \
285 ${PN}-iwlwifi-6000g2b-5 ${PN}-iwlwifi-6000g2b-6 \
286 ${PN}-iwlwifi-6050-4 ${PN}-iwlwifi-6050-5 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500287 ${PN}-iwlwifi-7260 \
288 ${PN}-iwlwifi-7265 \
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500289 ${PN}-iwlwifi-7265d ${PN}-iwlwifi-8000c ${PN}-iwlwifi-8265 \
Brad Bishop316dfdd2018-06-25 12:45:53 -0400290 ${PN}-iwlwifi-9000 \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600291 ${PN}-iwlwifi-misc \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500292 ${PN}-ibt-license ${PN}-ibt ${PN}-ibt-misc \
293 ${PN}-ibt-11-5 ${PN}-ibt-12-16 ${PN}-ibt-hw-37-7 ${PN}-ibt-hw-37-8 \
Brad Bishop316dfdd2018-06-25 12:45:53 -0400294 ${PN}-ibt-17 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500295 ${PN}-i915-license ${PN}-i915 \
296 ${PN}-adsp-sst-license ${PN}-adsp-sst \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600297 ${PN}-bnx2-mips \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500298 ${PN}-netronome-license ${PN}-netronome \
299 ${PN}-qat ${PN}-qat-license \
Brad Bishop316dfdd2018-06-25 12:45:53 -0400300 ${PN}-qcom-license \
301 ${PN}-qcom-venus-1.8 ${PN}-qcom-venus-4.2 \
302 ${PN}-qcom-adreno-a3xx ${PN}-qcom-adreno-a530 \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600303 ${PN}-whence-license \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500304 ${PN}-license \
305 "
306
307# For atheros
308LICENSE_${PN}-ar9170 = "Firmware-atheros_firmware"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500309LICENSE_${PN}-ath6k = "Firmware-atheros_firmware"
310LICENSE_${PN}-ath9k = "Firmware-atheros_firmware"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600311LICENSE_${PN}-atheros-license = "Firmware-atheros_firmware"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500312
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500313FILES_${PN}-atheros-license = "${nonarch_base_libdir}/firmware/LICENCE.atheros_firmware"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500314FILES_${PN}-ar9170 = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500315 ${nonarch_base_libdir}/firmware/ar9170*.fw \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600316"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500317FILES_${PN}-ath6k = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500318 ${nonarch_base_libdir}/firmware/ath6k \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500319"
320FILES_${PN}-ath9k = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500321 ${nonarch_base_libdir}/firmware/ar9271.fw \
322 ${nonarch_base_libdir}/firmware/ar7010*.fw \
323 ${nonarch_base_libdir}/firmware/htc_9271.fw \
324 ${nonarch_base_libdir}/firmware/htc_7010.fw \
325 ${nonarch_base_libdir}/firmware/ath9k_htc/htc_7010-1.4.0.fw \
326 ${nonarch_base_libdir}/firmware/ath9k_htc/htc_9271-1.4.0.fw \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500327"
328
329RDEPENDS_${PN}-ar9170 += "${PN}-atheros-license"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500330RDEPENDS_${PN}-ath6k += "${PN}-atheros-license"
331RDEPENDS_${PN}-ath9k += "${PN}-atheros-license"
332
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500333# For carl9170
334LICENSE_${PN}-carl9170 = "Firmware-GPLv2"
335LICENSE_${PN}-gplv2-license = "Firmware-GPLv2"
336
337FILES_${PN}-gplv2-license = "${nonarch_base_libdir}/firmware/GPL-2"
338FILES_${PN}-carl9170 = " \
339 ${nonarch_base_libdir}/firmware/carl9170*.fw \
340"
341
342RDEPENDS_${PN}-carl9170 += "${PN}-gplv2-license"
343
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500344# For QualCommAthos
345LICENSE_${PN}-ar3k = "Firmware-qualcommAthos_ar3k"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600346LICENSE_${PN}-ar3k-license = "Firmware-qualcommAthos_ar3k"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500347LICENSE_${PN}-ath10k = "Firmware-qualcommAthos_ath10k"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600348LICENSE_${PN}-ath10k-license = "Firmware-qualcommAthos_ath10k"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500349LICENSE_${PN}-qca = "Firmware-qualcommAthos_ath10k"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500350
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500351FILES_${PN}-ar3k-license = "${nonarch_base_libdir}/firmware/LICENSE.QualcommAtheros_ar3k"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500352FILES_${PN}-ar3k = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500353 ${nonarch_base_libdir}/firmware/ar3k \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500354"
355
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500356FILES_${PN}-ath10k-license = "${nonarch_base_libdir}/firmware/LICENSE.QualcommAtheros_ath10k"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500357FILES_${PN}-ath10k = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500358 ${nonarch_base_libdir}/firmware/ath10k \
359"
360
361FILES_${PN}-qca = " \
362 ${nonarch_base_libdir}/firmware/qca \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500363"
364
365RDEPENDS_${PN}-ar3k += "${PN}-ar3k-license"
366RDEPENDS_${PN}-ath10k += "${PN}-ath10k-license"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500367RDEPENDS_${PN}-qca += "${PN}-ath10k-license"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500368
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500369# For ralink
370LICENSE_${PN}-ralink = "Firmware-ralink-firmware"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600371LICENSE_${PN}-ralink-license = "Firmware-ralink-firmware"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500372
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500373FILES_${PN}-ralink-license = "${nonarch_base_libdir}/firmware/LICENCE.ralink-firmware.txt"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500374FILES_${PN}-ralink = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500375 ${nonarch_base_libdir}/firmware/rt*.bin \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500376"
377
378RDEPENDS_${PN}-ralink += "${PN}-ralink-license"
379
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500380# For mediatek MT7601U
381LICENSE_${PN}-mt7601u = "Firmware-ralink_a_mediatek_company_firmware"
382LICENSE_${PN}-mt7601u-license = "Firmware-ralink_a_mediatek_company_firmware"
383
384FILES_${PN}-mt7601u-license = "${nonarch_base_libdir}/firmware/LICENCE.ralink_a_mediatek_company_firmware"
385FILES_${PN}-mt7601u = " \
386 ${nonarch_base_libdir}/firmware/mt7601u.bin \
387"
388
389RDEPENDS_${PN}-mt7601u += "${PN}-mt7601u-license"
390
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500391# For radeon
392LICENSE_${PN}-radeon = "Firmware-radeon"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600393LICENSE_${PN}-radeon-license = "Firmware-radeon"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500394
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500395FILES_${PN}-radeon-license = "${nonarch_base_libdir}/firmware/LICENSE.radeon"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500396FILES_${PN}-radeon = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500397 ${nonarch_base_libdir}/firmware/radeon \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500398"
399
400RDEPENDS_${PN}-radeon += "${PN}-radeon-license"
401
402# For marvell
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500403LICENSE_${PN}-pcie8897 = "Firmware-Marvell"
404LICENSE_${PN}-pcie8997 = "Firmware-Marvell"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500405LICENSE_${PN}-sd8686 = "Firmware-Marvell"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500406LICENSE_${PN}-sd8688 = "Firmware-Marvell"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500407LICENSE_${PN}-sd8787 = "Firmware-Marvell"
408LICENSE_${PN}-sd8797 = "Firmware-Marvell"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500409LICENSE_${PN}-sd8801 = "Firmware-Marvell"
410LICENSE_${PN}-sd8887 = "Firmware-Marvell"
411LICENSE_${PN}-sd8897 = "Firmware-Marvell"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600412LICENSE_${PN}-marvell-license = "Firmware-Marvell"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500413
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500414FILES_${PN}-marvell-license = "${nonarch_base_libdir}/firmware/LICENCE.Marvell"
415FILES_${PN}-pcie8897 = " \
416 ${nonarch_base_libdir}/firmware/mrvl/pcie8897_uapsta.bin \
417"
418FILES_${PN}-pcie8997 = " \
419 ${nonarch_base_libdir}/firmware/mrvl/pcie8997_wlan_v4.bin \
420 ${nonarch_base_libdir}/firmware/mrvl/pcieuart8997_combo_v4.bin \
421 ${nonarch_base_libdir}/firmware/mrvl/pcieusb8997_combo_v4.bin \
422"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500423FILES_${PN}-sd8686 = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500424 ${nonarch_base_libdir}/firmware/libertas/sd8686_v9* \
425 ${nonarch_base_libdir}/firmware/sd8686* \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500426"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500427FILES_${PN}-sd8688 = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500428 ${nonarch_base_libdir}/firmware/libertas/sd8688* \
429 ${nonarch_base_libdir}/firmware/mrvl/sd8688* \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500430"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500431FILES_${PN}-sd8787 = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500432 ${nonarch_base_libdir}/firmware/mrvl/sd8787_uapsta.bin \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500433"
434FILES_${PN}-sd8797 = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500435 ${nonarch_base_libdir}/firmware/mrvl/sd8797_uapsta.bin \
436"
437FILES_${PN}-sd8801 = " \
438 ${nonarch_base_libdir}/firmware/mrvl/sd8801_uapsta.bin \
439"
440FILES_${PN}-sd8887 = " \
441 ${nonarch_base_libdir}/firmware/mrvl/sd8887_uapsta.bin \
442"
443FILES_${PN}-sd8897 = " \
444 ${nonarch_base_libdir}/firmware/mrvl/sd8897_uapsta.bin \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500445"
446
447RDEPENDS_${PN}-sd8686 += "${PN}-marvell-license"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500448RDEPENDS_${PN}-sd8688 += "${PN}-marvell-license"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500449RDEPENDS_${PN}-sd8787 += "${PN}-marvell-license"
450RDEPENDS_${PN}-sd8797 += "${PN}-marvell-license"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500451RDEPENDS_${PN}-sd8801 += "${PN}-marvell-license"
452RDEPENDS_${PN}-sd8887 += "${PN}-marvell-license"
453RDEPENDS_${PN}-sd8897 += "${PN}-marvell-license"
454
455# For netronome
456LICENSE_${PN}-netronome = "Firmware-netronome"
457
458FILES_${PN}-netronome-license = " \
459 ${nonarch_base_libdir}/firmware/LICENCE.Netronome \
460"
461FILES_${PN}-netronome = " \
462 ${nonarch_base_libdir}/firmware/netronome/nic_AMDA0081*.nffw \
463 ${nonarch_base_libdir}/firmware/netronome/nic_AMDA0096*.nffw \
464 ${nonarch_base_libdir}/firmware/netronome/nic_AMDA0097*.nffw \
465 ${nonarch_base_libdir}/firmware/netronome/nic_AMDA0099*.nffw \
466"
467
468RDEPENDS_${PN}-netronome += "${PN}-netronome-license"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500469
470# For rtl
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500471LICENSE_${PN}-rtl8188 = "Firmware-rtlwifi_firmware"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500472LICENSE_${PN}-rtl8192cu = "Firmware-rtlwifi_firmware"
473LICENSE_${PN}-rtl8192ce = "Firmware-rtlwifi_firmware"
474LICENSE_${PN}-rtl8192su = "Firmware-rtlwifi_firmware"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500475LICENSE_${PN}-rtl8723 = "Firmware-rtlwifi_firmware"
476LICENSE_${PN}-rtl8821 = "Firmware-rtlwifi_firmware"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600477LICENSE_${PN}-rtl-license = "Firmware-rtlwifi_firmware"
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700478LICENSE_${PN}-rtl8168 = "WHENCE"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500479
480FILES_${PN}-rtl-license = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500481 ${nonarch_base_libdir}/firmware/LICENCE.rtlwifi_firmware.txt \
482"
483FILES_${PN}-rtl8188 = " \
484 ${nonarch_base_libdir}/firmware/rtlwifi/rtl8188*.bin \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500485"
486FILES_${PN}-rtl8192cu = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500487 ${nonarch_base_libdir}/firmware/rtlwifi/rtl8192cufw*.bin \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500488"
489FILES_${PN}-rtl8192ce = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500490 ${nonarch_base_libdir}/firmware/rtlwifi/rtl8192cfw*.bin \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500491"
492FILES_${PN}-rtl8192su = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500493 ${nonarch_base_libdir}/firmware/rtlwifi/rtl8712u.bin \
494"
495FILES_${PN}-rtl8723 = " \
496 ${nonarch_base_libdir}/firmware/rtlwifi/rtl8723*.bin \
497"
498FILES_${PN}-rtl8821 = " \
499 ${nonarch_base_libdir}/firmware/rtlwifi/rtl8821*.bin \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500500"
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700501FILES_${PN}-rtl8168 = " \
502 ${nonarch_base_libdir}/firmware/rtl_nic/rtl8168*.fw \
503"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500504
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500505RDEPENDS_${PN}-rtl8188 += "${PN}-rtl-license"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500506RDEPENDS_${PN}-rtl8192ce += "${PN}-rtl-license"
507RDEPENDS_${PN}-rtl8192cu += "${PN}-rtl-license"
508RDEPENDS_${PN}-rtl8192su = "${PN}-rtl-license"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500509RDEPENDS_${PN}-rtl8723 += "${PN}-rtl-license"
510RDEPENDS_${PN}-rtl8821 += "${PN}-rtl-license"
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700511RDEPENDS_${PN}-rtl8168 += "${PN}-whence-license"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500512
513# For ti-connectivity
514LICENSE_${PN}-wl12xx = "Firmware-ti-connectivity"
515LICENSE_${PN}-wl18xx = "Firmware-ti-connectivity"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600516LICENSE_${PN}-ti-connectivity-license = "Firmware-ti-connectivity"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500517
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500518FILES_${PN}-ti-connectivity-license = "${nonarch_base_libdir}/firmware/LICENCE.ti-connectivity"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500519FILES_${PN}-wl12xx = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500520 ${nonarch_base_libdir}/firmware/wl12* \
521 ${nonarch_base_libdir}/firmware/TI* \
522 ${nonarch_base_libdir}/firmware/ti-connectivity \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500523"
524FILES_${PN}-wl18xx = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500525 ${nonarch_base_libdir}/firmware/wl18* \
526 ${nonarch_base_libdir}/firmware/TI* \
527 ${nonarch_base_libdir}/firmware/ti-connectivity \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500528"
529
530RDEPENDS_${PN}-wl12xx = "${PN}-ti-connectivity-license"
531RDEPENDS_${PN}-wl18xx = "${PN}-ti-connectivity-license"
532
533# For vt6656
534LICENSE_${PN}-vt6656 = "Firmware-via_vt6656"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600535LICENSE_${PN}-vt6656-license = "Firmware-via_vt6656"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500536
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500537FILES_${PN}-vt6656-license = "${nonarch_base_libdir}/firmware/LICENCE.via_vt6656"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500538FILES_${PN}-vt6656 = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500539 ${nonarch_base_libdir}/firmware/vntwusb.fw \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500540"
541
542RDEPENDS_${PN}-vt6656 = "${PN}-vt6656-license"
543
544# For broadcom
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500545
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700546# 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
547
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600548LICENSE_${PN}-broadcom-license = "Firmware-broadcom_bcm43xx"
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700549FILES_${PN}-broadcom-license = "${nonarch_base_libdir}/firmware/LICENCE.broadcom_bcm43xx"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500550
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700551# 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
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500552
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700553FILES_${PN}-bcm43xx = "${nonarch_base_libdir}/firmware/brcm/bcm43xx-0.fw"
554FILES_${PN}-bcm43xx-hdr = "${nonarch_base_libdir}/firmware/brcm/bcm43xx_hdr-0.fw"
555FILES_${PN}-bcm4329-fullmac = "${nonarch_base_libdir}/firmware/brcm/bcm4329-fullmac-4.bin"
556FILES_${PN}-bcm43236b = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43236b.bin"
557FILES_${PN}-bcm4329 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4329-sdio.bin"
558FILES_${PN}-bcm4330 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4330-sdio.bin"
559FILES_${PN}-bcm4334 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4334-sdio.bin"
560FILES_${PN}-bcm4335 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4335-sdio.bin"
561FILES_${PN}-bcm4339 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4339-sdio.bin"
562FILES_${PN}-bcm43241b0 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43241b0-sdio.bin"
563FILES_${PN}-bcm43241b4 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43241b4-sdio.bin"
564FILES_${PN}-bcm43241b5 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43241b5-sdio.bin"
565FILES_${PN}-bcm43242a = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43242a.bin"
566FILES_${PN}-bcm43143 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43143.bin \
567 ${nonarch_base_libdir}/firmware/brcm/brcmfmac43143-sdio.bin \
568"
569FILES_${PN}-bcm43430a0 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43430a0-sdio.bin"
570FILES_${PN}-bcm43455 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43455-sdio.bin"
571FILES_${PN}-bcm4350c2 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4350c2-pcie.bin"
572FILES_${PN}-bcm4350 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4350-pcie.bin"
573FILES_${PN}-bcm4356 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4356-sdio.bin"
574FILES_${PN}-bcm43569 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43569.bin"
575FILES_${PN}-bcm43570 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43570-pcie.bin"
576FILES_${PN}-bcm4358 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4358-pcie.bin"
577FILES_${PN}-bcm43602 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43602-pcie.bin \
578 ${nonarch_base_libdir}/firmware/brcm/brcmfmac43602-pcie.ap.bin \
579"
580FILES_${PN}-bcm4366b = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4366b-pcie.bin"
581FILES_${PN}-bcm4371 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4371-pcie.bin"
582
583# 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
584# Currently 1st one and last 6 have cypress LICENSE
585
586LICENSE_${PN}-bcm43xx = "Firmware-broadcom_bcm43xx"
587RDEPENDS_${PN}-bcm43xx += "${PN}-broadcom-license"
588LICENSE_${PN}-bcm43xx-hdr = "Firmware-broadcom_bcm43xx"
589RDEPENDS_${PN}-bcm43xx-hdr += "${PN}-broadcom-license"
590LICENSE_${PN}-bcm4329-fullmac = "Firmware-broadcom_bcm43xx"
591RDEPENDS_${PN}-bcm4329-fullmac += "${PN}-broadcom-license"
592LICENSE_${PN}-bcm43236b = "Firmware-broadcom_bcm43xx"
593RDEPENDS_${PN}-bcm43236b += "${PN}-broadcom-license"
594LICENSE_${PN}-bcm4329 = "Firmware-broadcom_bcm43xx"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500595RDEPENDS_${PN}-bcm4329 += "${PN}-broadcom-license"
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700596LICENSE_${PN}-bcm4330 = "Firmware-broadcom_bcm43xx"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500597RDEPENDS_${PN}-bcm4330 += "${PN}-broadcom-license"
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700598LICENSE_${PN}-bcm4334 = "Firmware-broadcom_bcm43xx"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500599RDEPENDS_${PN}-bcm4334 += "${PN}-broadcom-license"
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700600LICENSE_${PN}-bcm4335 = "Firmware-broadcom_bcm43xx"
601RDEPENDS_${PN}-bcm4335 += "${PN}-broadcom-license"
602LICENSE_${PN}-bcm4339 = "Firmware-broadcom_bcm43xx"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500603RDEPENDS_${PN}-bcm4339 += "${PN}-broadcom-license"
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700604LICENSE_${PN}-bcm43241b0 = "Firmware-broadcom_bcm43xx"
605RDEPENDS_${PN}-bcm43241b0 += "${PN}-broadcom-license"
606LICENSE_${PN}-bcm43241b4 = "Firmware-broadcom_bcm43xx"
607RDEPENDS_${PN}-bcm43241b4 += "${PN}-broadcom-license"
608LICENSE_${PN}-bcm43241b5 = "Firmware-broadcom_bcm43xx"
609RDEPENDS_${PN}-bcm43241b5 += "${PN}-broadcom-license"
610LICENSE_${PN}-bcm43242a = "Firmware-broadcom_bcm43xx"
611RDEPENDS_${PN}-bcm43242a += "${PN}-broadcom-license"
612LICENSE_${PN}-bcm43143 = "Firmware-broadcom_bcm43xx"
613RDEPENDS_${PN}-bcm43143 += "${PN}-broadcom-license"
614LICENSE_${PN}-bcm43430a0 = "Firmware-broadcom_bcm43xx"
615RDEPENDS_${PN}-bcm43430a0 += "${PN}-broadcom-license"
616LICENSE_${PN}-bcm43455 = "Firmware-broadcom_bcm43xx"
617RDEPENDS_${PN}-bcm43455 += "${PN}-broadcom-license"
618LICENSE_${PN}-bcm4350c2 = "Firmware-broadcom_bcm43xx"
619RDEPENDS_${PN}-bcm4350c2 += "${PN}-broadcom-license"
620LICENSE_${PN}-bcm4350 = "Firmware-broadcom_bcm43xx"
621RDEPENDS_${PN}-bcm4350 += "${PN}-broadcom-license"
622LICENSE_${PN}-bcm4356 = "Firmware-broadcom_bcm43xx"
623RDEPENDS_${PN}-bcm4356 += "${PN}-broadcom-license"
624LICENSE_${PN}-bcm43569 = "Firmware-broadcom_bcm43xx"
625RDEPENDS_${PN}-bcm43569 += "${PN}-broadcom-license"
626LICENSE_${PN}-bcm43570 = "Firmware-broadcom_bcm43xx"
627RDEPENDS_${PN}-bcm43570 += "${PN}-broadcom-license"
628LICENSE_${PN}-bcm4358 = "Firmware-broadcom_bcm43xx"
629RDEPENDS_${PN}-bcm4358 += "${PN}-broadcom-license"
630LICENSE_${PN}-bcm43602 = "Firmware-broadcom_bcm43xx"
631RDEPENDS_${PN}-bcm43602 += "${PN}-broadcom-license"
632LICENSE_${PN}-bcm4366b = "Firmware-broadcom_bcm43xx"
633RDEPENDS_${PN}-bcm4366b += "${PN}-broadcom-license"
634LICENSE_${PN}-bcm4371 = "Firmware-broadcom_bcm43xx"
635RDEPENDS_${PN}-bcm4371 += "${PN}-broadcom-license"
636
637# For broadcom cypress
638
639LICENSE_${PN}-cypress-license = "Firmware-cypress"
640FILES_${PN}-cypress-license = "${nonarch_base_libdir}/firmware/LICENCE.cypress"
641
642FILES_${PN}-bcm-0bb4-0306 = "${nonarch_base_libdir}/firmware/brcm/BCM-0bb4-0306.hcd"
643FILES_${PN}-bcm43340 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43340-sdio.bin"
644FILES_${PN}-bcm43362 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43362-sdio.bin"
645FILES_${PN}-bcm43430 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43430-sdio.bin"
646FILES_${PN}-bcm4354 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4354-sdio.bin"
647FILES_${PN}-bcm4356-pcie = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4356-pcie.bin"
648FILES_${PN}-bcm4373 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4373-sdio.bin \
649 ${nonarch_base_libdir}/firmware/brcm/brcmfmac4373.bin \
650"
651
652LICENSE_${PN}-bcm-0bb4-0306 = "Firmware-cypress"
653RDEPENDS_${PN}-bcm-0bb4-0306 += "${PN}-cypress-license"
654LICENSE_${PN}-bcm43340 = "Firmware-cypress"
655RDEPENDS_${PN}-bcm43340 += "${PN}-cypress-license"
656LICENSE_${PN}-bcm43362 = "Firmware-cypress"
657RDEPENDS_${PN}-bcm43362 += "${PN}-cypress-license"
658LICENSE_${PN}-bcm43430 = "Firmware-cypress"
659RDEPENDS_${PN}-bcm43430 += "${PN}-cypress-license"
660LICENSE_${PN}-bcm4354 = "Firmware-cypress"
661RDEPENDS_${PN}-bcm4354 += "${PN}-cypress-license"
662LICENSE_${PN}-bcm4356-pcie = "Firmware-cypress"
663RDEPENDS_${PN}-bcm4356-pcie += "${PN}-cypress-license"
664LICENSE_${PN}-bcm4373 = "Firmware-cypress"
665RDEPENDS_${PN}-bcm4373 += "${PN}-cypress-license"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500666
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600667# For Broadcom bnx2-mips
668#
669# which is a separate case to the other Broadcom firmwares since its
670# license is contained in the shared WHENCE file.
671
672LICENSE_${PN}-bnx2-mips = "WHENCE"
673LICENSE_${PN}-whence-license = "WHENCE"
674
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500675FILES_${PN}-bnx2-mips = "${nonarch_base_libdir}/firmware/bnx2/bnx2-mips-09-6.2.1b.fw"
676FILES_${PN}-whence-license = "${nonarch_base_libdir}/firmware/WHENCE"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600677
678RDEPENDS_${PN}-bnx2-mips += "${PN}-whence-license"
679
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500680# For imx-sdma
681LICENSE_${PN}-imx-sdma-imx6q = "Firmware-imx-sdma_firmware"
682LICENSE_${PN}-imx-sdma-imx7d = "Firmware-imx-sdma_firmware"
683LICENSE_${PN}-imx-sdma-license = "Firmware-imx-sdma_firmware"
684
685FILES_${PN}-imx-sdma-imx6q = "${nonarch_base_libdir}/firmware/imx/sdma/sdma-imx6q.bin"
686
687RPROVIDES_${PN}-imx-sdma-imx6q = "firmware-imx-sdma-imx6q"
688RREPLACES_${PN}-imx-sdma-imx6q = "firmware-imx-sdma-imx6q"
689RCONFLICTS_${PN}-imx-sdma-imx6q = "firmware-imx-sdma-imx6q"
690
691FILES_${PN}-imx-sdma-imx7d = "${nonarch_base_libdir}/firmware/imx/sdma/sdma-imx7d.bin"
692
693FILES_${PN}-imx-sdma-license = "${nonarch_base_libdir}/firmware/LICENSE.sdma_firmware"
694
695RDEPENDS_${PN}-imx-sdma-imx6q += "${PN}-imx-sdma-license"
696RDEPENDS_${PN}-imx-sdma-imx7d += "${PN}-imx-sdma-license"
697
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500698# For iwlwifi
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600699LICENSE_${PN}-iwlwifi = "Firmware-iwlwifi_firmware"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500700LICENSE_${PN}-iwlwifi-135-6 = "Firmware-iwlwifi_firmware"
701LICENSE_${PN}-iwlwifi-3160-7 = "Firmware-iwlwifi_firmware"
702LICENSE_${PN}-iwlwifi-3160-8 = "Firmware-iwlwifi_firmware"
703LICENSE_${PN}-iwlwifi-3160-9 = "Firmware-iwlwifi_firmware"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500704LICENSE_${PN}-iwlwifi-3160-10 = "Firmware-iwlwifi_firmware"
705LICENSE_${PN}-iwlwifi-3160-12 = "Firmware-iwlwifi_firmware"
706LICENSE_${PN}-iwlwifi-3160-13 = "Firmware-iwlwifi_firmware"
707LICENSE_${PN}-iwlwifi-3160-16 = "Firmware-iwlwifi_firmware"
708LICENSE_${PN}-iwlwifi-3160-17 = "Firmware-iwlwifi_firmware"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500709LICENSE_${PN}-iwlwifi-6000-4 = "Firmware-iwlwifi_firmware"
710LICENSE_${PN}-iwlwifi-6000g2a-5 = "Firmware-iwlwifi_firmware"
711LICENSE_${PN}-iwlwifi-6000g2a-6 = "Firmware-iwlwifi_firmware"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600712LICENSE_${PN}-iwlwifi-6000g2b-5 = "Firmware-iwlwifi_firmware"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500713LICENSE_${PN}-iwlwifi-6000g2b-6 = "Firmware-iwlwifi_firmware"
714LICENSE_${PN}-iwlwifi-6050-4 = "Firmware-iwlwifi_firmware"
715LICENSE_${PN}-iwlwifi-6050-5 = "Firmware-iwlwifi_firmware"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500716LICENSE_${PN}-iwlwifi-7260 = "Firmware-iwlwifi_firmware"
717LICENSE_${PN}-iwlwifi-7265 = "Firmware-iwlwifi_firmware"
718LICENSE_${PN}-iwlwifi-7265d = "Firmware-iwlwifi_firmware"
719LICENSE_${PN}-iwlwifi-8000c = "Firmware-iwlwifi_firmware"
720LICENSE_${PN}-iwlwifi-8265 = "Firmware-iwlwifi_firmware"
Brad Bishop316dfdd2018-06-25 12:45:53 -0400721LICENSE_${PN}-iwlwifi-9000 = "Firmware-iwlwifi_firmware"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600722LICENSE_${PN}-iwlwifi-misc = "Firmware-iwlwifi_firmware"
723LICENSE_${PN}-iwlwifi-license = "Firmware-iwlwifi_firmware"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500724
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500725
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500726FILES_${PN}-iwlwifi-license = "${nonarch_base_libdir}/firmware/LICENCE.iwlwifi_firmware"
727FILES_${PN}-iwlwifi-135-6 = "${nonarch_base_libdir}/firmware/iwlwifi-135-6.ucode"
728FILES_${PN}-iwlwifi-3160-7 = "${nonarch_base_libdir}/firmware/iwlwifi-3160-7.ucode"
729FILES_${PN}-iwlwifi-3160-8 = "${nonarch_base_libdir}/firmware/iwlwifi-3160-8.ucode"
730FILES_${PN}-iwlwifi-3160-9 = "${nonarch_base_libdir}/firmware/iwlwifi-3160-9.ucode"
731FILES_${PN}-iwlwifi-3160-10 = "${nonarch_base_libdir}/firmware/iwlwifi-3160-10.ucode"
732FILES_${PN}-iwlwifi-3160-12 = "${nonarch_base_libdir}/firmware/iwlwifi-3160-12.ucode"
733FILES_${PN}-iwlwifi-3160-13 = "${nonarch_base_libdir}/firmware/iwlwifi-3160-13.ucode"
734FILES_${PN}-iwlwifi-3160-16 = "${nonarch_base_libdir}/firmware/iwlwifi-3160-16.ucode"
735FILES_${PN}-iwlwifi-3160-17 = "${nonarch_base_libdir}/firmware/iwlwifi-3160-17.ucode"
736FILES_${PN}-iwlwifi-6000-4 = "${nonarch_base_libdir}/firmware/iwlwifi-6000-4.ucode"
737FILES_${PN}-iwlwifi-6000g2a-5 = "${nonarch_base_libdir}/firmware/iwlwifi-6000g2a-5.ucode"
738FILES_${PN}-iwlwifi-6000g2a-6 = "${nonarch_base_libdir}/firmware/iwlwifi-6000g2a-6.ucode"
739FILES_${PN}-iwlwifi-6000g2b-5 = "${nonarch_base_libdir}/firmware/iwlwifi-6000g2b-5.ucode"
740FILES_${PN}-iwlwifi-6000g2b-6 = "${nonarch_base_libdir}/firmware/iwlwifi-6000g2b-6.ucode"
741FILES_${PN}-iwlwifi-6050-4 = "${nonarch_base_libdir}/firmware/iwlwifi-6050-4.ucode"
742FILES_${PN}-iwlwifi-6050-5 = "${nonarch_base_libdir}/firmware/iwlwifi-6050-5.ucode"
743FILES_${PN}-iwlwifi-7260 = "${nonarch_base_libdir}/firmware/iwlwifi-7260-*.ucode"
744FILES_${PN}-iwlwifi-7265 = "${nonarch_base_libdir}/firmware/iwlwifi-7265-*.ucode"
745FILES_${PN}-iwlwifi-7265d = "${nonarch_base_libdir}/firmware/iwlwifi-7265D-*.ucode"
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500746FILES_${PN}-iwlwifi-8000c = "${nonarch_base_libdir}/firmware/iwlwifi-8000C-*.ucode"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500747FILES_${PN}-iwlwifi-8265 = "${nonarch_base_libdir}/firmware/iwlwifi-8265-*.ucode"
Brad Bishop316dfdd2018-06-25 12:45:53 -0400748FILES_${PN}-iwlwifi-9000 = "${nonarch_base_libdir}/firmware/iwlwifi-9000-*.ucode"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500749FILES_${PN}-iwlwifi-misc = "${nonarch_base_libdir}/firmware/iwlwifi-*.ucode"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500750
751RDEPENDS_${PN}-iwlwifi-135-6 = "${PN}-iwlwifi-license"
752RDEPENDS_${PN}-iwlwifi-3160-7 = "${PN}-iwlwifi-license"
753RDEPENDS_${PN}-iwlwifi-3160-8 = "${PN}-iwlwifi-license"
754RDEPENDS_${PN}-iwlwifi-3160-9 = "${PN}-iwlwifi-license"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500755RDEPENDS_${PN}-iwlwifi-3160-10 = "${PN}-iwlwifi-license"
756RDEPENDS_${PN}-iwlwifi-3160-12 = "${PN}-iwlwifi-license"
757RDEPENDS_${PN}-iwlwifi-3160-13 = "${PN}-iwlwifi-license"
758RDEPENDS_${PN}-iwlwifi-3160-16 = "${PN}-iwlwifi-license"
759RDEPENDS_${PN}-iwlwifi-3160-17 = "${PN}-iwlwifi-license"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500760RDEPENDS_${PN}-iwlwifi-6000-4 = "${PN}-iwlwifi-license"
761RDEPENDS_${PN}-iwlwifi-6000g2a-5 = "${PN}-iwlwifi-license"
762RDEPENDS_${PN}-iwlwifi-6000g2a-6 = "${PN}-iwlwifi-license"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600763RDEPENDS_${PN}-iwlwifi-6000g2b-5 = "${PN}-iwlwifi-license"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500764RDEPENDS_${PN}-iwlwifi-6000g2b-6 = "${PN}-iwlwifi-license"
765RDEPENDS_${PN}-iwlwifi-6050-4 = "${PN}-iwlwifi-license"
766RDEPENDS_${PN}-iwlwifi-6050-5 = "${PN}-iwlwifi-license"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500767RDEPENDS_${PN}-iwlwifi-7260 = "${PN}-iwlwifi-license"
768RDEPENDS_${PN}-iwlwifi-7265 = "${PN}-iwlwifi-license"
769RDEPENDS_${PN}-iwlwifi-7265d = "${PN}-iwlwifi-license"
770RDEPENDS_${PN}-iwlwifi-8000c = "${PN}-iwlwifi-license"
771RDEPENDS_${PN}-iwlwifi-8265 = "${PN}-iwlwifi-license"
Brad Bishop316dfdd2018-06-25 12:45:53 -0400772RDEPENDS_${PN}-iwlwifi-9000 = "${PN}-iwlwifi-license"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600773RDEPENDS_${PN}-iwlwifi-misc = "${PN}-iwlwifi-license"
774
775# -iwlwifi-misc is a "catch all" package that includes all the iwlwifi
776# firmwares that are not already included in other -iwlwifi- packages.
777# -iwlwifi is a virtual package that depends upon all iwlwifi packages.
778# These are distinct in order to allow the -misc firmwares to be installed
779# without pulling in every other iwlwifi package.
780ALLOW_EMPTY_${PN}-iwlwifi = "1"
781ALLOW_EMPTY_${PN}-iwlwifi-misc = "1"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500782
783# Handle package updating for the newly merged iwlwifi groupings
784RPROVIDES_${PN}-iwlwifi-7265 = "${PN}-iwlwifi-7265-8 ${PN}-iwlwifi-7265-9"
785RREPLACES_${PN}-iwlwifi-7265 = "${PN}-iwlwifi-7265-8 ${PN}-iwlwifi-7265-9"
786RCONFLICTS_${PN}-iwlwifi-7265 = "${PN}-iwlwifi-7265-8 ${PN}-iwlwifi-7265-9"
787
788RPROVIDES_${PN}-iwlwifi-7260 = "${PN}-iwlwifi-7260-7 ${PN}-iwlwifi-7260-8 ${PN}-iwlwifi-7260-9"
789RREPLACES_${PN}-iwlwifi-7260 = "${PN}-iwlwifi-7260-7 ${PN}-iwlwifi-7260-8 ${PN}-iwlwifi-7260-9"
790RCONFLICTS_${PN}-iwlwifi-7260 = "${PN}-iwlwifi-7260-7 ${PN}-iwlwifi-7260-8 ${PN}-iwlwifi-7260-9"
791
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500792# For ibt
793LICENSE_${PN}-ibt-license = "Firmware-ibt_firmware"
794LICENSE_${PN}-ibt-hw-37-7 = "Firmware-ibt_firmware"
795LICENSE_${PN}-ibt-hw-37-8 = "Firmware-ibt_firmware"
796LICENSE_${PN}-ibt-11-5 = "Firmware-ibt_firmware"
797LICENSE_${PN}-ibt-12-16 = "Firmware-ibt_firmware"
Brad Bishop316dfdd2018-06-25 12:45:53 -0400798LICENSE_${PN}-ibt-17 = "Firmware-ibt_firmware"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500799LICENSE_${PN}-ibt-misc = "Firmware-ibt_firmware"
800
801FILES_${PN}-ibt-license = "${nonarch_base_libdir}/firmware/LICENCE.ibt_firmware"
802FILES_${PN}-ibt-hw-37-7 = "${nonarch_base_libdir}/firmware/intel/ibt-hw-37.7*.bseq"
803FILES_${PN}-ibt-hw-37-8 = "${nonarch_base_libdir}/firmware/intel/ibt-hw-37.8*.bseq"
804FILES_${PN}-ibt-11-5 = "${nonarch_base_libdir}/firmware/intel/ibt-11-5.sfi /lib/firmware/intel/ibt-11-5.ddc"
805FILES_${PN}-ibt-12-16 = "${nonarch_base_libdir}/firmware/intel/ibt-12-16.sfi /lib/firmware/intel/ibt-12-16.ddc"
Brad Bishop316dfdd2018-06-25 12:45:53 -0400806FILES_${PN}-ibt-17 = "${nonarch_base_libdir}/firmware/intel/ibt-17-*.sfi /lib/firmware/intel/ibt-17-*.ddc"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500807FILES_${PN}-ibt-misc = "${nonarch_base_libdir}/firmware/ibt-*"
808
809RDEPENDS_${PN}-ibt-hw-37-7 = "${PN}-ibt-license"
810RDEPENDS_${PN}-ibt-hw-37.8 = "${PN}-ibt-license"
811RDEPENDS_${PN}-ibt-11-5 = "${PN}-ibt-license"
812RDEPENDS_${PN}-ibt-12-16 = "${PN}-ibt-license"
Brad Bishop316dfdd2018-06-25 12:45:53 -0400813RDEPENDS_${PN}-ibt-17 = "${PN}-ibt-license"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500814RDEPENDS_${PN}-ibt-misc = "${PN}-ibt-license"
815
816ALLOW_EMPTY_${PN}-ibt= "1"
817ALLOW_EMPTY_${PN}-ibt-misc = "1"
818
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500819LICENSE_${PN}-i915 = "Firmware-i915"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600820LICENSE_${PN}-i915-license = "Firmware-i915"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500821FILES_${PN}-i915-license = "${nonarch_base_libdir}/firmware/LICENSE.i915"
822FILES_${PN}-i915 = "${nonarch_base_libdir}/firmware/i915"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500823RDEPENDS_${PN}-i915 = "${PN}-i915-license"
824
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500825FILES_${PN}-adsp-sst-license = "${nonarch_base_libdir}/firmware/LICENCE.adsp_sst"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500826LICENSE_${PN}-adsp-sst = "Firmware-adsp_sst"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600827LICENSE_${PN}-adsp-sst-license = "Firmware-adsp_sst"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500828FILES_${PN}-adsp-sst = "${nonarch_base_libdir}/firmware/intel/dsp_fw*"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500829RDEPENDS_${PN}-adsp-sst = "${PN}-adsp-sst-license"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500830
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500831# For QAT
832LICENSE_${PN}-qat = "Firmware-qat"
833LICENSE_${PN}-qat-license = "Firmware-qat"
834FILES_${PN}-qat-license = "${nonarch_base_libdir}/firmware/LICENCE.qat_firmware"
835FILES_${PN}-qat = "${nonarch_base_libdir}/firmware/qat*.bin"
836RDEPENDS_${PN}-qat = "${PN}-qat-license"
837
Brad Bishop316dfdd2018-06-25 12:45:53 -0400838# For QCOM VPU/GPU
839LICENSE_${PN}-qcom-license = "Firmware-qcom"
840FILES_${PN}-qcom-license = "${nonarch_base_libdir}/firmware/LICENSE.qcom ${nonarch_base_libdir}/firmware/qcom/NOTICE.txt"
841FILES_${PN}-qcom-venus-1.8 = "${nonarch_base_libdir}/firmware/qcom/venus-1.8/*"
842FILES_${PN}-qcom-venus-4.2 = "${nonarch_base_libdir}/firmware/qcom/venus-4.2/*"
843FILES_${PN}-qcom-adreno-a3xx = "${nonarch_base_libdir}/firmware/qcom/a300_*.fw ${nonarch_base_libdir}/firmware/a300_*.fw"
844FILES_${PN}-qcom-adreno-a530 = "${nonarch_base_libdir}/firmware/qcom/a530*.*"
845RDEPENDS_${PN}-qcom-venus-1.8 = "${PN}-qcom-license"
846RDEPENDS_${PN}-qcom-venus-4.2 = "${PN}-qcom-license"
847RDEPENDS_${PN}-qcom-adreno-a3xx = "${PN}-qcom-license"
848RDEPENDS_${PN}-qcom-adreno-a530 = "${PN}-qcom-license"
849
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500850# For other firmwares
851# Maybe split out to separate packages when needed.
852LICENSE_${PN} = "\
853 Firmware-Abilis \
854 & Firmware-agere \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500855 & Firmware-amdgpu \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500856 & Firmware-amd-ucode \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500857 & Firmware-atmel \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500858 & Firmware-ca0132 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500859 & Firmware-cavium \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500860 & Firmware-chelsio_firmware \
861 & Firmware-cw1200 \
862 & Firmware-dib0700 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500863 & Firmware-e100 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500864 & Firmware-ene_firmware \
865 & Firmware-fw_sst_0f28 \
866 & Firmware-go7007 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500867 & Firmware-hfi1_firmware \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500868 & Firmware-i2400m \
869 & Firmware-ibt_firmware \
870 & Firmware-it913x \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500871 & Firmware-IntcSST2 \
872 & Firmware-kaweth \
873 & Firmware-moxa \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500874 & Firmware-myri10ge_firmware \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500875 & Firmware-nvidia \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500876 & Firmware-OLPC \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500877 & Firmware-ath9k-htc \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500878 & Firmware-phanfw \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500879 & Firmware-qat \
Brad Bishop316dfdd2018-06-25 12:45:53 -0400880 & Firmware-qcom \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500881 & Firmware-qla1280 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500882 & Firmware-qla2xxx \
883 & Firmware-r8a779x_usb3 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500884 & Firmware-radeon \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500885 & Firmware-ralink_a_mediatek_company_firmware \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600886 & Firmware-ralink-firmware \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500887 & Firmware-imx-sdma_firmware \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500888 & Firmware-siano \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500889 & Firmware-tda7706-firmware \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500890 & Firmware-ti-connectivity \
891 & Firmware-ti-keystone \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500892 & Firmware-ueagle-atm4-firmware \
893 & Firmware-wl1251 \
894 & Firmware-xc4000 \
895 & Firmware-xc5000 \
896 & Firmware-xc5000c \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600897 & WHENCE \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500898"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500899
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500900FILES_${PN}-license += "${nonarch_base_libdir}/firmware/LICEN*"
901FILES_${PN} += "${nonarch_base_libdir}/firmware/*"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500902RDEPENDS_${PN} += "${PN}-license"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600903RDEPENDS_${PN} += "${PN}-whence-license"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500904
905# Make linux-firmware depend on all of the split-out packages.
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600906# Make linux-firmware-iwlwifi depend on all of the split-out iwlwifi packages.
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500907# Make linux-firmware-ibt depend on all of the split-out ibt packages.
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500908python populate_packages_prepend () {
909 firmware_pkgs = oe.utils.packages_filter_out_system(d)
910 d.appendVar('RDEPENDS_linux-firmware', ' ' + ' '.join(firmware_pkgs))
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600911
912 iwlwifi_pkgs = filter(lambda x: x.find('-iwlwifi-') != -1, firmware_pkgs)
913 d.appendVar('RDEPENDS_linux-firmware-iwlwifi', ' ' + ' '.join(iwlwifi_pkgs))
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500914
915 ibt_pkgs = filter(lambda x: x.find('-ibt-') != -1, firmware_pkgs)
916 d.appendVar('RDEPENDS_linux-firmware-ibt', ' ' + ' '.join(ibt_pkgs))
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500917}
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500918
919# Firmware files are generally not ran on the CPU, so they can be
920# allarch despite being architecture specific
921INSANE_SKIP = "arch"