[Buildroot] [PATCH v2 1/3] package/murata-wireless-cyw-fmac-fw: new package

Marcin Niestrój m.niestroj at grinn-global.com
Thu May 9 07:44:49 UTC 2019


Hi Arnout,

Arnout Vandecappelle <arnout at mind.be> writes:

> On 07/05/2019 10:32, Marcin Niestroj wrote:
>> +config BR2_PACKAGE_MURATA_WIRELESS_CYW_FMAC_FW_CYW4339
>> +	bool "CYW4339 (1CK/ZP)"
>> +	help
>> +	  Murata Wireless FMAC WiFi CYW4339 (1CK/ZP) module
>> +	  firmware.
>> +
>> +config BR2_PACKAGE_MURATA_WIRELESS_CYW_FMAC_FW_CYW43430
>> +	bool "CYW43430/CYW4343W/CYW43364 (1DX/1FX/1LN)"
>> +	help
>> +	  Murata Wireless FMAC WiFi CYW43430/CYW4343W/CYW43364
>> +	  (1DX/1FX/1LN) module firmware.
>> +
>> +choice
>> +	prompt "CYW43430/CYW4343W/CYW43364 module" if BR2_PACKAGE_MURATA_WIRELESS_CYW_FMAC_FW_CYW43430
>> +
>> +config BR2_PACKAGE_MURATA_WIRELESS_CYW_FMAC_FW_CYW43430_1DX
>> +	bool "1DX"
>> +
>> +config BR2_PACKAGE_MURATA_WIRELESS_CYW_FMAC_FW_CYW43430_1FX
>> +	bool "1FX"
>> +
>> +config BR2_PACKAGE_MURATA_WIRELESS_CYW_FMAC_FW_CYW43430_1LN
>> +	bool "1LN"
>> +
>> +endchoice
>
>  I don't understand this. Why is it possible to install firmware for CYW4339 and
> CYW43430 1DX at the same time, but not for CYW43430 IDX and CYW43430 1FX?

This is because 'brcmfmac43430-sdio.1DX.clm_blob' is renamed during
installation step into 'brcmfmac43430-sdio.clm_blob' (using
murata-cyw-fw-strip-model helper). The latter is the firmware name
expected by Linux kernel.

>
>  In other words, why a choice and not just separate options like for the rest?
>
>  So I think what you want is that the
> BR2_PACKAGE_MURATA_WIRELESS_CYW_FMAC_FW_CYW43430 option becomes a blind option
> and moves out of the choice, and that it gets selected by
> BR2_PACKAGE_MURATA_WIRELESS_CYW_FMAC_FW_CYW43430_1DX etc.

It would be nice to do it that way. However different modules based on
the same chip have conflicting names under /lib/firmware/brcm/
directory.

>
>
>> +ifeq ($(BR2_PACKAGE_MURATA_WIRELESS_CYW_FMAC_FW_CYW43340),y)
>> +MURATA_WIRELESS_CYW_FMAC_FW_FILES += brcmfmac43340-sdio.bin
>> +endif
>
>  In most of this type of many-simple-options situations, we use something like
>
> MURATA_WIRELESS_CYW_FMAC_FW_FILES_$(BR2_PACKAGE_MURATA_WIRELESS_CYW_FMAC_FW_CYW43340)
> += brcmfmac43340-sdio.bin

Thanks for hint!

>
>  By the way, I think the package name is way too long. With Yann's idea to merge
> the three, I think we could name it e.g. murata-cyw-fw.

Okay, will use proposed name.

>
>  Regards,
>  Arnout


--
Marcin Niestrój


More information about the buildroot mailing list