What's the difference between IMAGE_INSTALL and CORE_IMAGE_EXTRA_INSTALL
Asked Answered
D

1

12

It seems both (IMAGE_INSTALL and CORE_IMAGE_EXTRA_INSTALL) can add packages into yocto image.

What's their difference?

I checked this issue:

Yocto: Difference between CORE_IMAGE_EXTRA_INSTALL and IMAGE_INSTALL

but I still don't understand what's their difference.

Decarbonate answered 16/3, 2020 at 8:44 Comment(0)
A
15

IMAGE_INSTALL is the variable that controls what is included in any image.

CORE_IMAGE_EXTRA_INSTALL is a convenience variable that enable you to add extra packages to an image based on the core-image class [1].

So if you're using an image based on core-image, adding something to CORE_IMAGE_EXTRA_INSTALL is just another way to add it to IMAGE_INSTALL. But if you're not using an image based on core-image, adding something to CORE_IMAGE_EXTRA_INSTALL does nothing.

Sometimes it's easy to make mistakes when adding something to IMAGE_INSTALL, like if you do IMAGE_INSTALL += "foo" from local.conf it would effectively replace the default lazy assignment done in core-image.bbclass resulting in a unbootable image. But doing CORE_IMAGE_EXTRA_INSTALL += "foo" in local.conf will not break, since it doesn't have essential content being set using lazy operators.

  1. https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/core-image.bbclass
Arette answered 16/3, 2020 at 9:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.