Thursday, April 7, 2022

[SOLVED] add git to yocto image

Issue

for development I want to add git to my yocto image. So I add

IMAGE_INSTALL += "git"

to my `local.conf. But when I run qemu I run into this crash straigth away:

Welcome to GRUB!

lock: OK
lock: OK

error: file `/boot/bzImage' not found.

Dropping to grub prompt for unknown reason. Should never get here.

Any idea why? Cheers


Solution

I had to move IMAGE_INSTALL += "git" from local.conf into the image recipe of the image that I'm actually building to make this work. I do not have an explanation but fixed adding git this way. Any explanation is highly welcome.

Edit: Checkout this answer by Erik for further explanation: Yocto Image file size reduces after adding a particular package



Answered By - grmmgrmm
Answer Checked By - Robin (WPSolving Admin)