On Wed, Mar 14, 2018 at 7:20 PM Vincent Daanen <[email protected]>
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
> [email protected]
> https://lists.yoctoproject.org/listinfo/yocto
>
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto