From: Alexander Sverdlin Date: Thu, 29 Aug 2024 19:36:33 +0000 (+0200) Subject: linux-firmware: Move Silabs wfx firmware to a separate package X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48e14565abcfe0ec8eb21b1c3e6108bb5b0a0b7c;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git linux-firmware: Move Silabs wfx firmware to a separate package Separate 300KB wfx firmware from the rest of linux-firmware package. With this change the wfx/LICENCE.wf200 is really packaged, before the change it didn't fall into copying wildcard. Signed-off-by: Alexander Sverdlin Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_20240811.bb b/meta/recipes-kernel/linux-firmware/linux-firmware_20240811.bb index 7a9c2b2b238..ab22bc83bbe 100644 --- a/meta/recipes-kernel/linux-firmware/linux-firmware_20240811.bb +++ b/meta/recipes-kernel/linux-firmware/linux-firmware_20240811.bb @@ -72,6 +72,7 @@ LICENSE = "\ & Firmware-ti-keystone \ & Firmware-ueagle-atm4-firmware \ & Firmware-via_vt6656 \ + & Firmware-wfx \ & Firmware-wl1251 \ & Firmware-xc4000 \ & Firmware-xc5000 \ @@ -152,6 +153,7 @@ LIC_FILES_CHKSUM = "file://LICENCE.Abilis;md5=b5ee3f410780e56711ad48eadc22b8bc \ file://LICENCE.xc4000;md5=0ff51d2dc49fce04814c9155081092f0 \ file://LICENCE.xc5000;md5=1e170c13175323c32c7f4d0998d53f66 \ file://LICENCE.xc5000c;md5=12b02efa3049db65d524aeb418dd87ca \ + file://wfx/LICENCE.wf200;md5=4d1beff00d902c05c9c7e95a5d8eb52d \ file://WHENCE;md5=${WHENCE_CHKSUM} \ " # WHENCE checksum is defined separately to ease overriding it if @@ -227,6 +229,7 @@ NO_GENERIC_LICENSE[Firmware-ti-connectivity] = "LICENCE.ti-connectivity" NO_GENERIC_LICENSE[Firmware-ti-keystone] = "LICENCE.ti-keystone" NO_GENERIC_LICENSE[Firmware-ueagle-atm4-firmware] = "LICENCE.ueagle-atm4-firmware" NO_GENERIC_LICENSE[Firmware-via_vt6656] = "LICENCE.via_vt6656" +NO_GENERIC_LICENSE[Firmware-wfx] = "wfx/LICENCE.wf200" NO_GENERIC_LICENSE[Firmware-wl1251] = "LICENCE.wl1251" NO_GENERIC_LICENSE[Firmware-xc4000] = "LICENCE.xc4000" NO_GENERIC_LICENSE[Firmware-xc5000] = "LICENCE.xc5000" @@ -263,6 +266,7 @@ do_compile() { do_install() { oe_runmake 'DESTDIR=${D}' 'FIRMWAREDIR=${nonarch_base_libdir}/firmware' ${PACKAGECONFIG_CONFARGS} cp LICEN[CS]E.* WHENCE ${D}${nonarch_base_libdir}/firmware/ + cp wfx/LICEN[CS]E.* ${D}${nonarch_base_libdir}/firmware/wfx/ } @@ -407,6 +411,7 @@ PACKAGES =+ "${PN}-amphion-vpu-license ${PN}-amphion-vpu \ ${PN}-rockchip-license ${PN}-rockchip-dptx \ ${PN}-amlogic-vdec-license ${PN}-amlogic-vdec \ ${PN}-lt9611uxc ${PN}-lontium-license \ + ${PN}-wfx-license ${PN}-wfx \ ${PN}-whence-license \ ${PN}-wl1251-license ${PN}-wl1251 \ ${PN}-xc4000-license ${PN}-xc4000 \ @@ -893,6 +898,18 @@ RDEPENDS:${PN}-rtl8822 += "${PN}-rtl-license" RDEPENDS:${PN}-rtl8168 += "${PN}-whence-license" RDEPENDS:${PN}-rtl-nic += "${PN}-whence-license" +# For Silabs +LICENSE:${PN}-wfx = "Firmware-wfx" +LICENSE:${PN}-wfx-license = "Firmware-wfx" + +FILES:${PN}-wfx = " \ + ${nonarch_base_libdir}/firmware/wfx/*.pds \ + ${nonarch_base_libdir}/firmware/wfx/*.sec \ +" +FILES:${PN}-wfx-license = "${nonarch_base_libdir}/firmware/wfx/LICENCE.wf200" + +RDEPENDS:${PN}-wfx += "${PN}-wfx-license" + # For TI wl1251 LICENSE:${PN}-wl1251 = "Firmware-wl1251" LICENSE:${PN}-wl1251-license = "Firmware-wl1251"