When creating a new layer or recipe using the yocto-layer script or such, the example recipe fails to build showing the following error: $ yocto-layer create layer-test Please enter the layer priority you'd like to use for the layer: [default: 6] Would you like to have an example recipe created? (y/n) [default: n] y Please enter the name you'd like to use for your example recipe: [default: example] Would you like to have an example bbappend file created? (y/n) [default: n] New layer created in meta-layer-test. Don't forget to add it to your BBLAYERS (for details see meta-layer-test/README). $ bitbake example Initialising tasks: 100% |##########################################################################################################| Time: 0:00:00 NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks ERROR: example-0.1-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/home/aehernan/yocto/poky/builds/puj/tmp/work/i586-poky-linux/example/0.1-r0/packages-split/example/usr/bin/helloworld' [ldflags] ERROR: example-0.1-r0 do_package_qa: QA run found fatal errors. Please consider fixing them. ERROR: example-0.1-r0 do_package_qa: Function failed: do_package_qa ERROR: Logfile of failure stored in: /home/aehernan/yocto/poky/builds/puj/tmp/work/i586-poky-linux/example/0.1-r0/temp/log.do_package_qa.30399 ERROR: Task (/home/aehernan/yocto/poky/builds/puj/meta-layer-test/recipes-example/example/example_0.1.bb:do_package_qa) failed with exit code '1' NOTE: Tasks Summary: Attempted 392 tasks of which 385 didn't need to be rerun and 1 failed. Summary: 1 task failed: /home/aehernan/yocto/poky/builds/puj/meta-layer-test/recipes-example/example/example_0.1.bb:do_package_qa Summary: There was 1 WARNING message shown. Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
Patch sent for review.
Patch merged: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=9d4a69fd0de8fc52fa80ea14a437ad5d0e368d84
Created attachment 3602 [details] IMG
Verified on 573c646d4cc62dcd0c230381df4940bdf314d495 Works OK