]> code.ossystems Code Review - openembedded-core.git/commit
image_types: use initrd from pre-sstate directory
authorEd Bartosh <ed.bartosh@linux.intel.com>
Mon, 17 Jul 2017 08:35:00 +0000 (11:35 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 21 Jul 2017 11:36:35 +0000 (12:36 +0100)
commit13d675b0f8968bcfdf36035fd959be285e3da378
tree3ccbdf5f038501588e5651acfc8a36c9c4162082
parent0417cc64516c47fb4daddc80e41e3f9c6ab927fc
image_types: use initrd from pre-sstate directory

mkelfImage was failing trying to use initrd from ${DEPLOY_DIR_IMAGE}:
DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_image_elf
| Cannot open `tmp/deploy/images/qemux86/core-image-minimal-qemux86.cpio.gz':
No such file or directory

As the images have only one deploy point it's not possible to reference
something the images themselves are deploying. They need to reference it
in the "pre-sstate" directory ${IMGDEPLOYDIR}, not the post sstate one
${DEPLOY_DIR_IMAGE}.

Fixed by using ${IMGDEPLOYDIR} instead of ${DEPLOY_DIR_IMAGE} in
mkelfImage command line.

[YOCTO #11767]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/image_types.bbclass