Bug 11767

Summary: elf image compression failed due missing cpio.gz file
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Jose Perez C <jose.perez.carranza>
Component: coreAssignee: Ed Bartosh <eduard.bartosh>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher
Version: 2.4   
Target Milestone: 2.4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 10745    

Description Jose Perez C 2017-07-06 16:32:58 UTC
When trying to use  IMAGE_FSTYPES += "elf" fails due missing cpio.gz file, also on current master there is another failure due elf is trying to use "virtual/kernel-native" but a patch is already on the list [1], so to get this failure on apply first that patch.

1- https://patchwork.openembedded.org/patch/141623/ 

Steps:

1. Add the following variables to "conf/local.conf"
   IMAGE_FSTYPES += " elf"   
2. Compile
   $ bitbake core-image-minimal

Expected result:
The compilation process should be performed successfully and the generated compressed image should be at: "~/tmp/deploy/images/<machine>/"

Actual result:
The compilation image process failed getting the following error message:

=====================
DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_image_elf
| Cannot open `/home/jgperezc/poky-contrib/build-bug10745/tmp/deploy/images/qemux86/core-image-minimal-qemux86.cpio.gz': No such file or directory
| WARNING: /home/jgperezc/poky-contrib/build-bug10745/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/run.do_image_elf.33339:1 exit 1 from 'mkelfImage --kernel=/home/jgperezc/poky-contrib/build-bug10745/tmp/deploy/images/qemux86/bzImage --initrd=/home/jgperezc/poky-contrib/build-bug10745/tmp/deploy/images/qemux86/core-image-minimal-qemux86.cpio.gz --output=/home/jgperezc/poky-contrib/build-bug10745/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/deploy-core-image-minimal-image-complete/core-image-minimal-qemux86-20170706162939.rootfs.elf --append='ramdisk_size=32768 root=/dev/ram0 rw console=''
Comment 1 Ed Bartosh 2017-07-17 08:59:56 UTC
Please, review the fix: http://lists.openembedded.org/pipermail/openembedded-core/2017-July/139688.html
Comment 2 Jose Perez C 2017-07-20 14:55:29 UTC
(In reply to comment #1)
> Please, review the fix:
> http://lists.openembedded.org/pipermail/openembedded-core/2017-July/139688.
> html

Just tested with the patch sent and is working correctly
Comment 3 Ed Bartosh 2017-07-24 07:35:00 UTC
The fix has been merged to poky master. Commit id d66314a18c0c1aeeef50185635dbbe76e48b72d1