[yocto] Custom image type and CONVERSION_CMD images softlink problem

Mirza Krak mirza at mkrak.org
Mon Apr 2 13:03:07 PDT 2018


On 2 April 2018 at 21:29, Mirza Krak <mirza at mkrak.org> wrote:
> On 29 March 2018 at 11:20, Mirza Krak <mirza at mkrak.org> wrote:
>> Hi.
>>
>> I am working with a project that has a custom image type, "sdimg". The
>> image works fine but it is when I try to apply CONVERSION_CMDs that I
>> see some interesting things.
>>
>> The image output is:
>>
>>      ${IMGDEPLOYDIR}/${IMAGE_NAME}.$suffix
>>
>> There is also a soft-link:
>>
>>     ln -sfn "${IMAGE_NAME}.$suffix"
>> "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.$suffix"
>>
>> Now the interesting part comes when I try this:
>>
>>      IMAGE_FSTYPES += "sdimg.gz"
>>
>> This results in a empty gz file, but I already know why and that is
>> because the "normal" image does not contain IMAGE_NAME_SUFFIX in the
>> output name, on which the CONVERSION_CMDs rely on [1].
>>
>> So instead of changing the image name I was hoping that this should
>> work (default is ".rootfs" in image_types.bbclass):
>>
>>     IMAGE_NAME_SUFFIX_sdimg = ""

Some addition information.

It seems if I if I do this:

   IMAGE_NAME_SUFFIX_sdimg = ""
   do_image_sdimg[imgsuffix] = ""

Then all steps are completed as expected (gz created and symlink is correct)
-- 
Med Vänliga Hälsningar / Best Regards

Mirza Krak
email: mirza at mkrak.org
web: http://mkrak.org



More information about the yocto mailing list