summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFahad Arslan <fahad.arslan@siemens.com>2023-10-27 19:17:47 +0500
committerSteve Sakoman <steve@sakoman.com>2023-11-01 05:01:26 -1000
commit95b430be1671cedb985a434173e7b16d9d09259f (patch)
tree44b85dd417be3ad2b092bca7caec831a022a74d2
parente46e74cd90a1c42370a0b6ef6938b2f63d012ba4 (diff)
downloadpoky-95b430be1671cedb985a434173e7b16d9d09259f.tar.gz
linux-firmware: create separate package for cirrus and cnm firmwares
This is cherry-pick of commit 3ddddfc14f805fe7572bba129605869fb848fed4 from poky master. Some licenses only allow usage of corresponding firmwares when a specific hardware is present. This requires split of such firmwares from linux-firmware package to firmware specific sub package. As this split is based off of licensing, it makes sense to group firmware blobs having the same license in the same package. This commit is a first step in this direction, and creates separate packages for cirrus and cnm firmware. (From OE-Core rev: 53d9d8789efc701609a5a1e985287344c2209d62) (From OE-Core rev: 9b556e63ba3e89e83ba6e2647656a1fa6def87a4) Signed-off-by: Fahad Arslan <fahad.arslan@siemens.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/recipes-kernel/linux-firmware/linux-firmware_20230804.bb28
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_20230804.bb b/meta/recipes-kernel/linux-firmware/linux-firmware_20230804.bb
index 4defab434d..d87f30b8d9 100644
--- a/meta/recipes-kernel/linux-firmware/linux-firmware_20230804.bb
+++ b/meta/recipes-kernel/linux-firmware/linux-firmware_20230804.bb
@@ -18,6 +18,8 @@ LICENSE = "\
18 & Firmware-ca0132 \ 18 & Firmware-ca0132 \
19 & Firmware-cavium \ 19 & Firmware-cavium \
20 & Firmware-chelsio_firmware \ 20 & Firmware-chelsio_firmware \
21 & Firmware-cirrus \
22 & Firmware-cnm \
21 & Firmware-cw1200 \ 23 & Firmware-cw1200 \
22 & Firmware-cypress \ 24 & Firmware-cypress \
23 & Firmware-dib0700 \ 25 & Firmware-dib0700 \
@@ -81,6 +83,8 @@ LIC_FILES_CHKSUM = "file://LICENCE.Abilis;md5=b5ee3f410780e56711ad48eadc22b8bc \
81 file://LICENCE.cadence;md5=009f46816f6956cfb75ede13d3e1cee0 \ 83 file://LICENCE.cadence;md5=009f46816f6956cfb75ede13d3e1cee0 \
82 file://LICENCE.cavium;md5=c37aaffb1ebe5939b2580d073a95daea \ 84 file://LICENCE.cavium;md5=c37aaffb1ebe5939b2580d073a95daea \
83 file://LICENCE.chelsio_firmware;md5=819aa8c3fa453f1b258ed8d168a9d903 \ 85 file://LICENCE.chelsio_firmware;md5=819aa8c3fa453f1b258ed8d168a9d903 \
86 file://LICENSE.cirrus;md5=bb18d943382abf8e8232a9407bfdafe0 \
87 file://LICENCE.cnm;md5=93b67e6bac7f8fec22b96b8ad0a1a9d0 \
84 file://LICENCE.cw1200;md5=f0f770864e7a8444a5c5aa9d12a3a7ed \ 88 file://LICENCE.cw1200;md5=f0f770864e7a8444a5c5aa9d12a3a7ed \
85 file://LICENCE.cypress;md5=48cd9436c763bf873961f9ed7b5c147b \ 89 file://LICENCE.cypress;md5=48cd9436c763bf873961f9ed7b5c147b \
86 file://LICENSE.dib0700;md5=f7411825c8a555a1a3e5eab9ca773431 \ 90 file://LICENSE.dib0700;md5=f7411825c8a555a1a3e5eab9ca773431 \
@@ -151,6 +155,8 @@ NO_GENERIC_LICENSE[Firmware-ca0132] = "LICENCE.ca0132"
151NO_GENERIC_LICENSE[Firmware-cadence] = "LICENCE.cadence" 155NO_GENERIC_LICENSE[Firmware-cadence] = "LICENCE.cadence"
152NO_GENERIC_LICENSE[Firmware-cavium] = "LICENCE.cavium" 156NO_GENERIC_LICENSE[Firmware-cavium] = "LICENCE.cavium"
153NO_GENERIC_LICENSE[Firmware-chelsio_firmware] = "LICENCE.chelsio_firmware" 157NO_GENERIC_LICENSE[Firmware-chelsio_firmware] = "LICENCE.chelsio_firmware"
158NO_GENERIC_LICENSE[Firmware-cirrus] = "LICENSE.cirrus"
159NO_GENERIC_LICENSE[Firmware-cnm] = "LICENCE.cnm"
154NO_GENERIC_LICENSE[Firmware-cw1200] = "LICENCE.cw1200" 160NO_GENERIC_LICENSE[Firmware-cw1200] = "LICENCE.cw1200"
155NO_GENERIC_LICENSE[Firmware-cypress] = "LICENCE.cypress" 161NO_GENERIC_LICENSE[Firmware-cypress] = "LICENCE.cypress"
156NO_GENERIC_LICENSE[Firmware-dib0700] = "LICENSE.dib0700" 162NO_GENERIC_LICENSE[Firmware-dib0700] = "LICENSE.dib0700"
@@ -277,6 +283,8 @@ PACKAGES =+ "${PN}-ralink-license ${PN}-ralink \
277 ${PN}-bcm4373 \ 283 ${PN}-bcm4373 \
278 ${PN}-bcm43xx \ 284 ${PN}-bcm43xx \
279 ${PN}-bcm43xx-hdr \ 285 ${PN}-bcm43xx-hdr \
286 ${PN}-cirrus-license ${PN}-cirrus \
287 ${PN}-cnm-license ${PN}-cnm \
280 ${PN}-atheros-license ${PN}-ar9170 ${PN}-ath6k ${PN}-ath9k ${PN}-ath3k \ 288 ${PN}-atheros-license ${PN}-ar9170 ${PN}-ath6k ${PN}-ath9k ${PN}-ath3k \
281 ${PN}-gplv2-license ${PN}-carl9170 \ 289 ${PN}-gplv2-license ${PN}-carl9170 \
282 ${PN}-ar3k-license ${PN}-ar3k ${PN}-ath10k-license ${PN}-ath10k ${PN}-ath11k ${PN}-qca \ 290 ${PN}-ar3k-license ${PN}-ar3k ${PN}-ath10k-license ${PN}-ath10k ${PN}-ath11k ${PN}-qca \
@@ -826,6 +834,24 @@ FILES:${PN}-whence-license = "${nonarch_base_libdir}/firmware/WHENCE"
826 834
827RDEPENDS:${PN}-bnx2-mips += "${PN}-whence-license" 835RDEPENDS:${PN}-bnx2-mips += "${PN}-whence-license"
828 836
837# For cirrus
838LICENSE:${PN}-cirrus = "Firmware-cirrus"
839LICENSE:${PN}-cirrus-license = "Firmware-cirrus"
840
841FILES:${PN}-cirrus = "${nonarch_base_libdir}/firmware/cirrus/*"
842FILES:${PN}-cirrus-license = "${nonarch_base_libdir}/firmware/LICENSE.cirrus"
843
844RDEPENDS:${PN}-cirrus += "${PN}-cirrus-license"
845
846# For cnm
847LICENSE:${PN}-cnm = "Firmware-cnm"
848LICENSE:${PN}-cnm-license = "Firmware-cnm"
849
850FILES:${PN}-cnm = "${nonarch_base_libdir}/firmware/cnm/wave521c_k3_codec_fw.bin"
851FILES:${PN}-cnm-license = "${nonarch_base_libdir}/firmware/LICENCE.cnm"
852
853RDEPENDS:${PN}-cnm += "${PN}-cnm-license"
854
829# For imx-sdma 855# For imx-sdma
830LICENSE:${PN}-imx-sdma-imx6q = "Firmware-imx-sdma_firmware" 856LICENSE:${PN}-imx-sdma-imx6q = "Firmware-imx-sdma_firmware"
831LICENSE:${PN}-imx-sdma-imx7d = "Firmware-imx-sdma_firmware" 857LICENSE:${PN}-imx-sdma-imx7d = "Firmware-imx-sdma_firmware"
@@ -1111,6 +1137,8 @@ LICENSE:${PN} = "\
1111 & Firmware-ca0132 \ 1137 & Firmware-ca0132 \
1112 & Firmware-cavium \ 1138 & Firmware-cavium \
1113 & Firmware-chelsio_firmware \ 1139 & Firmware-chelsio_firmware \
1140 & Firmware-cirrus \
1141 & Firmware-cnm \
1114 & Firmware-cw1200 \ 1142 & Firmware-cw1200 \
1115 & Firmware-dib0700 \ 1143 & Firmware-dib0700 \
1116 & Firmware-e100 \ 1144 & Firmware-e100 \