diff options
author | Timotheus Giuliani <timotheus.giuliani@philips.com> | 2024-01-18 18:40:49 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-01-21 12:27:12 +0000 |
commit | 269d6cf70af3b05b7909ce213a0d8c28427be723 (patch) | |
tree | 6694edce7f977125462a4ffcc1d31ae7e693e22f /meta/recipes-kernel/linux-firmware | |
parent | fcc39f3e04c66e4d698edad7887dc01f85f86979 (diff) | |
download | poky-269d6cf70af3b05b7909ce213a0d8c28427be723.tar.gz |
linux-firmware: fix mediatek MT76x empty license package
Installing the linux-firmware-dev package fails because of the following problem.
For each mediatek MT76x firmware a separate license package was declared.
In all these license packages the same file was referenced as the license file.
This meant that if several of these packages were used at the same time,
the license packages would be empty.
This commit defines a common license package for the mediatek MT76x packages,
which is then referenced by all of them.
Fixes: dfb7d2c426b4 ("linux-firmware: create separate packages")
(From OE-Core rev: b8af58ceade4d277133e49eeac0520792de85cce)
Signed-off-by: Julian Haller <julian.haller@philips.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/linux-firmware')
-rw-r--r-- | meta/recipes-kernel/linux-firmware/linux-firmware_20231211.bb | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_20231211.bb b/meta/recipes-kernel/linux-firmware/linux-firmware_20231211.bb index 16cf8e241b..9347cde298 100644 --- a/meta/recipes-kernel/linux-firmware/linux-firmware_20231211.bb +++ b/meta/recipes-kernel/linux-firmware/linux-firmware_20231211.bb | |||
@@ -263,9 +263,7 @@ do_install() { | |||
263 | PACKAGES =+ "${PN}-amphion-vpu-license ${PN}-amphion-vpu \ | 263 | PACKAGES =+ "${PN}-amphion-vpu-license ${PN}-amphion-vpu \ |
264 | ${PN}-cw1200-license ${PN}-cw1200 \ | 264 | ${PN}-cw1200-license ${PN}-cw1200 \ |
265 | ${PN}-ralink-license ${PN}-ralink \ | 265 | ${PN}-ralink-license ${PN}-ralink \ |
266 | ${PN}-mt7601u-license ${PN}-mt7601u \ | 266 | ${PN}-mt76x-license ${PN}-mt7601u ${PN}-mt7650 ${PN}-mt76x2 \ |
267 | ${PN}-mt7650-license ${PN}-mt7650 \ | ||
268 | ${PN}-mt76x2-license ${PN}-mt76x2 \ | ||
269 | ${PN}-radeon-license ${PN}-radeon \ | 267 | ${PN}-radeon-license ${PN}-radeon \ |
270 | ${PN}-amdgpu-license ${PN}-amdgpu \ | 268 | ${PN}-amdgpu-license ${PN}-amdgpu \ |
271 | ${PN}-marvell-license ${PN}-pcie8897 ${PN}-pcie8997 \ | 269 | ${PN}-marvell-license ${PN}-pcie8897 ${PN}-pcie8997 \ |
@@ -507,43 +505,36 @@ FILES:${PN}-ralink = " \ | |||
507 | RDEPENDS:${PN}-ralink += "${PN}-ralink-license" | 505 | RDEPENDS:${PN}-ralink += "${PN}-ralink-license" |
508 | 506 | ||
509 | # For mediatek MT7601U | 507 | # For mediatek MT7601U |
508 | LICENSE:${PN}-mt76x-license = "Firmware-ralink_a_mediatek_company_firmware" | ||
509 | FILES:${PN}-mt76x-license = "${nonarch_base_libdir}/firmware/LICENCE.ralink_a_mediatek_company_firmware" | ||
510 | |||
510 | LICENSE:${PN}-mt7601u = "Firmware-ralink_a_mediatek_company_firmware" | 511 | LICENSE:${PN}-mt7601u = "Firmware-ralink_a_mediatek_company_firmware" |
511 | LICENSE:${PN}-mt7601u-license = "Firmware-ralink_a_mediatek_company_firmware" | ||
512 | 512 | ||
513 | FILES:${PN}-mt7601u-license = "${nonarch_base_libdir}/firmware/LICENCE.ralink_a_mediatek_company_firmware" | ||
514 | FILES:${PN}-mt7601u = " \ | 513 | FILES:${PN}-mt7601u = " \ |
515 | ${nonarch_base_libdir}/firmware/mediatek/mt7601u.bin \ | 514 | ${nonarch_base_libdir}/firmware/mediatek/mt7601u.bin \ |
516 | ${nonarch_base_libdir}/firmware/mt7601u.bin \ | 515 | ${nonarch_base_libdir}/firmware/mt7601u.bin \ |
517 | " | 516 | " |
518 | RDEPENDS:${PN}-mt7601u += "${PN}-mt7601u-license" | 517 | RDEPENDS:${PN}-mt7601u += "${PN}-mt76x-license" |
519 | 518 | ||
520 | # For MediaTek Bluetooth USB driver 7650 | 519 | # For MediaTek Bluetooth USB driver 7650 |
521 | LICENSE:${PN}-mt7650 = "Firmware-ralink_a_mediatek_company_firmware" | 520 | LICENSE:${PN}-mt7650 = "Firmware-ralink_a_mediatek_company_firmware" |
522 | LICENSE:${PN}-mt7650-license = "Firmware-ralink_a_mediatek_company_firmware" | ||
523 | 521 | ||
524 | FILES:${PN}-mt7650-license = " \ | ||
525 | ${nonarch_base_libdir}/firmware/LICENCE.ralink_a_mediatek_company_firmware \ | ||
526 | " | ||
527 | FILES:${PN}-mt7650 = " \ | 522 | FILES:${PN}-mt7650 = " \ |
528 | ${nonarch_base_libdir}/firmware/mediatek/mt7650.bin \ | 523 | ${nonarch_base_libdir}/firmware/mediatek/mt7650.bin \ |
529 | ${nonarch_base_libdir}/firmware/mt7650.bin \ | 524 | ${nonarch_base_libdir}/firmware/mt7650.bin \ |
530 | " | 525 | " |
531 | RDEPENDS:${PN}-mt7650 += "${PN}-mt7650-license" | 526 | RDEPENDS:${PN}-mt7650 += "${PN}-mt76x-license" |
532 | 527 | ||
533 | # For MediaTek MT76x2 Wireless MACs | 528 | # For MediaTek MT76x2 Wireless MACs |
534 | LICENSE:${PN}-mt76x2 = "Firmware-ralink_a_mediatek_company_firmware" | 529 | LICENSE:${PN}-mt76x2 = "Firmware-ralink_a_mediatek_company_firmware" |
535 | LICENSE:${PN}-mt76x2-license = "Firmware-ralink_a_mediatek_company_firmware" | ||
536 | 530 | ||
537 | FILES:${PN}-mt76x2-license = " \ | ||
538 | ${nonarch_base_libdir}/firmware/LICENCE.ralink_a_mediatek_company_firmware \ | ||
539 | " | ||
540 | FILES:${PN}-mt76x2 = " \ | 531 | FILES:${PN}-mt76x2 = " \ |
541 | ${nonarch_base_libdir}/firmware/mediatek/mt7662.bin \ | 532 | ${nonarch_base_libdir}/firmware/mediatek/mt7662.bin \ |
542 | ${nonarch_base_libdir}/firmware/mt7662.bin \ | 533 | ${nonarch_base_libdir}/firmware/mt7662.bin \ |
543 | ${nonarch_base_libdir}/firmware/mediatek/mt7662_rom_patch.bin \ | 534 | ${nonarch_base_libdir}/firmware/mediatek/mt7662_rom_patch.bin \ |
544 | ${nonarch_base_libdir}/firmware/mt7662_rom_patch.bin \ | 535 | ${nonarch_base_libdir}/firmware/mt7662_rom_patch.bin \ |
545 | " | 536 | " |
546 | RDEPENDS:${PN}-mt76x2 += "${PN}-mt76x2-license" | 537 | RDEPENDS:${PN}-mt76x2 += "${PN}-mt76x-license" |
547 | 538 | ||
548 | # For MediaTek | 539 | # For MediaTek |
549 | LICENSE:${PN}-mediatek = "Firmware-mediatek" | 540 | LICENSE:${PN}-mediatek = "Firmware-mediatek" |