blob: 518638806f8b0e5742c19948d2f2b1fa761a6b83 [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 \
Brad Bishop15ae2502019-06-18 21:44:24 -040010 & Firmware-amlogic_vdec \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011 & Firmware-atheros_firmware \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050012 & Firmware-atmel \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050013 & Firmware-broadcom_bcm43xx \
14 & Firmware-ca0132 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050015 & Firmware-cavium \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016 & Firmware-chelsio_firmware \
17 & Firmware-cw1200 \
Brad Bishopd5ae7d92018-06-14 09:52:03 -070018 & Firmware-cypress \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019 & Firmware-dib0700 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050020 & Firmware-e100 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050021 & Firmware-ene_firmware \
22 & Firmware-fw_sst_0f28 \
23 & Firmware-go7007 \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050024 & Firmware-GPLv2 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050025 & Firmware-hfi1_firmware \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050026 & Firmware-i2400m \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050027 & Firmware-i915 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050028 & Firmware-ibt_firmware \
29 & Firmware-it913x \
30 & Firmware-iwlwifi_firmware \
31 & Firmware-IntcSST2 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050032 & Firmware-kaweth \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050033 & Firmware-Marvell \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050034 & Firmware-moxa \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050035 & Firmware-myri10ge_firmware \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050036 & Firmware-netronome \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050037 & Firmware-nvidia \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050038 & Firmware-OLPC \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050039 & Firmware-ath9k-htc \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050040 & Firmware-phanfw \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050041 & Firmware-qat \
Brad Bishop316dfdd2018-06-25 12:45:53 -040042 & Firmware-qcom \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050043 & Firmware-qla1280 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050044 & Firmware-qla2xxx \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050045 & Firmware-qualcommAthos_ar3k \
46 & Firmware-qualcommAthos_ath10k \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050047 & Firmware-r8a779x_usb3 \
48 & Firmware-radeon \
49 & Firmware-ralink_a_mediatek_company_firmware \
50 & Firmware-ralink-firmware \
51 & Firmware-rtlwifi_firmware \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050052 & Firmware-imx-sdma_firmware \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050053 & Firmware-siano \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050054 & Firmware-tda7706-firmware \
55 & Firmware-ti-connectivity \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050056 & Firmware-ti-keystone \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050057 & Firmware-ueagle-atm4-firmware \
58 & Firmware-via_vt6656 \
59 & Firmware-wl1251 \
60 & Firmware-xc4000 \
61 & Firmware-xc5000 \
62 & Firmware-xc5000c \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060063 & WHENCE \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050064"
65
Brad Bishop15ae2502019-06-18 21:44:24 -040066LIC_FILES_CHKSUM = "file://LICENCE.Abilis;md5=b5ee3f410780e56711ad48eadc22b8bc \
67 file://LICENCE.adsp_sst;md5=615c45b91a5a4a9fe046d6ab9a2df728 \
68 file://LICENCE.agere;md5=af0133de6b4a9b2522defd5f188afd31 \
69 file://LICENSE.amdgpu;md5=ab515ef6495ab5c5a3b08ab2db62df11 \
70 file://LICENSE.amd-ucode;md5=3c5399dc9148d7f0e1f41e34b69cf14f \
71 file://LICENSE.amlogic_vdec;md5=dc44f59bf64a81643e500ad3f39a468a \
72 file://LICENCE.atheros_firmware;md5=30a14c7823beedac9fa39c64fdd01a13 \
73 file://LICENSE.atmel;md5=aa74ac0c60595dee4d4e239107ea77a3 \
74 file://LICENCE.broadcom_bcm43xx;md5=3160c14df7228891b868060e1951dfbc \
75 file://LICENCE.ca0132;md5=209b33e66ee5be0461f13d31da392198 \
76 file://LICENCE.cadence;md5=009f46816f6956cfb75ede13d3e1cee0 \
77 file://LICENCE.cavium;md5=c37aaffb1ebe5939b2580d073a95daea \
78 file://LICENCE.chelsio_firmware;md5=819aa8c3fa453f1b258ed8d168a9d903 \
79 file://LICENCE.cw1200;md5=f0f770864e7a8444a5c5aa9d12a3a7ed \
80 file://LICENCE.cypress;md5=48cd9436c763bf873961f9ed7b5c147b \
81 file://LICENSE.dib0700;md5=f7411825c8a555a1a3e5eab9ca773431 \
82 file://LICENCE.e100;md5=ec0f84136766df159a3ae6d02acdf5a8 \
83 file://LICENCE.ene_firmware;md5=ed67f0f62f8f798130c296720b7d3921 \
84 file://LICENCE.fw_sst_0f28;md5=6353931c988ad52818ae733ac61cd293 \
85 file://LICENCE.go7007;md5=c0bb9f6aaaba55b0529ee9b30aa66beb \
86 file://GPL-2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
87 file://LICENSE.hfi1_firmware;md5=5e7b6e586ce7339d12689e49931ad444 \
88 file://LICENCE.i2400m;md5=14b901969e23c41881327c0d9e4b7d36 \
89 file://LICENSE.i915;md5=2b0b2e0d20984affd4490ba2cba02570 \
90 file://LICENCE.ibt_firmware;md5=fdbee1ddfe0fb7ab0b2fcd6b454a366b \
91 file://LICENCE.IntcSST2;md5=9e7d8bea77612d7cc7d9e9b54b623062 \
92 file://LICENCE.it913x;md5=1fbf727bfb6a949810c4dbfa7e6ce4f8 \
93 file://LICENCE.iwlwifi_firmware;md5=3fd842911ea93c29cd32679aa23e1c88 \
94 file://LICENCE.kaweth;md5=b1d876e562f4b3b8d391ad8395dfe03f \
Brad Bishop96ff1982019-08-19 13:50:42 -040095 file://LICENCE.Marvell;md5=28b6ed8bd04ba105af6e4dcd6e997772 \
Brad Bishop15ae2502019-06-18 21:44:24 -040096 file://LICENCE.mediatek;md5=7c1976b63217d76ce47d0a11d8a79cf2 \
97 file://LICENCE.moxa;md5=1086614767d8ccf744a923289d3d4261 \
98 file://LICENCE.myri10ge_firmware;md5=42e32fb89f6b959ca222e25ac8df8fed \
99 file://LICENCE.Netronome;md5=4add08f2577086d44447996503cddf5f \
100 file://LICENCE.nvidia;md5=4428a922ed3ba2ceec95f076a488ce07 \
101 file://LICENCE.OLPC;md5=5b917f9d8c061991be4f6f5f108719cd \
102 file://LICENCE.open-ath9k-htc-firmware;md5=1b33c9f4d17bc4d457bdb23727046837 \
103 file://LICENCE.phanfw;md5=954dcec0e051f9409812b561ea743bfa \
104 file://LICENCE.qat_firmware;md5=9e7d8bea77612d7cc7d9e9b54b623062 \
105 file://LICENSE.qcom;md5=164e3362a538eb11d3ac51e8e134294b \
106 file://LICENCE.qla1280;md5=d6895732e622d950609093223a2c4f5d \
107 file://LICENCE.qla2xxx;md5=505855e921b75f1be4a437ad9b79dff0 \
108 file://LICENSE.QualcommAtheros_ar3k;md5=b5fe244fb2b532311de1472a3bc06da5 \
109 file://LICENSE.QualcommAtheros_ath10k;md5=cb42b686ee5f5cb890275e4321db60a8 \
110 file://LICENCE.r8a779x_usb3;md5=4c1671656153025d7076105a5da7e498 \
111 file://LICENSE.radeon;md5=68ec28bacb3613200bca44f404c69b16 \
112 file://LICENCE.ralink_a_mediatek_company_firmware;md5=728f1a85fd53fd67fa8d7afb080bc435 \
113 file://LICENCE.ralink-firmware.txt;md5=ab2c269277c45476fb449673911a2dfd \
114 file://LICENCE.rtlwifi_firmware.txt;md5=00d06cfd3eddd5a2698948ead2ad54a5 \
115 file://LICENSE.sdma_firmware;md5=51e8c19ecc2270f4b8ea30341ad63ce9 \
116 file://LICENCE.siano;md5=4556c1bf830067f12ca151ad953ec2a5 \
117 file://LICENCE.tda7706-firmware.txt;md5=835997cf5e3c131d0dddd695c7d9103e \
118 file://LICENCE.ti-connectivity;md5=c5e02be633f1499c109d1652514d85ec \
119 file://LICENCE.ti-keystone;md5=3a86335d32864b0bef996bee26cc0f2c \
120 file://LICENCE.ueagle-atm4-firmware;md5=4ed7ea6b507ccc583b9d594417714118 \
121 file://LICENCE.via_vt6656;md5=e4159694cba42d4377a912e78a6e850f \
122 file://LICENCE.wl1251;md5=ad3f81922bb9e197014bb187289d3b5b \
123 file://LICENCE.xc4000;md5=0ff51d2dc49fce04814c9155081092f0 \
124 file://LICENCE.xc5000;md5=1e170c13175323c32c7f4d0998d53f66 \
125 file://LICENCE.xc5000c;md5=12b02efa3049db65d524aeb418dd87ca \
Brad Bishopc68388fc2019-08-26 01:33:31 -0400126 file://WHENCE;md5=37a01e379219d1e06dbccfa90a8fc0ad \
Brad Bishop15ae2502019-06-18 21:44:24 -0400127 "
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500128
129# These are not common licenses, set NO_GENERIC_LICENSE for them
130# so that the license files will be copied from fetched source
131NO_GENERIC_LICENSE[Firmware-Abilis] = "LICENCE.Abilis"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500132NO_GENERIC_LICENSE[Firmware-adsp_sst] = "LICENCE.adsp_sst"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500133NO_GENERIC_LICENSE[Firmware-agere] = "LICENCE.agere"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500134NO_GENERIC_LICENSE[Firmware-amdgpu] = "LICENSE.amdgpu"
135NO_GENERIC_LICENSE[Firmware-amd-ucode] = "LICENSE.amd-ucode"
Brad Bishop15ae2502019-06-18 21:44:24 -0400136NO_GENERIC_LICENSE[Firmware-amlogic_vdec] = "LICENSE.amlogic_vdec"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500137NO_GENERIC_LICENSE[Firmware-atheros_firmware] = "LICENCE.atheros_firmware"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500138NO_GENERIC_LICENSE[Firmware-atmel] = "LICENSE.atmel"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500139NO_GENERIC_LICENSE[Firmware-broadcom_bcm43xx] = "LICENCE.broadcom_bcm43xx"
140NO_GENERIC_LICENSE[Firmware-ca0132] = "LICENCE.ca0132"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800141NO_GENERIC_LICENSE[Firmware-cadence] = "LICENCE.cadence"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500142NO_GENERIC_LICENSE[Firmware-cavium] = "LICENCE.cavium"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500143NO_GENERIC_LICENSE[Firmware-chelsio_firmware] = "LICENCE.chelsio_firmware"
144NO_GENERIC_LICENSE[Firmware-cw1200] = "LICENCE.cw1200"
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700145NO_GENERIC_LICENSE[Firmware-cypress] = "LICENCE.cypress"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500146NO_GENERIC_LICENSE[Firmware-dib0700] = "LICENSE.dib0700"
147NO_GENERIC_LICENSE[Firmware-e100] = "LICENCE.e100"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500148NO_GENERIC_LICENSE[Firmware-ene_firmware] = "LICENCE.ene_firmware"
149NO_GENERIC_LICENSE[Firmware-fw_sst_0f28] = "LICENCE.fw_sst_0f28"
150NO_GENERIC_LICENSE[Firmware-go7007] = "LICENCE.go7007"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500151NO_GENERIC_LICENSE[Firmware-GPLv2] = "GPL-2"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500152NO_GENERIC_LICENSE[Firmware-hfi1_firmware] = "LICENSE.hfi1_firmware"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500153NO_GENERIC_LICENSE[Firmware-i2400m] = "LICENCE.i2400m"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500154NO_GENERIC_LICENSE[Firmware-i915] = "LICENSE.i915"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500155NO_GENERIC_LICENSE[Firmware-ibt_firmware] = "LICENCE.ibt_firmware"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500156NO_GENERIC_LICENSE[Firmware-IntcSST2] = "LICENCE.IntcSST2"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500157NO_GENERIC_LICENSE[Firmware-it913x] = "LICENCE.it913x"
158NO_GENERIC_LICENSE[Firmware-iwlwifi_firmware] = "LICENCE.iwlwifi_firmware"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500159NO_GENERIC_LICENSE[Firmware-kaweth] = "LICENCE.kaweth"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500160NO_GENERIC_LICENSE[Firmware-Marvell] = "LICENCE.Marvell"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800161NO_GENERIC_LICENSE[Firmware-mediatek] = "LICENCE.mediatek"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500162NO_GENERIC_LICENSE[Firmware-moxa] = "LICENCE.moxa"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500163NO_GENERIC_LICENSE[Firmware-myri10ge_firmware] = "LICENCE.myri10ge_firmware"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500164NO_GENERIC_LICENSE[Firmware-netronome] = "LICENCE.Netronome"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500165NO_GENERIC_LICENSE[Firmware-nvidia] = "LICENCE.nvidia"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500166NO_GENERIC_LICENSE[Firmware-OLPC] = "LICENCE.OLPC"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500167NO_GENERIC_LICENSE[Firmware-ath9k-htc] = "LICENCE.open-ath9k-htc-firmware"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500168NO_GENERIC_LICENSE[Firmware-phanfw] = "LICENCE.phanfw"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500169NO_GENERIC_LICENSE[Firmware-qat] = "LICENCE.qat_firmware"
Brad Bishop316dfdd2018-06-25 12:45:53 -0400170NO_GENERIC_LICENSE[Firmware-qcom] = "LICENSE.qcom"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500171NO_GENERIC_LICENSE[Firmware-qla1280] = "LICENCE.qla1280"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500172NO_GENERIC_LICENSE[Firmware-qla2xxx] = "LICENCE.qla2xxx"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500173NO_GENERIC_LICENSE[Firmware-qualcommAthos_ar3k] = "LICENSE.QualcommAtheros_ar3k"
174NO_GENERIC_LICENSE[Firmware-qualcommAthos_ath10k] = "LICENSE.QualcommAtheros_ath10k"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500175NO_GENERIC_LICENSE[Firmware-r8a779x_usb3] = "LICENCE.r8a779x_usb3"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500176NO_GENERIC_LICENSE[Firmware-radeon] = "LICENSE.radeon"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500177NO_GENERIC_LICENSE[Firmware-ralink_a_mediatek_company_firmware] = "LICENCE.ralink_a_mediatek_company_firmware"
178NO_GENERIC_LICENSE[Firmware-ralink-firmware] = "LICENCE.ralink-firmware.txt"
179NO_GENERIC_LICENSE[Firmware-rtlwifi_firmware] = "LICENCE.rtlwifi_firmware.txt"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500180NO_GENERIC_LICENSE[Firmware-siano] = "LICENCE.siano"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500181NO_GENERIC_LICENSE[Firmware-imx-sdma_firmware] = "LICENSE.sdma_firmware"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500182NO_GENERIC_LICENSE[Firmware-tda7706-firmware] = "LICENCE.tda7706-firmware.txt"
183NO_GENERIC_LICENSE[Firmware-ti-connectivity] = "LICENCE.ti-connectivity"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500184NO_GENERIC_LICENSE[Firmware-ti-keystone] = "LICENCE.ti-keystone"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500185NO_GENERIC_LICENSE[Firmware-ueagle-atm4-firmware] = "LICENCE.ueagle-atm4-firmware"
186NO_GENERIC_LICENSE[Firmware-via_vt6656] = "LICENCE.via_vt6656"
187NO_GENERIC_LICENSE[Firmware-wl1251] = "LICENCE.wl1251"
188NO_GENERIC_LICENSE[Firmware-xc4000] = "LICENCE.xc4000"
189NO_GENERIC_LICENSE[Firmware-xc5000] = "LICENCE.xc5000"
190NO_GENERIC_LICENSE[Firmware-xc5000c] = "LICENCE.xc5000c"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600191NO_GENERIC_LICENSE[WHENCE] = "WHENCE"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500192
Brad Bishop08902b02019-08-20 09:16:51 -0400193PE = "1"
194
Brad Bishopc68388fc2019-08-26 01:33:31 -0400195SRCREV = "07b925b450bfb4cf3e141c612ec5b104658cd020"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500196
197SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git"
198
Brad Bishop316dfdd2018-06-25 12:45:53 -0400199UPSTREAM_CHECK_COMMITS = "1"
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500200
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500201S = "${WORKDIR}/git"
202
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500203inherit allarch
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500204
205CLEANBROKEN = "1"
206
207do_compile() {
208 :
209}
210
211do_install() {
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500212 install -d ${D}${nonarch_base_libdir}/firmware/
213 cp -r * ${D}${nonarch_base_libdir}/firmware/
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500214
215 # Avoid Makefile to be deployed
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500216 rm ${D}${nonarch_base_libdir}/firmware/Makefile
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500217
218 # Remove unbuild firmware which needs cmake and bash
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500219 rm ${D}${nonarch_base_libdir}/firmware/carl9170fw -rf
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500220
221 # Remove pointless bash script
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500222 rm ${D}${nonarch_base_libdir}/firmware/configure
223
224 # Remove python script used to check the WHENCE file
225 rm ${D}${nonarch_base_libdir}/firmware/check_whence.py
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500226
227 # Libertas sd8686
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500228 ln -sf libertas/sd8686_v9.bin ${D}${nonarch_base_libdir}/firmware/sd8686.bin
229 ln -sf libertas/sd8686_v9_helper.bin ${D}${nonarch_base_libdir}/firmware/sd8686_helper.bin
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500230
231 # fixup wl12xx location, after 2.6.37 the kernel searches a different location for it
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500232 ( cd ${D}${nonarch_base_libdir}/firmware ; ln -sf ti-connectivity/* . )
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500233}
234
235
236PACKAGES =+ "${PN}-ralink-license ${PN}-ralink \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500237 ${PN}-mt7601u-license ${PN}-mt7601u \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500238 ${PN}-radeon-license ${PN}-radeon \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500239 ${PN}-marvell-license ${PN}-pcie8897 ${PN}-pcie8997 \
240 ${PN}-sd8686 ${PN}-sd8688 ${PN}-sd8787 ${PN}-sd8797 ${PN}-sd8801 ${PN}-sd8887 ${PN}-sd8897 \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800241 ${PN}-usb8997 \
Brad Bishopa5c52ff2018-11-23 10:55:50 +1300242 ${PN}-ti-connectivity-license ${PN}-wlcommon ${PN}-wl12xx ${PN}-wl18xx \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500243 ${PN}-vt6656-license ${PN}-vt6656 \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500244 ${PN}-rtl-license ${PN}-rtl8188 ${PN}-rtl8192cu ${PN}-rtl8192ce ${PN}-rtl8192su ${PN}-rtl8723 ${PN}-rtl8821 \
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700245 ${PN}-rtl8168 \
246 ${PN}-cypress-license \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500247 ${PN}-broadcom-license \
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700248 ${PN}-bcm-0bb4-0306 \
249 ${PN}-bcm43143 \
250 ${PN}-bcm43236b \
251 ${PN}-bcm43241b0 \
252 ${PN}-bcm43241b4 \
253 ${PN}-bcm43241b5 \
254 ${PN}-bcm43242a \
255 ${PN}-bcm4329 \
256 ${PN}-bcm4329-fullmac \
257 ${PN}-bcm4330 \
258 ${PN}-bcm4334 \
259 ${PN}-bcm43340 \
260 ${PN}-bcm4335 \
261 ${PN}-bcm43362 \
262 ${PN}-bcm4339 \
263 ${PN}-bcm43430 \
264 ${PN}-bcm43430a0 \
265 ${PN}-bcm43455 \
266 ${PN}-bcm4350 \
267 ${PN}-bcm4350c2 \
268 ${PN}-bcm4354 \
269 ${PN}-bcm4356 \
270 ${PN}-bcm4356-pcie \
271 ${PN}-bcm43569 \
272 ${PN}-bcm43570 \
273 ${PN}-bcm4358 \
274 ${PN}-bcm43602 \
275 ${PN}-bcm4366b \
276 ${PN}-bcm4371 \
277 ${PN}-bcm4373 \
278 ${PN}-bcm43xx \
279 ${PN}-bcm43xx-hdr \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500280 ${PN}-atheros-license ${PN}-ar9170 ${PN}-ath6k ${PN}-ath9k \
281 ${PN}-gplv2-license ${PN}-carl9170 \
282 ${PN}-ar3k-license ${PN}-ar3k ${PN}-ath10k-license ${PN}-ath10k ${PN}-qca \
283 \
284 ${PN}-imx-sdma-license ${PN}-imx-sdma-imx6q ${PN}-imx-sdma-imx7d \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500285 \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600286 ${PN}-iwlwifi-license ${PN}-iwlwifi \
287 ${PN}-iwlwifi-135-6 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500288 ${PN}-iwlwifi-3160-7 ${PN}-iwlwifi-3160-8 ${PN}-iwlwifi-3160-9 \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500289 ${PN}-iwlwifi-3160-10 ${PN}-iwlwifi-3160-12 ${PN}-iwlwifi-3160-13 \
290 ${PN}-iwlwifi-3160-16 ${PN}-iwlwifi-3160-17 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500291 ${PN}-iwlwifi-6000-4 ${PN}-iwlwifi-6000g2a-5 ${PN}-iwlwifi-6000g2a-6 \
292 ${PN}-iwlwifi-6000g2b-5 ${PN}-iwlwifi-6000g2b-6 \
293 ${PN}-iwlwifi-6050-4 ${PN}-iwlwifi-6050-5 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500294 ${PN}-iwlwifi-7260 \
295 ${PN}-iwlwifi-7265 \
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500296 ${PN}-iwlwifi-7265d ${PN}-iwlwifi-8000c ${PN}-iwlwifi-8265 \
Brad Bishop316dfdd2018-06-25 12:45:53 -0400297 ${PN}-iwlwifi-9000 \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600298 ${PN}-iwlwifi-misc \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500299 ${PN}-ibt-license ${PN}-ibt ${PN}-ibt-misc \
300 ${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 -0400301 ${PN}-ibt-17 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500302 ${PN}-i915-license ${PN}-i915 \
303 ${PN}-adsp-sst-license ${PN}-adsp-sst \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600304 ${PN}-bnx2-mips \
Andrew Geissler99467da2019-02-25 18:54:23 -0600305 ${PN}-liquidio \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500306 ${PN}-netronome-license ${PN}-netronome \
307 ${PN}-qat ${PN}-qat-license \
Brad Bishop316dfdd2018-06-25 12:45:53 -0400308 ${PN}-qcom-license \
309 ${PN}-qcom-venus-1.8 ${PN}-qcom-venus-4.2 \
310 ${PN}-qcom-adreno-a3xx ${PN}-qcom-adreno-a530 \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600311 ${PN}-whence-license \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500312 ${PN}-license \
313 "
314
315# For atheros
316LICENSE_${PN}-ar9170 = "Firmware-atheros_firmware"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500317LICENSE_${PN}-ath6k = "Firmware-atheros_firmware"
318LICENSE_${PN}-ath9k = "Firmware-atheros_firmware"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600319LICENSE_${PN}-atheros-license = "Firmware-atheros_firmware"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500320
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500321FILES_${PN}-atheros-license = "${nonarch_base_libdir}/firmware/LICENCE.atheros_firmware"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500322FILES_${PN}-ar9170 = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500323 ${nonarch_base_libdir}/firmware/ar9170*.fw \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600324"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500325FILES_${PN}-ath6k = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500326 ${nonarch_base_libdir}/firmware/ath6k \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500327"
328FILES_${PN}-ath9k = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500329 ${nonarch_base_libdir}/firmware/ar9271.fw \
330 ${nonarch_base_libdir}/firmware/ar7010*.fw \
331 ${nonarch_base_libdir}/firmware/htc_9271.fw \
332 ${nonarch_base_libdir}/firmware/htc_7010.fw \
333 ${nonarch_base_libdir}/firmware/ath9k_htc/htc_7010-1.4.0.fw \
334 ${nonarch_base_libdir}/firmware/ath9k_htc/htc_9271-1.4.0.fw \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500335"
336
337RDEPENDS_${PN}-ar9170 += "${PN}-atheros-license"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500338RDEPENDS_${PN}-ath6k += "${PN}-atheros-license"
339RDEPENDS_${PN}-ath9k += "${PN}-atheros-license"
340
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500341# For carl9170
342LICENSE_${PN}-carl9170 = "Firmware-GPLv2"
343LICENSE_${PN}-gplv2-license = "Firmware-GPLv2"
344
345FILES_${PN}-gplv2-license = "${nonarch_base_libdir}/firmware/GPL-2"
346FILES_${PN}-carl9170 = " \
347 ${nonarch_base_libdir}/firmware/carl9170*.fw \
348"
349
350RDEPENDS_${PN}-carl9170 += "${PN}-gplv2-license"
351
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500352# For QualCommAthos
353LICENSE_${PN}-ar3k = "Firmware-qualcommAthos_ar3k"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600354LICENSE_${PN}-ar3k-license = "Firmware-qualcommAthos_ar3k"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500355LICENSE_${PN}-ath10k = "Firmware-qualcommAthos_ath10k"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600356LICENSE_${PN}-ath10k-license = "Firmware-qualcommAthos_ath10k"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500357LICENSE_${PN}-qca = "Firmware-qualcommAthos_ath10k"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500358
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500359FILES_${PN}-ar3k-license = "${nonarch_base_libdir}/firmware/LICENSE.QualcommAtheros_ar3k"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500360FILES_${PN}-ar3k = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500361 ${nonarch_base_libdir}/firmware/ar3k \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500362"
363
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500364FILES_${PN}-ath10k-license = "${nonarch_base_libdir}/firmware/LICENSE.QualcommAtheros_ath10k"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500365FILES_${PN}-ath10k = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500366 ${nonarch_base_libdir}/firmware/ath10k \
367"
368
369FILES_${PN}-qca = " \
370 ${nonarch_base_libdir}/firmware/qca \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500371"
372
373RDEPENDS_${PN}-ar3k += "${PN}-ar3k-license"
374RDEPENDS_${PN}-ath10k += "${PN}-ath10k-license"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500375RDEPENDS_${PN}-qca += "${PN}-ath10k-license"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500376
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500377# For ralink
378LICENSE_${PN}-ralink = "Firmware-ralink-firmware"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600379LICENSE_${PN}-ralink-license = "Firmware-ralink-firmware"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500380
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500381FILES_${PN}-ralink-license = "${nonarch_base_libdir}/firmware/LICENCE.ralink-firmware.txt"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500382FILES_${PN}-ralink = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500383 ${nonarch_base_libdir}/firmware/rt*.bin \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500384"
385
386RDEPENDS_${PN}-ralink += "${PN}-ralink-license"
387
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500388# For mediatek MT7601U
389LICENSE_${PN}-mt7601u = "Firmware-ralink_a_mediatek_company_firmware"
390LICENSE_${PN}-mt7601u-license = "Firmware-ralink_a_mediatek_company_firmware"
391
392FILES_${PN}-mt7601u-license = "${nonarch_base_libdir}/firmware/LICENCE.ralink_a_mediatek_company_firmware"
393FILES_${PN}-mt7601u = " \
394 ${nonarch_base_libdir}/firmware/mt7601u.bin \
395"
396
397RDEPENDS_${PN}-mt7601u += "${PN}-mt7601u-license"
398
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500399# For radeon
400LICENSE_${PN}-radeon = "Firmware-radeon"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600401LICENSE_${PN}-radeon-license = "Firmware-radeon"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500402
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500403FILES_${PN}-radeon-license = "${nonarch_base_libdir}/firmware/LICENSE.radeon"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500404FILES_${PN}-radeon = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500405 ${nonarch_base_libdir}/firmware/radeon \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500406"
407
408RDEPENDS_${PN}-radeon += "${PN}-radeon-license"
409
410# For marvell
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500411LICENSE_${PN}-pcie8897 = "Firmware-Marvell"
412LICENSE_${PN}-pcie8997 = "Firmware-Marvell"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500413LICENSE_${PN}-sd8686 = "Firmware-Marvell"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500414LICENSE_${PN}-sd8688 = "Firmware-Marvell"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500415LICENSE_${PN}-sd8787 = "Firmware-Marvell"
416LICENSE_${PN}-sd8797 = "Firmware-Marvell"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500417LICENSE_${PN}-sd8801 = "Firmware-Marvell"
418LICENSE_${PN}-sd8887 = "Firmware-Marvell"
419LICENSE_${PN}-sd8897 = "Firmware-Marvell"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800420LICENSE_${PN}-usb8997 = "Firmware-Marvell"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600421LICENSE_${PN}-marvell-license = "Firmware-Marvell"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500422
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500423FILES_${PN}-marvell-license = "${nonarch_base_libdir}/firmware/LICENCE.Marvell"
424FILES_${PN}-pcie8897 = " \
425 ${nonarch_base_libdir}/firmware/mrvl/pcie8897_uapsta.bin \
426"
427FILES_${PN}-pcie8997 = " \
428 ${nonarch_base_libdir}/firmware/mrvl/pcie8997_wlan_v4.bin \
429 ${nonarch_base_libdir}/firmware/mrvl/pcieuart8997_combo_v4.bin \
430 ${nonarch_base_libdir}/firmware/mrvl/pcieusb8997_combo_v4.bin \
431"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500432FILES_${PN}-sd8686 = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500433 ${nonarch_base_libdir}/firmware/libertas/sd8686_v9* \
434 ${nonarch_base_libdir}/firmware/sd8686* \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500435"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500436FILES_${PN}-sd8688 = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500437 ${nonarch_base_libdir}/firmware/libertas/sd8688* \
438 ${nonarch_base_libdir}/firmware/mrvl/sd8688* \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500439"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500440FILES_${PN}-sd8787 = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500441 ${nonarch_base_libdir}/firmware/mrvl/sd8787_uapsta.bin \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500442"
443FILES_${PN}-sd8797 = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500444 ${nonarch_base_libdir}/firmware/mrvl/sd8797_uapsta.bin \
445"
446FILES_${PN}-sd8801 = " \
447 ${nonarch_base_libdir}/firmware/mrvl/sd8801_uapsta.bin \
448"
449FILES_${PN}-sd8887 = " \
450 ${nonarch_base_libdir}/firmware/mrvl/sd8887_uapsta.bin \
451"
452FILES_${PN}-sd8897 = " \
453 ${nonarch_base_libdir}/firmware/mrvl/sd8897_uapsta.bin \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500454"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800455FILES_${PN}-usb8997 = " \
456 ${nonarch_base_libdir}/firmware/mrvl/usbusb8997_combo_v4.bin \
457"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500458
459RDEPENDS_${PN}-sd8686 += "${PN}-marvell-license"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500460RDEPENDS_${PN}-sd8688 += "${PN}-marvell-license"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500461RDEPENDS_${PN}-sd8787 += "${PN}-marvell-license"
462RDEPENDS_${PN}-sd8797 += "${PN}-marvell-license"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500463RDEPENDS_${PN}-sd8801 += "${PN}-marvell-license"
464RDEPENDS_${PN}-sd8887 += "${PN}-marvell-license"
465RDEPENDS_${PN}-sd8897 += "${PN}-marvell-license"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800466RDEPENDS_${PN}-usb8997 += "${PN}-marvell-license"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500467
468# For netronome
469LICENSE_${PN}-netronome = "Firmware-netronome"
470
471FILES_${PN}-netronome-license = " \
472 ${nonarch_base_libdir}/firmware/LICENCE.Netronome \
473"
474FILES_${PN}-netronome = " \
475 ${nonarch_base_libdir}/firmware/netronome/nic_AMDA0081*.nffw \
476 ${nonarch_base_libdir}/firmware/netronome/nic_AMDA0096*.nffw \
477 ${nonarch_base_libdir}/firmware/netronome/nic_AMDA0097*.nffw \
478 ${nonarch_base_libdir}/firmware/netronome/nic_AMDA0099*.nffw \
479"
480
481RDEPENDS_${PN}-netronome += "${PN}-netronome-license"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500482
483# For rtl
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500484LICENSE_${PN}-rtl8188 = "Firmware-rtlwifi_firmware"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500485LICENSE_${PN}-rtl8192cu = "Firmware-rtlwifi_firmware"
486LICENSE_${PN}-rtl8192ce = "Firmware-rtlwifi_firmware"
487LICENSE_${PN}-rtl8192su = "Firmware-rtlwifi_firmware"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500488LICENSE_${PN}-rtl8723 = "Firmware-rtlwifi_firmware"
489LICENSE_${PN}-rtl8821 = "Firmware-rtlwifi_firmware"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600490LICENSE_${PN}-rtl-license = "Firmware-rtlwifi_firmware"
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700491LICENSE_${PN}-rtl8168 = "WHENCE"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500492
493FILES_${PN}-rtl-license = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500494 ${nonarch_base_libdir}/firmware/LICENCE.rtlwifi_firmware.txt \
495"
496FILES_${PN}-rtl8188 = " \
497 ${nonarch_base_libdir}/firmware/rtlwifi/rtl8188*.bin \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500498"
499FILES_${PN}-rtl8192cu = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500500 ${nonarch_base_libdir}/firmware/rtlwifi/rtl8192cufw*.bin \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500501"
502FILES_${PN}-rtl8192ce = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500503 ${nonarch_base_libdir}/firmware/rtlwifi/rtl8192cfw*.bin \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500504"
505FILES_${PN}-rtl8192su = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500506 ${nonarch_base_libdir}/firmware/rtlwifi/rtl8712u.bin \
507"
508FILES_${PN}-rtl8723 = " \
509 ${nonarch_base_libdir}/firmware/rtlwifi/rtl8723*.bin \
510"
511FILES_${PN}-rtl8821 = " \
512 ${nonarch_base_libdir}/firmware/rtlwifi/rtl8821*.bin \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500513"
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700514FILES_${PN}-rtl8168 = " \
515 ${nonarch_base_libdir}/firmware/rtl_nic/rtl8168*.fw \
516"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500517
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500518RDEPENDS_${PN}-rtl8188 += "${PN}-rtl-license"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500519RDEPENDS_${PN}-rtl8192ce += "${PN}-rtl-license"
520RDEPENDS_${PN}-rtl8192cu += "${PN}-rtl-license"
521RDEPENDS_${PN}-rtl8192su = "${PN}-rtl-license"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500522RDEPENDS_${PN}-rtl8723 += "${PN}-rtl-license"
523RDEPENDS_${PN}-rtl8821 += "${PN}-rtl-license"
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700524RDEPENDS_${PN}-rtl8168 += "${PN}-whence-license"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500525
526# For ti-connectivity
Brad Bishopa5c52ff2018-11-23 10:55:50 +1300527LICENSE_${PN}-wlcommon = "Firmware-ti-connectivity"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500528LICENSE_${PN}-wl12xx = "Firmware-ti-connectivity"
529LICENSE_${PN}-wl18xx = "Firmware-ti-connectivity"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600530LICENSE_${PN}-ti-connectivity-license = "Firmware-ti-connectivity"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500531
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500532FILES_${PN}-ti-connectivity-license = "${nonarch_base_libdir}/firmware/LICENCE.ti-connectivity"
Brad Bishopa5c52ff2018-11-23 10:55:50 +1300533FILES_${PN}-wlcommon = " \
534 ${nonarch_base_libdir}/firmware/TI* \
535 ${nonarch_base_libdir}/firmware/ti-connectivity/TI* \
536"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500537FILES_${PN}-wl12xx = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500538 ${nonarch_base_libdir}/firmware/wl12* \
Brad Bishopa5c52ff2018-11-23 10:55:50 +1300539 ${nonarch_base_libdir}/firmware/ti-connectivity/wl12* \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500540"
541FILES_${PN}-wl18xx = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500542 ${nonarch_base_libdir}/firmware/wl18* \
Brad Bishopa5c52ff2018-11-23 10:55:50 +1300543 ${nonarch_base_libdir}/firmware/ti-connectivity/wl18* \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500544"
545
Brad Bishopa5c52ff2018-11-23 10:55:50 +1300546RDEPENDS_${PN}-wl12xx = "${PN}-ti-connectivity-license ${PN}-wlcommon"
547RDEPENDS_${PN}-wl18xx = "${PN}-ti-connectivity-license ${PN}-wlcommon"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500548
549# For vt6656
550LICENSE_${PN}-vt6656 = "Firmware-via_vt6656"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600551LICENSE_${PN}-vt6656-license = "Firmware-via_vt6656"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500552
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500553FILES_${PN}-vt6656-license = "${nonarch_base_libdir}/firmware/LICENCE.via_vt6656"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500554FILES_${PN}-vt6656 = " \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500555 ${nonarch_base_libdir}/firmware/vntwusb.fw \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500556"
557
558RDEPENDS_${PN}-vt6656 = "${PN}-vt6656-license"
559
560# For broadcom
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500561
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700562# 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
563
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600564LICENSE_${PN}-broadcom-license = "Firmware-broadcom_bcm43xx"
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700565FILES_${PN}-broadcom-license = "${nonarch_base_libdir}/firmware/LICENCE.broadcom_bcm43xx"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500566
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700567# 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 -0500568
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700569FILES_${PN}-bcm43xx = "${nonarch_base_libdir}/firmware/brcm/bcm43xx-0.fw"
570FILES_${PN}-bcm43xx-hdr = "${nonarch_base_libdir}/firmware/brcm/bcm43xx_hdr-0.fw"
571FILES_${PN}-bcm4329-fullmac = "${nonarch_base_libdir}/firmware/brcm/bcm4329-fullmac-4.bin"
572FILES_${PN}-bcm43236b = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43236b.bin"
573FILES_${PN}-bcm4329 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4329-sdio.bin"
574FILES_${PN}-bcm4330 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4330-sdio.bin"
575FILES_${PN}-bcm4334 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4334-sdio.bin"
576FILES_${PN}-bcm4335 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4335-sdio.bin"
577FILES_${PN}-bcm4339 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4339-sdio.bin"
578FILES_${PN}-bcm43241b0 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43241b0-sdio.bin"
579FILES_${PN}-bcm43241b4 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43241b4-sdio.bin"
580FILES_${PN}-bcm43241b5 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43241b5-sdio.bin"
581FILES_${PN}-bcm43242a = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43242a.bin"
582FILES_${PN}-bcm43143 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43143.bin \
583 ${nonarch_base_libdir}/firmware/brcm/brcmfmac43143-sdio.bin \
584"
585FILES_${PN}-bcm43430a0 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43430a0-sdio.bin"
586FILES_${PN}-bcm43455 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43455-sdio.bin"
587FILES_${PN}-bcm4350c2 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4350c2-pcie.bin"
588FILES_${PN}-bcm4350 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4350-pcie.bin"
589FILES_${PN}-bcm4356 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4356-sdio.bin"
590FILES_${PN}-bcm43569 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43569.bin"
591FILES_${PN}-bcm43570 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43570-pcie.bin"
592FILES_${PN}-bcm4358 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4358-pcie.bin"
593FILES_${PN}-bcm43602 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43602-pcie.bin \
594 ${nonarch_base_libdir}/firmware/brcm/brcmfmac43602-pcie.ap.bin \
595"
596FILES_${PN}-bcm4366b = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4366b-pcie.bin"
597FILES_${PN}-bcm4371 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4371-pcie.bin"
598
599# 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
600# Currently 1st one and last 6 have cypress LICENSE
601
602LICENSE_${PN}-bcm43xx = "Firmware-broadcom_bcm43xx"
603RDEPENDS_${PN}-bcm43xx += "${PN}-broadcom-license"
604LICENSE_${PN}-bcm43xx-hdr = "Firmware-broadcom_bcm43xx"
605RDEPENDS_${PN}-bcm43xx-hdr += "${PN}-broadcom-license"
606LICENSE_${PN}-bcm4329-fullmac = "Firmware-broadcom_bcm43xx"
607RDEPENDS_${PN}-bcm4329-fullmac += "${PN}-broadcom-license"
608LICENSE_${PN}-bcm43236b = "Firmware-broadcom_bcm43xx"
609RDEPENDS_${PN}-bcm43236b += "${PN}-broadcom-license"
610LICENSE_${PN}-bcm4329 = "Firmware-broadcom_bcm43xx"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500611RDEPENDS_${PN}-bcm4329 += "${PN}-broadcom-license"
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700612LICENSE_${PN}-bcm4330 = "Firmware-broadcom_bcm43xx"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500613RDEPENDS_${PN}-bcm4330 += "${PN}-broadcom-license"
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700614LICENSE_${PN}-bcm4334 = "Firmware-broadcom_bcm43xx"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500615RDEPENDS_${PN}-bcm4334 += "${PN}-broadcom-license"
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700616LICENSE_${PN}-bcm4335 = "Firmware-broadcom_bcm43xx"
617RDEPENDS_${PN}-bcm4335 += "${PN}-broadcom-license"
618LICENSE_${PN}-bcm4339 = "Firmware-broadcom_bcm43xx"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500619RDEPENDS_${PN}-bcm4339 += "${PN}-broadcom-license"
Brad Bishopd5ae7d92018-06-14 09:52:03 -0700620LICENSE_${PN}-bcm43241b0 = "Firmware-broadcom_bcm43xx"
621RDEPENDS_${PN}-bcm43241b0 += "${PN}-broadcom-license"
622LICENSE_${PN}-bcm43241b4 = "Firmware-broadcom_bcm43xx"
623RDEPENDS_${PN}-bcm43241b4 += "${PN}-broadcom-license"
624LICENSE_${PN}-bcm43241b5 = "Firmware-broadcom_bcm43xx"
625RDEPENDS_${PN}-bcm43241b5 += "${PN}-broadcom-license"
626LICENSE_${PN}-bcm43242a = "Firmware-broadcom_bcm43xx"
627RDEPENDS_${PN}-bcm43242a += "${PN}-broadcom-license"
628LICENSE_${PN}-bcm43143 = "Firmware-broadcom_bcm43xx"
629RDEPENDS_${PN}-bcm43143 += "${PN}-broadcom-license"
630LICENSE_${PN}-bcm43430a0 = "Firmware-broadcom_bcm43xx"
631RDEPENDS_${PN}-bcm43430a0 += "${PN}-broadcom-license"
632LICENSE_${PN}-bcm43455 = "Firmware-broadcom_bcm43xx"
633RDEPENDS_${PN}-bcm43455 += "${PN}-broadcom-license"
634LICENSE_${PN}-bcm4350c2 = "Firmware-broadcom_bcm43xx"
635RDEPENDS_${PN}-bcm4350c2 += "${PN}-broadcom-license"
636LICENSE_${PN}-bcm4350 = "Firmware-broadcom_bcm43xx"
637RDEPENDS_${PN}-bcm4350 += "${PN}-broadcom-license"
638LICENSE_${PN}-bcm4356 = "Firmware-broadcom_bcm43xx"
639RDEPENDS_${PN}-bcm4356 += "${PN}-broadcom-license"
640LICENSE_${PN}-bcm43569 = "Firmware-broadcom_bcm43xx"
641RDEPENDS_${PN}-bcm43569 += "${PN}-broadcom-license"
642LICENSE_${PN}-bcm43570 = "Firmware-broadcom_bcm43xx"
643RDEPENDS_${PN}-bcm43570 += "${PN}-broadcom-license"
644LICENSE_${PN}-bcm4358 = "Firmware-broadcom_bcm43xx"
645RDEPENDS_${PN}-bcm4358 += "${PN}-broadcom-license"
646LICENSE_${PN}-bcm43602 = "Firmware-broadcom_bcm43xx"
647RDEPENDS_${PN}-bcm43602 += "${PN}-broadcom-license"
648LICENSE_${PN}-bcm4366b = "Firmware-broadcom_bcm43xx"
649RDEPENDS_${PN}-bcm4366b += "${PN}-broadcom-license"
650LICENSE_${PN}-bcm4371 = "Firmware-broadcom_bcm43xx"
651RDEPENDS_${PN}-bcm4371 += "${PN}-broadcom-license"
652
653# For broadcom cypress
654
655LICENSE_${PN}-cypress-license = "Firmware-cypress"
656FILES_${PN}-cypress-license = "${nonarch_base_libdir}/firmware/LICENCE.cypress"
657
658FILES_${PN}-bcm-0bb4-0306 = "${nonarch_base_libdir}/firmware/brcm/BCM-0bb4-0306.hcd"
659FILES_${PN}-bcm43340 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43340-sdio.bin"
660FILES_${PN}-bcm43362 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43362-sdio.bin"
661FILES_${PN}-bcm43430 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac43430-sdio.bin"
662FILES_${PN}-bcm4354 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4354-sdio.bin"
663FILES_${PN}-bcm4356-pcie = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4356-pcie.bin"
664FILES_${PN}-bcm4373 = "${nonarch_base_libdir}/firmware/brcm/brcmfmac4373-sdio.bin \
665 ${nonarch_base_libdir}/firmware/brcm/brcmfmac4373.bin \
666"
667
668LICENSE_${PN}-bcm-0bb4-0306 = "Firmware-cypress"
669RDEPENDS_${PN}-bcm-0bb4-0306 += "${PN}-cypress-license"
670LICENSE_${PN}-bcm43340 = "Firmware-cypress"
671RDEPENDS_${PN}-bcm43340 += "${PN}-cypress-license"
672LICENSE_${PN}-bcm43362 = "Firmware-cypress"
673RDEPENDS_${PN}-bcm43362 += "${PN}-cypress-license"
674LICENSE_${PN}-bcm43430 = "Firmware-cypress"
675RDEPENDS_${PN}-bcm43430 += "${PN}-cypress-license"
676LICENSE_${PN}-bcm4354 = "Firmware-cypress"
677RDEPENDS_${PN}-bcm4354 += "${PN}-cypress-license"
678LICENSE_${PN}-bcm4356-pcie = "Firmware-cypress"
679RDEPENDS_${PN}-bcm4356-pcie += "${PN}-cypress-license"
680LICENSE_${PN}-bcm4373 = "Firmware-cypress"
681RDEPENDS_${PN}-bcm4373 += "${PN}-cypress-license"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500682
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600683# For Broadcom bnx2-mips
684#
685# which is a separate case to the other Broadcom firmwares since its
686# license is contained in the shared WHENCE file.
687
688LICENSE_${PN}-bnx2-mips = "WHENCE"
689LICENSE_${PN}-whence-license = "WHENCE"
690
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500691FILES_${PN}-bnx2-mips = "${nonarch_base_libdir}/firmware/bnx2/bnx2-mips-09-6.2.1b.fw"
692FILES_${PN}-whence-license = "${nonarch_base_libdir}/firmware/WHENCE"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600693
694RDEPENDS_${PN}-bnx2-mips += "${PN}-whence-license"
695
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500696# For imx-sdma
697LICENSE_${PN}-imx-sdma-imx6q = "Firmware-imx-sdma_firmware"
698LICENSE_${PN}-imx-sdma-imx7d = "Firmware-imx-sdma_firmware"
699LICENSE_${PN}-imx-sdma-license = "Firmware-imx-sdma_firmware"
700
701FILES_${PN}-imx-sdma-imx6q = "${nonarch_base_libdir}/firmware/imx/sdma/sdma-imx6q.bin"
702
703RPROVIDES_${PN}-imx-sdma-imx6q = "firmware-imx-sdma-imx6q"
704RREPLACES_${PN}-imx-sdma-imx6q = "firmware-imx-sdma-imx6q"
705RCONFLICTS_${PN}-imx-sdma-imx6q = "firmware-imx-sdma-imx6q"
706
707FILES_${PN}-imx-sdma-imx7d = "${nonarch_base_libdir}/firmware/imx/sdma/sdma-imx7d.bin"
708
709FILES_${PN}-imx-sdma-license = "${nonarch_base_libdir}/firmware/LICENSE.sdma_firmware"
710
711RDEPENDS_${PN}-imx-sdma-imx6q += "${PN}-imx-sdma-license"
712RDEPENDS_${PN}-imx-sdma-imx7d += "${PN}-imx-sdma-license"
713
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500714# For iwlwifi
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600715LICENSE_${PN}-iwlwifi = "Firmware-iwlwifi_firmware"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500716LICENSE_${PN}-iwlwifi-135-6 = "Firmware-iwlwifi_firmware"
717LICENSE_${PN}-iwlwifi-3160-7 = "Firmware-iwlwifi_firmware"
718LICENSE_${PN}-iwlwifi-3160-8 = "Firmware-iwlwifi_firmware"
719LICENSE_${PN}-iwlwifi-3160-9 = "Firmware-iwlwifi_firmware"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500720LICENSE_${PN}-iwlwifi-3160-10 = "Firmware-iwlwifi_firmware"
721LICENSE_${PN}-iwlwifi-3160-12 = "Firmware-iwlwifi_firmware"
722LICENSE_${PN}-iwlwifi-3160-13 = "Firmware-iwlwifi_firmware"
723LICENSE_${PN}-iwlwifi-3160-16 = "Firmware-iwlwifi_firmware"
724LICENSE_${PN}-iwlwifi-3160-17 = "Firmware-iwlwifi_firmware"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500725LICENSE_${PN}-iwlwifi-6000-4 = "Firmware-iwlwifi_firmware"
726LICENSE_${PN}-iwlwifi-6000g2a-5 = "Firmware-iwlwifi_firmware"
727LICENSE_${PN}-iwlwifi-6000g2a-6 = "Firmware-iwlwifi_firmware"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600728LICENSE_${PN}-iwlwifi-6000g2b-5 = "Firmware-iwlwifi_firmware"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500729LICENSE_${PN}-iwlwifi-6000g2b-6 = "Firmware-iwlwifi_firmware"
730LICENSE_${PN}-iwlwifi-6050-4 = "Firmware-iwlwifi_firmware"
731LICENSE_${PN}-iwlwifi-6050-5 = "Firmware-iwlwifi_firmware"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500732LICENSE_${PN}-iwlwifi-7260 = "Firmware-iwlwifi_firmware"
733LICENSE_${PN}-iwlwifi-7265 = "Firmware-iwlwifi_firmware"
734LICENSE_${PN}-iwlwifi-7265d = "Firmware-iwlwifi_firmware"
735LICENSE_${PN}-iwlwifi-8000c = "Firmware-iwlwifi_firmware"
736LICENSE_${PN}-iwlwifi-8265 = "Firmware-iwlwifi_firmware"
Brad Bishop316dfdd2018-06-25 12:45:53 -0400737LICENSE_${PN}-iwlwifi-9000 = "Firmware-iwlwifi_firmware"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600738LICENSE_${PN}-iwlwifi-misc = "Firmware-iwlwifi_firmware"
739LICENSE_${PN}-iwlwifi-license = "Firmware-iwlwifi_firmware"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500740
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500741
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500742FILES_${PN}-iwlwifi-license = "${nonarch_base_libdir}/firmware/LICENCE.iwlwifi_firmware"
743FILES_${PN}-iwlwifi-135-6 = "${nonarch_base_libdir}/firmware/iwlwifi-135-6.ucode"
744FILES_${PN}-iwlwifi-3160-7 = "${nonarch_base_libdir}/firmware/iwlwifi-3160-7.ucode"
745FILES_${PN}-iwlwifi-3160-8 = "${nonarch_base_libdir}/firmware/iwlwifi-3160-8.ucode"
746FILES_${PN}-iwlwifi-3160-9 = "${nonarch_base_libdir}/firmware/iwlwifi-3160-9.ucode"
747FILES_${PN}-iwlwifi-3160-10 = "${nonarch_base_libdir}/firmware/iwlwifi-3160-10.ucode"
748FILES_${PN}-iwlwifi-3160-12 = "${nonarch_base_libdir}/firmware/iwlwifi-3160-12.ucode"
749FILES_${PN}-iwlwifi-3160-13 = "${nonarch_base_libdir}/firmware/iwlwifi-3160-13.ucode"
750FILES_${PN}-iwlwifi-3160-16 = "${nonarch_base_libdir}/firmware/iwlwifi-3160-16.ucode"
751FILES_${PN}-iwlwifi-3160-17 = "${nonarch_base_libdir}/firmware/iwlwifi-3160-17.ucode"
752FILES_${PN}-iwlwifi-6000-4 = "${nonarch_base_libdir}/firmware/iwlwifi-6000-4.ucode"
753FILES_${PN}-iwlwifi-6000g2a-5 = "${nonarch_base_libdir}/firmware/iwlwifi-6000g2a-5.ucode"
754FILES_${PN}-iwlwifi-6000g2a-6 = "${nonarch_base_libdir}/firmware/iwlwifi-6000g2a-6.ucode"
755FILES_${PN}-iwlwifi-6000g2b-5 = "${nonarch_base_libdir}/firmware/iwlwifi-6000g2b-5.ucode"
756FILES_${PN}-iwlwifi-6000g2b-6 = "${nonarch_base_libdir}/firmware/iwlwifi-6000g2b-6.ucode"
757FILES_${PN}-iwlwifi-6050-4 = "${nonarch_base_libdir}/firmware/iwlwifi-6050-4.ucode"
758FILES_${PN}-iwlwifi-6050-5 = "${nonarch_base_libdir}/firmware/iwlwifi-6050-5.ucode"
759FILES_${PN}-iwlwifi-7260 = "${nonarch_base_libdir}/firmware/iwlwifi-7260-*.ucode"
760FILES_${PN}-iwlwifi-7265 = "${nonarch_base_libdir}/firmware/iwlwifi-7265-*.ucode"
761FILES_${PN}-iwlwifi-7265d = "${nonarch_base_libdir}/firmware/iwlwifi-7265D-*.ucode"
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500762FILES_${PN}-iwlwifi-8000c = "${nonarch_base_libdir}/firmware/iwlwifi-8000C-*.ucode"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500763FILES_${PN}-iwlwifi-8265 = "${nonarch_base_libdir}/firmware/iwlwifi-8265-*.ucode"
Brad Bishop316dfdd2018-06-25 12:45:53 -0400764FILES_${PN}-iwlwifi-9000 = "${nonarch_base_libdir}/firmware/iwlwifi-9000-*.ucode"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500765FILES_${PN}-iwlwifi-misc = "${nonarch_base_libdir}/firmware/iwlwifi-*.ucode"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500766
767RDEPENDS_${PN}-iwlwifi-135-6 = "${PN}-iwlwifi-license"
768RDEPENDS_${PN}-iwlwifi-3160-7 = "${PN}-iwlwifi-license"
769RDEPENDS_${PN}-iwlwifi-3160-8 = "${PN}-iwlwifi-license"
770RDEPENDS_${PN}-iwlwifi-3160-9 = "${PN}-iwlwifi-license"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500771RDEPENDS_${PN}-iwlwifi-3160-10 = "${PN}-iwlwifi-license"
772RDEPENDS_${PN}-iwlwifi-3160-12 = "${PN}-iwlwifi-license"
773RDEPENDS_${PN}-iwlwifi-3160-13 = "${PN}-iwlwifi-license"
774RDEPENDS_${PN}-iwlwifi-3160-16 = "${PN}-iwlwifi-license"
775RDEPENDS_${PN}-iwlwifi-3160-17 = "${PN}-iwlwifi-license"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500776RDEPENDS_${PN}-iwlwifi-6000-4 = "${PN}-iwlwifi-license"
777RDEPENDS_${PN}-iwlwifi-6000g2a-5 = "${PN}-iwlwifi-license"
778RDEPENDS_${PN}-iwlwifi-6000g2a-6 = "${PN}-iwlwifi-license"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600779RDEPENDS_${PN}-iwlwifi-6000g2b-5 = "${PN}-iwlwifi-license"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500780RDEPENDS_${PN}-iwlwifi-6000g2b-6 = "${PN}-iwlwifi-license"
781RDEPENDS_${PN}-iwlwifi-6050-4 = "${PN}-iwlwifi-license"
782RDEPENDS_${PN}-iwlwifi-6050-5 = "${PN}-iwlwifi-license"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500783RDEPENDS_${PN}-iwlwifi-7260 = "${PN}-iwlwifi-license"
784RDEPENDS_${PN}-iwlwifi-7265 = "${PN}-iwlwifi-license"
785RDEPENDS_${PN}-iwlwifi-7265d = "${PN}-iwlwifi-license"
786RDEPENDS_${PN}-iwlwifi-8000c = "${PN}-iwlwifi-license"
787RDEPENDS_${PN}-iwlwifi-8265 = "${PN}-iwlwifi-license"
Brad Bishop316dfdd2018-06-25 12:45:53 -0400788RDEPENDS_${PN}-iwlwifi-9000 = "${PN}-iwlwifi-license"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600789RDEPENDS_${PN}-iwlwifi-misc = "${PN}-iwlwifi-license"
790
791# -iwlwifi-misc is a "catch all" package that includes all the iwlwifi
792# firmwares that are not already included in other -iwlwifi- packages.
793# -iwlwifi is a virtual package that depends upon all iwlwifi packages.
794# These are distinct in order to allow the -misc firmwares to be installed
795# without pulling in every other iwlwifi package.
796ALLOW_EMPTY_${PN}-iwlwifi = "1"
797ALLOW_EMPTY_${PN}-iwlwifi-misc = "1"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500798
799# Handle package updating for the newly merged iwlwifi groupings
800RPROVIDES_${PN}-iwlwifi-7265 = "${PN}-iwlwifi-7265-8 ${PN}-iwlwifi-7265-9"
801RREPLACES_${PN}-iwlwifi-7265 = "${PN}-iwlwifi-7265-8 ${PN}-iwlwifi-7265-9"
802RCONFLICTS_${PN}-iwlwifi-7265 = "${PN}-iwlwifi-7265-8 ${PN}-iwlwifi-7265-9"
803
804RPROVIDES_${PN}-iwlwifi-7260 = "${PN}-iwlwifi-7260-7 ${PN}-iwlwifi-7260-8 ${PN}-iwlwifi-7260-9"
805RREPLACES_${PN}-iwlwifi-7260 = "${PN}-iwlwifi-7260-7 ${PN}-iwlwifi-7260-8 ${PN}-iwlwifi-7260-9"
806RCONFLICTS_${PN}-iwlwifi-7260 = "${PN}-iwlwifi-7260-7 ${PN}-iwlwifi-7260-8 ${PN}-iwlwifi-7260-9"
807
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500808# For ibt
809LICENSE_${PN}-ibt-license = "Firmware-ibt_firmware"
810LICENSE_${PN}-ibt-hw-37-7 = "Firmware-ibt_firmware"
811LICENSE_${PN}-ibt-hw-37-8 = "Firmware-ibt_firmware"
812LICENSE_${PN}-ibt-11-5 = "Firmware-ibt_firmware"
813LICENSE_${PN}-ibt-12-16 = "Firmware-ibt_firmware"
Brad Bishop316dfdd2018-06-25 12:45:53 -0400814LICENSE_${PN}-ibt-17 = "Firmware-ibt_firmware"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500815LICENSE_${PN}-ibt-misc = "Firmware-ibt_firmware"
816
817FILES_${PN}-ibt-license = "${nonarch_base_libdir}/firmware/LICENCE.ibt_firmware"
818FILES_${PN}-ibt-hw-37-7 = "${nonarch_base_libdir}/firmware/intel/ibt-hw-37.7*.bseq"
819FILES_${PN}-ibt-hw-37-8 = "${nonarch_base_libdir}/firmware/intel/ibt-hw-37.8*.bseq"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800820FILES_${PN}-ibt-11-5 = "${nonarch_base_libdir}/firmware/intel/ibt-11-5.sfi ${nonarch_base_libdir}/firmware/intel/ibt-11-5.ddc"
821FILES_${PN}-ibt-12-16 = "${nonarch_base_libdir}/firmware/intel/ibt-12-16.sfi ${nonarch_base_libdir}/firmware/intel/ibt-12-16.ddc"
822FILES_${PN}-ibt-17 = "${nonarch_base_libdir}/firmware/intel/ibt-17-*.sfi ${nonarch_base_libdir}/firmware/intel/ibt-17-*.ddc"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500823FILES_${PN}-ibt-misc = "${nonarch_base_libdir}/firmware/ibt-*"
824
825RDEPENDS_${PN}-ibt-hw-37-7 = "${PN}-ibt-license"
826RDEPENDS_${PN}-ibt-hw-37.8 = "${PN}-ibt-license"
827RDEPENDS_${PN}-ibt-11-5 = "${PN}-ibt-license"
828RDEPENDS_${PN}-ibt-12-16 = "${PN}-ibt-license"
Brad Bishop316dfdd2018-06-25 12:45:53 -0400829RDEPENDS_${PN}-ibt-17 = "${PN}-ibt-license"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500830RDEPENDS_${PN}-ibt-misc = "${PN}-ibt-license"
831
832ALLOW_EMPTY_${PN}-ibt= "1"
833ALLOW_EMPTY_${PN}-ibt-misc = "1"
834
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500835LICENSE_${PN}-i915 = "Firmware-i915"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600836LICENSE_${PN}-i915-license = "Firmware-i915"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500837FILES_${PN}-i915-license = "${nonarch_base_libdir}/firmware/LICENSE.i915"
838FILES_${PN}-i915 = "${nonarch_base_libdir}/firmware/i915"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500839RDEPENDS_${PN}-i915 = "${PN}-i915-license"
840
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500841FILES_${PN}-adsp-sst-license = "${nonarch_base_libdir}/firmware/LICENCE.adsp_sst"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500842LICENSE_${PN}-adsp-sst = "Firmware-adsp_sst"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600843LICENSE_${PN}-adsp-sst-license = "Firmware-adsp_sst"
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500844FILES_${PN}-adsp-sst = "${nonarch_base_libdir}/firmware/intel/dsp_fw*"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500845RDEPENDS_${PN}-adsp-sst = "${PN}-adsp-sst-license"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500846
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500847# For QAT
848LICENSE_${PN}-qat = "Firmware-qat"
849LICENSE_${PN}-qat-license = "Firmware-qat"
850FILES_${PN}-qat-license = "${nonarch_base_libdir}/firmware/LICENCE.qat_firmware"
851FILES_${PN}-qat = "${nonarch_base_libdir}/firmware/qat*.bin"
852RDEPENDS_${PN}-qat = "${PN}-qat-license"
853
Brad Bishop316dfdd2018-06-25 12:45:53 -0400854# For QCOM VPU/GPU
855LICENSE_${PN}-qcom-license = "Firmware-qcom"
856FILES_${PN}-qcom-license = "${nonarch_base_libdir}/firmware/LICENSE.qcom ${nonarch_base_libdir}/firmware/qcom/NOTICE.txt"
857FILES_${PN}-qcom-venus-1.8 = "${nonarch_base_libdir}/firmware/qcom/venus-1.8/*"
858FILES_${PN}-qcom-venus-4.2 = "${nonarch_base_libdir}/firmware/qcom/venus-4.2/*"
859FILES_${PN}-qcom-adreno-a3xx = "${nonarch_base_libdir}/firmware/qcom/a300_*.fw ${nonarch_base_libdir}/firmware/a300_*.fw"
860FILES_${PN}-qcom-adreno-a530 = "${nonarch_base_libdir}/firmware/qcom/a530*.*"
861RDEPENDS_${PN}-qcom-venus-1.8 = "${PN}-qcom-license"
862RDEPENDS_${PN}-qcom-venus-4.2 = "${PN}-qcom-license"
863RDEPENDS_${PN}-qcom-adreno-a3xx = "${PN}-qcom-license"
864RDEPENDS_${PN}-qcom-adreno-a530 = "${PN}-qcom-license"
865
Andrew Geissler99467da2019-02-25 18:54:23 -0600866FILES_${PN}-liquidio = "${nonarch_base_libdir}/firmware/liquidio"
867
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500868# For other firmwares
869# Maybe split out to separate packages when needed.
870LICENSE_${PN} = "\
871 Firmware-Abilis \
872 & Firmware-agere \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500873 & Firmware-amdgpu \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500874 & Firmware-amd-ucode \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500875 & Firmware-atmel \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500876 & Firmware-ca0132 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500877 & Firmware-cavium \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500878 & Firmware-chelsio_firmware \
879 & Firmware-cw1200 \
880 & Firmware-dib0700 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500881 & Firmware-e100 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500882 & Firmware-ene_firmware \
883 & Firmware-fw_sst_0f28 \
884 & Firmware-go7007 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500885 & Firmware-hfi1_firmware \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500886 & Firmware-i2400m \
887 & Firmware-ibt_firmware \
888 & Firmware-it913x \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500889 & Firmware-IntcSST2 \
890 & Firmware-kaweth \
891 & Firmware-moxa \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500892 & Firmware-myri10ge_firmware \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500893 & Firmware-nvidia \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500894 & Firmware-OLPC \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500895 & Firmware-ath9k-htc \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500896 & Firmware-phanfw \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500897 & Firmware-qat \
Brad Bishop316dfdd2018-06-25 12:45:53 -0400898 & Firmware-qcom \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500899 & Firmware-qla1280 \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500900 & Firmware-qla2xxx \
901 & Firmware-r8a779x_usb3 \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500902 & Firmware-radeon \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500903 & Firmware-ralink_a_mediatek_company_firmware \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600904 & Firmware-ralink-firmware \
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500905 & Firmware-imx-sdma_firmware \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500906 & Firmware-siano \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500907 & Firmware-tda7706-firmware \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500908 & Firmware-ti-connectivity \
909 & Firmware-ti-keystone \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500910 & Firmware-ueagle-atm4-firmware \
911 & Firmware-wl1251 \
912 & Firmware-xc4000 \
913 & Firmware-xc5000 \
914 & Firmware-xc5000c \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600915 & WHENCE \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500916"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500917
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500918FILES_${PN}-license += "${nonarch_base_libdir}/firmware/LICEN*"
919FILES_${PN} += "${nonarch_base_libdir}/firmware/*"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500920RDEPENDS_${PN} += "${PN}-license"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600921RDEPENDS_${PN} += "${PN}-whence-license"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500922
923# Make linux-firmware depend on all of the split-out packages.
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600924# Make linux-firmware-iwlwifi depend on all of the split-out iwlwifi packages.
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500925# Make linux-firmware-ibt depend on all of the split-out ibt packages.
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500926python populate_packages_prepend () {
927 firmware_pkgs = oe.utils.packages_filter_out_system(d)
Andrew Geissler99467da2019-02-25 18:54:23 -0600928 d.appendVar('RRECOMMENDS_linux-firmware', ' ' + ' '.join(firmware_pkgs))
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600929
930 iwlwifi_pkgs = filter(lambda x: x.find('-iwlwifi-') != -1, firmware_pkgs)
Andrew Geissler99467da2019-02-25 18:54:23 -0600931 d.appendVar('RRECOMMENDS_linux-firmware-iwlwifi', ' ' + ' '.join(iwlwifi_pkgs))
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500932
933 ibt_pkgs = filter(lambda x: x.find('-ibt-') != -1, firmware_pkgs)
Andrew Geissler99467da2019-02-25 18:54:23 -0600934 d.appendVar('RRECOMMENDS_linux-firmware-ibt', ' ' + ' '.join(ibt_pkgs))
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500935}
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500936
937# Firmware files are generally not ran on the CPU, so they can be
938# allarch despite being architecture specific
939INSANE_SKIP = "arch"