Use morty and in cooker mode: 1) yocto-layer create my-yocto-layer + ---> enter something like this 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] y Please enter the name you'd like to use for your bbappend file: [default: example] Please enter the version number you'd like to use for your bbappend file (this should match the recipe you're appending to): [default: 0.1] New layer created in meta-my-yocto-layer. Don't forget to add it to your BBLAYERS (for details see meta-my-yocto-layer README). + <--- enter something like this 2) bitbake example ERROR: example-0.1-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/tmp/yocto-autobuilder/yocto-autobuilder/yocto-worker/res-custom-morty-multi-v7-core-image-minimal/build/build/tmp/work/armv7a-neon-poky-linux-gnueabi/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 3) proposed fix: https://github.com/RobertBerger/poky/commit/185a0d9853462a2c04066cc5519a366c43c44079?diff=unified
Fix by commit 9d4a69fd0de8fc52fa80ea14a437ad5d0e368d84 Author: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> Date: Tue Dec 13 10:41:12 2016 -0600 example-recipe: Fix LDFLAGS compilation issue on newly created recipes (From meta-yocto rev: aa3e99e24c3234b6f3f19169939d4cd498d0ce36) Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> and tested at commit eff56e4f0d59b1d965a68e4f009b7f07717b7edd Author: Scott Rifenbark <srifenbark@gmail.com> Date: Mon Apr 3 14:24:34 2017 -0700 bitbake: bitbake-user-manual: Fixed special character in -D output Fixes [YOCTO #9962] The new output for -D was copied into the manual and merged by the engineering team before checking to see if the manual would make properly. The next output for -D introduced an error through the string "<task>". The angled bracket characters are illegal in docbook and must be replaced by "<" and ">", respectively. I made this fix. (Bitbake rev: 0476ec4605c94b9e0208cfd3fa48ecf3e3f04181) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>