Skip to main content
SigmaPrime
Associate III
January 11, 2021
Question

Installed package during image build not found on target

  • January 11, 2021
  • 1 reply
  • 998 views

Hello

I built a Yocto based image for my stm32 and made sure that the required packages were installed. When I flashed my Image some packages were not found although before building the image I checked the list of packages to be integrated with

bitbake -g st-image-weston && cat pn-buildlist | grep -ve "native" | sort | uniq

The .manifest file also contains the right packages to be installed. Why weren't they included in the image after the build?

Thank you.

This topic has been closed for replies.

1 reply

KnarfB
Super User
January 11, 2021

Not every package that is bitbaked is included in the image.

One way to include a package in the (core-image based) image is adding a line

CORE_IMAGE_EXTRA_INSTALL += " my-package"

to the image recipe or, better, put that line in a .bbappend file, say layers/meta-mylayer/recipes-st/images/st-image-weston.bbappend, in your own layer.

SigmaPrime
Associate III
January 11, 2021

Thank you very much. I am going to try it :grinning_face:

What is the difference between IMAGE_INSTALL_append=" my package" and CORE_IMAGE_EXTRA_INSTALL+=" my package" ?

I did not find a proper explanation to it.