Files are not present in my rootfs (but present in package image)

Hello,

I’m working on imx6d module, generating a Linux Kernel + Rootfs with Yocto.

I add a recipe that create a new user. It work fine (logging ok and directory present)

Now, in another recipe, I want to add some files in this directory. So in the recipe, I have:

    install -d ${D}/${bindir}
    install -m 0755 ${WORKDIR}/spi-test ${D}/${bindir}/
    
    install -d ${D}/home/marvel/
    
    install -m 0755 ${WORKDIR}/spi-config ${D}/home/marvel/    
    install -m 0755 ${WORKDIR}/spi-test ${D}/home/marvel/

(marvel is the new user)

In the build recipe directory, in the image directory I can found the directory “marvel” and the 2 files spi-config and spi-test. But they are not present in the rootfs installed on the board.

In the same image directory, the directory “usr/bin” is present with spi-test present. And this file is present in the Rootfs deployed on the board.

What is wrong? Why the file installed in /usr/bin are deployed while files in /home/marvel are not?
Any idea?

Hi

I guess you also had a warning like this followed by a list of the files you miss in the package during do_package:

WARNING: QA Issue: Files/directories were installed but not shipped
  /home
  /home/marvel/
  /home/marvel/spi-config
  /home/marvel/spi-test

Have a look in the yocto manual and at the FILES variable in this recipe.

Max

Thank you! It work!
I add this:
FILES_${PN} += “/home/marvel/”
And it work. What I do not understand is why I do not have to add ${bindir} to the FILE_${PN}

The above reverenced Yocto documention says in the note:

… You will also find the default values of the various FILES_* variables in this file.

So FILES_${PN} by default includes ${bindir}.