is there any way to rebuild images

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

is there any way to rebuild images

Jump to solution
16,391 Views
ming_liao
Contributor I

Hi,

I have deleted tmp/deploy/images/imx8mmevk by mistake,is there any way to rebuild image?

0 Kudos
Reply
1 Solution
15,497 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Ming Liao,

You should run a clean and then build again. (Deleting the build directory would also work but it’s not necessary and it would take a bit more time as all tasks would need to be rerun).

$ bitbake –c clean <IMAGE>

$ bitbake <IMAGE>

I hope this helps!

Regards,

View solution in original post

0 Kudos
Reply
5 Replies
15,497 Views
nxf47746
NXP Employee
NXP Employee

in yocto root dir run

source setup-environment <build-dir> 
bitbake <image-name>

<image-name>‍ is the image name you have built.

0 Kudos
Reply
15,497 Views
ming_liao
Contributor I

Hi Bert,

   After implement cmd you provide,the images folder still not generate,should i delete build-dir and clean build?

BR,

0 Kudos
Reply
15,497 Views
nxf47746
NXP Employee
NXP Employee

Note that bitbake –c clean <IMAGE> will also delete the source code build dir, rebuilding image will take some time.
What you need is redeploying the image. Retry any of the cmds below:

 bitbake <image> -c deploy
 bitbake -f <image>
‍‍‍‍‍

If this is still not work, try the clean command gusarambula provide.

0 Kudos
Reply
5,002 Views
imahgin
Contributor III

Although this is an old question, there is another way without having to recompile all from scratch.

This will instruct bitbake to only clear rootfs

bitbake <image> -c rootfs -f

And then built again the image

bitbake <image>

15,498 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Ming Liao,

You should run a clean and then build again. (Deleting the build directory would also work but it’s not necessary and it would take a bit more time as all tasks would need to be rerun).

$ bitbake –c clean <IMAGE>

$ bitbake <IMAGE>

I hope this helps!

Regards,

0 Kudos
Reply