[oe] a bit of pedantry about core images
Rudolf Streif
rstreif at linuxfoundation.org
Fri Jul 11 17:20:36 UTC 2014
Hi Robert,
> documenting some stuff about core images and a few quick questions.
> first, in core-image.bbclass:
>
> # By default we install packagegroup-core-boot and packagegroup-base
> packages - this gives us
> # working (console only) rootfs.
>
> actually, not quite true:
>
> CORE_IMAGE_BASE_INSTALL = '\
> packagegroup-core-boot \
> packagegroup-base-extended \ <------
>
> so that comment just needs to be fixed, i can take care of that.
>
> Kind of. You can look at it either way. packagegroup-base.bb defines a
whole bunch of package groups that depend on each other.
packagegroup-base-extended depends on all of them hence adding it to an
image will add all of them.
> next, i've always cringed at this bit of code:
>
> CORE_IMAGE_BASE_INSTALL = '\
> packagegroup-core-boot \
> packagegroup-base-extended \
> \
> ${CORE_IMAGE_EXTRA_INSTALL} \
> '
>
> CORE_IMAGE_EXTRA_INSTALL ?= ""
>
> IMAGE_INSTALL ?= "${CORE_IMAGE_BASE_INSTALL}"
>
> could that not just be written as:
>
> CORE_IMAGE_EXTRA_INSTALL ?= ""
>
> CORE_IMAGE_BASE_INSTALL = '\
> packagegroup-core-boot \
> packagegroup-base-extended \
> '
>
> IMAGE_INSTALL ?= "${CORE_IMAGE_BASE_INSTALL}" ${CORE_IMAGE_EXTRA_INSTALL}
>
> Yes, I agree, that is much cleaner but you have to place the quotes
correctly.
Cheers,
:rjs
More information about the Openembedded-devel
mailing list