[oe] Inheriting conditionally

Matt Hoosier matt.hoosier at gmail.com
Wed Aug 8 15:35:30 UTC 2007


On 8/8/07, Dr. Michael Lauer <mickey at vanille-media.de> wrote:
> Matt Hoosier wrote:
> > Thanks. I also got the "bright" idea to install a dummy init script
> > for any distribution other than mine:
>
> > do_install () {
>
> >   ...
>
> >   install -d -m 0755 ${D}${sysconfdir}/init.d
> >   if [ "${DISTRO}" = "foinse" ] ; then
> >       install -m 0755 ${WORKDIR}/init
> > ${D}${sysconfdir}/init.d/pulseaudio
> >   else
> >       echo "#! /bin/sh" > ${D}${sysconfdir}/init.d/pulseaudio
> >       chmod 0755 ${D}${sysconfdir}/init.d/pulseaudio
> >   fi
> > }
>
> This looks like something that could be much better done using the
> distro OVERRIDE.

Hmm, http://www.openembedded.org/user-manual&dpage=special_overrides
doesn't have anything at the moment.

I also had trouble finding a good example in the existing packages
(well, it was Poky, which contains fewer packages than full OE). Do
you happen to know a good example?




More information about the Openembedded-devel mailing list