Skip to contentSkip to conversation

fitimage build code and DEPLOY_DIR

DISCUSSION Jate Sujjavanich 1 participant 2 messages Apr 29, 2025 – Apr 30, 2025

lore
Share & tools
lore
#0 lore raw

I have some working code which creates a fitImage that u-boot can boot with kernel and ramdisk. I am attempting to reduce host contamination by creating a local copy which can go into the its file/data.

But this ends up causing changes in the DEPLOY_DIR leading to deletion of symlinks. I was thinking that the image build code is solely in the tmp/work/MACHINE/image-recipe, but I'm thinking now that there is hidden (to me) behavior possibly in the bitbake rootfs libraries or sstate code. I hoping someone familiar with this can assist.

Thanks,
Jate S.

#1 lore raw

I'll post a fix for reference.

This was because the image CONVERSION_CMD code runs in IMGDEPLOYDIR which does lead to DEPLOY_DIR sstate interference. The fix is to perform these operations in B instead and copy the output to IMGDEPLOYDIR.

Jate S.