Solved – QA Issue: Files/directories were installed but not shipped in any package

If you are compiling some recipe which you have written recently, you might seen an error like below, [ here example recipe is, which was a simple recipe to add precompiled helloworld binary to filesystem.

[c] NOTE: Executing RunQueue Tasks<br> ERROR: predefine-0.1-r0 do_package: QA Issue: predefine: Files/directories were installed but not shipped in any package: /usr/bin/helloworld_bin Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. predefine: 1 installed and not shipped files. [installed-vs-shipped] ERROR: predefine-0.1-r0 do_package: Fatal QA errors found, failing task. ERROR: predefine-0.1-r0 do_package: Function failed: do_package ERROR: Logfile of failure stored in: yocto/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/predefine/0.1-r0/temp/log.do_package.11026 ERROR: Task (yocto/metadata/meta-lynxbee/recipes-example/predefined/ failed with exit code ‘1’ NOTE: Tasks Summary: Attempted 474 tasks of which 464 didn’t need to be rerun and 1 failed. [/c]

Solution :

Open the respective bitbake recipe, in our case its “metadata/meta-lynxbee/recipes-example/predefined/” and add/modify/append below lines as,

FILES_${PN} = "${bindir}/helloworld_bin"

i.e. simple solution to resolve this error is to add FILES_$PN with the directories or files pointed out in errors at command line.

Leave a Comment