[oe] Inheriting conditionally

Matt Hoosier matt.hoosier at gmail.com
Tue Aug 7 23:23:12 UTC 2007


Hi all,

I'm search for a syntax that will allow me to inherit from certain
classes only when using a particular distribution. Is there some good
way to do this, like maybe:

  python {
    if bb.getVar("DISTRO") == "mydistro"
      # some API call to add inherited class
  }

The particular thing I want to accomplish is to use the update-rc.d
functionality to start a daemon systemwide only when targeting my own
distro; it's nonstandard and wouldn't be appropriate for most
distributions.

Thanks,

Matt




More information about the Openembedded-devel mailing list