[oe] Inheriting conditionally

Dr. Michael Lauer mickey at vanille-media.de
Wed Aug 8 15:43:47 UTC 2007


Matt Hoosier wrote:
> 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?

Check initscripts. We're using DISTRO overrides here to provide some
branding in issue and issue.net.

Regards,

:M:
-- 
Michael 'Mickey' Lauer | IT-Freelancer | http://www.vanille-media.de





More information about the Openembedded-devel mailing list