[yocto] recipe fails to load local files

Alexandru Vaduva vaduvajanalexandru at yahoo.com
Sat Nov 15 11:53:14 PST 2014


Is "zd1211" available in packages and package-split/zd1211-firmware*? 

     On Saturday, November 15, 2014 9:09 PM, "peterengcomau001 at adam.com.au" <peterengcomau001 at adam.com.au> wrote:
   

 Thanks, I have done the changes and no longer get the error. However, the firmware files still do not get generated when I build the image.
The current recipe I am using is:
______________________________________
DESCRIPTION = "Belkin Wifi Firmware"
LICENSE = "GPL"
PR = "r0"

FILESPATH = "${THISDIR}/${PN}"
FILES_${PN} += "/lib/firmware/zd1211"

SRC_URI = "\
  file://zd1211_ub \
  file://zd1211_uph \
  file://zd1211_uphm \
  file://zd1211_uphr \
  file://zd1211_ur \
"

S = "${WORKDIR}"

do_install() {
        install -d ${D}/lib/firmware/zd1211
    install -m 0555 ${WORKDIR}/zd1211_*    ${D}/lib/firmware/zd1211/
}
________________________________________

No errors result when building the image. However, there is no directory or files in:
~/poky/build-atmel/tmp/work/sama5d3xek-poky-linux-gnueabi/atmel-qt5-demo-image/1.0-r0/rootfs/lib/firmware

The recipes are in file:
~/poky/meta-atmel-lsp/recipes-lsp/zd1211-firmware
There are other recipes in ~/poky/meta-atmel-lsp/recipes-lsp that work, so bitbake can see these ok (but these are bbappend, not bb files)

 In ideas why the 


----- Original Message -----
From: "Anders Darander" <anders at chargestorm.se>
To:"Bryan Evenson" <bevenson at melinkcorp.com>
Cc:"peterengcomau001 at adam.com.au" <peterengcomau001 at adam.com.au>, "yocto at yoctoproject.org" <yocto at yoctoproject.org>
Sent:Fri, 14 Nov 2014 15:44:24 +0100
Subject:Re: [yocto] recipe fails to load local files


Just a few nitpick's...

* Bryan Evenson <bevenson at melinkcorp.com> [141114 15:21]:

> > LICENSE = "CLOSED"
> > FILES_${PN} += "~/poky/meta-atmel-lsp/recipes-lsp/zd1211-
> > firmware/zd1211-firmware"

> FILES doesn't specify where to find the files on the build machine, it
> specifies where the installed files exist on the target filesystem.
> This is what the error you are seeing is telling you; the files were
> installed in the do_install step but they did not get placed in the
> final package. In your case I believe:

> FILES_${PN} += "${libdir}/zd1211_*"

FILES_${PN} += "/lib/firmware/zd1211"

> would work.

> > SRC_URI = "\
> > file://zd1211_ub \
> > file://zd1211_uph \
> > file://zd1211_uphm \
> > file://zd1211_uphr \
> > file://zd1211_ur \
> > "

> > do_install() {
> > install -d ${D}/lib/firmware/zd1211
> > install -m 0555 ${WORKDIR}/zd1211_* ${D}/lib/firmware/zd1211/
> > }

> As mentioned in the FILES variable description in the Yocto manual,
> you should use the standard path variables whenever possible. The
> list of available path variables are near the top of
> meta/conf/bitbake.conf. That means in your case the following would
> be better:

Well, in general that's true. Though, in this specific case, it should
actually be a hardcoded /lib/firmware. ${libdir} could be lib64 or
something else, especially in a multilib-build. However, the firmware
files are always searched for in /lib/firmware.

Cheers,
Anders

> do_install() {
> install -d ${D}/${libdir}/firmware/zd1211
> install -m 0555 ${WORKDIR}/zd1211_* ${D}/${libdir}/firmware/zd1211/

-- 
Anders Darander
ChargeStorm AB / eStorm AB

---- Message sent via Adam Internet WebMail - http://www.adam.com.au/
-- 
_______________________________________________
yocto mailing list
yocto at yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20141115/f333d676/attachment.html>


More information about the yocto mailing list