[yocto] Missing firmware files

Gary Thomas gary at mlbassoc.com
Mon Nov 24 09:33:31 PST 2014


On 2014-11-24 09:52, Paul Eggleton wrote:
> Hi Gary,
>
> On Monday 24 November 2014 09:04:43 Gary Thomas wrote:
>> I have a .bbappend which I use to add some non-public firmware
>> files to linux-firmware.  This set up used to work, but today
>> I'm getting only empty packages.  Here's my .bbappend fragment
>>
>>
>> #--------------------------------------------------------------------------
>> ------------- # Wi2Wi (based on Marvell SDIO 86xx devices
>>     #
>>     LICENSE_${PN}-wi2wi = "Firmware:LICENCE.Wi2Wi_firmware.txt"
>>     PROVIDES += " linux-firmware-wi2wi "
>>     SRC_URI += " \
>> 	http://www.not-public.com/Wi2Wi-firmware.tgz;name=Wi2Wi-firmware \
>>     "
>>     SRC_URI[Wi2Wi-firmware.md5sum] = "2b400aee75e7522eb7f9a299aaa6d023"
>>     SRC_URI[Wi2Wi-firmware.sha256sum] =
>> "33b08d06169074e3d680df20f057580bbc5aa3aaa07e8ba3744c9318d0cbba5d"
>>
>>     do_install_append() {
>>           cd ${S}
>> 	install -d  ${D}/lib/firmware/
>> 	# Wi2Wi via libertas
>> 	install -m 0666 ${WORKDIR}/sd8688.bin ${D}/lib/firmware
>> 	install -m 0666 ${WORKDIR}/sd8688_helper.bin ${D}/lib/firmware
>> 	install -m 0666 ${WORKDIR}/LICENCE.Wi2Wi_firmware.txt ${D}/lib/firmware/
>>     }
>>
>>     PACKAGES += "${PN}-wi2wi"
>>     FILES_${PN}-wi2wi = "/lib/firmware/sd86*.bin
>> /lib/firmware/LICENCE.Wi2Wi_firmware.txt" RPROVIDES_${PN}-wi2wi =
>> "${PN}-wi2wi"
>>
>> The desired files do end up in my install image, but not in the
>> split package linux-firmware-wi2wi
>>
>> Any ideas what I'm missing in the packaging that is ending up with
>> empty packages?
>
> I'd recommend using PACKAGES =+ rather than PACKAGES += so that your package
> picks up the files first. I'll bet another package is snagging the files before
> yours as things are at the moment.

That cracked it, thanks.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



More information about the yocto mailing list