[oe] the awkwardness of using core-image.bbclass

Robert P. J. Day rpjday at crashcourse.ca
Sat Jul 12 09:53:38 UTC 2014


On Fri, 11 Jul 2014, Khem Raj wrote:

> >   i know, which is exactly what is so counter-intuitive with the way
> > the above is done. you can override those two variables, but not
> > CORE_IMAGE_BASE_INSTALL directly, it just seems silly.
>
> why do you want CORE_IMAGE_BASE_INSTALL to be overridable ? unless
> you want to construct image of your own completely from scratch but
> then why would you want to inherit properties from core-image class.

  one last post on this, then i'll move on -- i didn't want this to
become so involved.

  quite simply, even if you inherit from core-image, the setting of
CORE_IMAGE_BASE_INSTALL *is* overridable -- it's simply overridable in
a disgusting, grotesque, non-intuitive and incomprehensible way.

  i'm happy to leave core-image.bbclass the way it is, and i'll admit
that it works just fine as long as you recognize the crippled way it's
implemented. any base class that requires horrid code like this in an
inheriting class:

IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL}"
inherit core-image

to allegedly *inherit* from core-image but still mangle the allegedly
really, really important value of CORE_IMAGE_BASE_INSTALL is just ...
wrong.

  so, i'm happy to leave things the way they are, knowing that in my
future OE/yocto courses, i will continue to introduce the section on
core images with the lead-in, "you're not going to *believe* what they
did here", after which students will, as always, be wiping their eyes
from laughter.

  and as forrest gump once said, "and that's all i have to say about
that."  carry on.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================



More information about the Openembedded-devel mailing list