[yocto] directory not created in /lib/firmware rootfs

Khem Raj raj.khem at gmail.com
Wed Mar 14 19:29:55 PDT 2018


On Wed, Mar 14, 2018 at 7:20 PM Vincent Daanen <vincent.daanen at orthotaxy.com>
wrote:

> Hi,
>
>
>
> I have to install a firmware in /lib/firmware.
>
> In the recipe, the function do_install() is the following
>
> do_install() {
>
>                 install -d ${base_libdir}/firmware
>
>
You forgot to prepend staging systoot ${D} before the base libdir above

>                 install -m 0755
> ${WORKDIR}/firmware_manufacturer/firmware.fw ${base_libdir}/firmware
>
> }
>
>
>
> FILES_${PN} += “ ${base_libdir}/firmware/firmware.fw “
>
>
>
> And the build fails with an error: “cannot create regular file
> ‘/lib/firmware/firmware.fw’: Permission denied
>
>
>
>
>
> So I comment the install statement relative to the firmware (install -m
> 0755…) and change FILES_${PN} to FILES_${PN} += “ ${base_libdir}/firmware ”
>
> The build succeeds but when I look at the image (with qemu) the directory
> /lib/firmware does not exists..
>
>
>
> What am I doing wrong ?
>
>
>
> Vincent
>
>
> --
> _______________________________________________
> 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/20180315/c0f44e75/attachment.html>


More information about the yocto mailing list