On Mon, Oct 11, 2021 at 03:22:03PM +0530, Sinthu Raja wrote:
> From: Sinthu Raja <[email protected]>
> 
> The Intel 9260 WiFi and BT firmware is already part of the linux-firmware
> repository, so package it to make it available.
> 
> Signed-off-by: Sinthu Raja <[email protected]>
> ---
> 
> Changes in V3:
> Replaced PREPEND tag with '=+' to include the firmwares into the package,
> because the PREPEND tag throws error during parsing the recipes.

As mentioned in the other email, the difference between =+ and _prepend is 
that the first one adds a whitespace, but not the second one, so you end up 
concatenating two items in the list if you don't add whitespace yourself.


> V2: https://www.mail-archive.com/[email protected]/msg12121.html
> V1: https://www.mail-archive.com/[email protected]/msg12117.html
> 
>  .../linux-firmware/linux-firmware_%.bbappend       | 14 +++++++++++++-
>  1 file changed, 13 insertions(+), 1 deletion(-)
> 
> diff --git 
> a/meta-arago-distro/recipes-kernel/linux-firmware/linux-firmware_%.bbappend 
> b/meta-arago-distro/recipes-kernel/linux-firmware/linux-firmware_%.bbappend
> index 146596ad..752181ac 100644
> --- 
> a/meta-arago-distro/recipes-kernel/linux-firmware/linux-firmware_%.bbappend
> +++ 
> b/meta-arago-distro/recipes-kernel/linux-firmware/linux-firmware_%.bbappend

For reference, you are extending this original linux-firmware recipe:
https://git.openembedded.org/openembedded-core/tree/meta/recipes-kernel/linux-firmware/linux-firmware_20210818.bb

For consistency with the original recipe, consider these minor fixes:


> @@ -1,4 +1,16 @@
> -PR_append = ".arago0"
> +PR_append = ".arago1"
> +
> +PACKAGES =+ "${PN}-iwlwifi-9260"
> +PACKAGES =+ "${PN}-ibt-18"

As =+ does prepend with whitespace, and += does append with whitespace, using 
=+ here is correct:
https://git.openembedded.org/openembedded-core/tree/meta/recipes-kernel/linux-firmware/linux-firmware_20210818.bb#n224


> +LICENSE_${PN}-iwlwifi-9260 =+ "Firmware-iwlwifi_firmware"
> +LICENSE_${PN}-ibt-18 =+ "Firmware-ibt_firmware"

You don't want to =+ or += (prepend or append) here to the common list of all 
the licenses, but set a specific license only for your package:
https://git.openembedded.org/openembedded-core/tree/meta/recipes-kernel/linux-firmware/linux-firmware_20210818.bb#n317


> +FILES_${PN}-iwlwifi-9260 =+ 
> "${nonarch_base_libdir}/firmware/iwlwifi-9260-*.ucode"
> +FILES_${PN}-ibt-18 =+ "${nonarch_base_libdir}/firmware/intel/ibt-18-*.sfi 
> ${nonarch_base_libdir}/firmware/intel/ibt-18-*.ddc"

Same comment here, but less critical, as FILES var would be empty initially.


> +RDEPENDS_${PN}-iwlwifi-9260 =+ "${PN}-iwlwifi-license"
> +RDEPENDS_${PN}-ibt-18 =+ "${PN}-ibt-license"

You'd usually append (+=) to RDEPENDS, but it's mostly for consistency and not 
that critical:
https://git.openembedded.org/openembedded-core/tree/meta/recipes-kernel/linux-firmware/linux-firmware_20210818.bb#n339


>  do_install_append() {
>       rm -rf  ${D}/lib/firmware/ti-connectivity/
> -- 
> 2.31.1
> 

-- 
Regards,
Denys Dmytriyenko <[email protected]>
PGP: 0x420902729A92C964 - https://denix.org/0x420902729A92C964
Fingerprint: 25FC E4A5 8A72 2F69 1186  6D76 4209 0272 9A92 C964


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13347): 
https://lists.yoctoproject.org/g/meta-arago/message/13347
Mute This Topic: https://lists.yoctoproject.org/mt/86445742/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-arago/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to