All of lore.kernel.org
 help / color / mirror / Atom feed
* Missing firmware files
@ 2014-11-24 16:04 Gary Thomas
  2014-11-24 16:52 ` Paul Eggleton
  0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2014-11-24 16:04 UTC (permalink / raw)
  To: Yocto Project

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?

Thanks

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Missing firmware files
  2014-11-24 16:04 Missing firmware files Gary Thomas
@ 2014-11-24 16:52 ` Paul Eggleton
  2014-11-24 17:33   ` Gary Thomas
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Eggleton @ 2014-11-24 16:52 UTC (permalink / raw)
  To: Gary Thomas; +Cc: yocto

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.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Missing firmware files
  2014-11-24 16:52 ` Paul Eggleton
@ 2014-11-24 17:33   ` Gary Thomas
  0 siblings, 0 replies; 3+ messages in thread
From: Gary Thomas @ 2014-11-24 17:33 UTC (permalink / raw)
  To: yocto

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
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-24 17:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-24 16:04 Missing firmware files Gary Thomas
2014-11-24 16:52 ` Paul Eggleton
2014-11-24 17:33   ` Gary Thomas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.