[OE-core] [PATCH 3/4] task-base: allow distribution to define apm provider

Martin Jansa martin.jansa at gmail.com
Mon Apr 18 08:45:20 UTC 2011


On Mon, Apr 18, 2011 at 09:34:55AM +0100, Richard Purdie wrote:
> On Mon, 2011-04-18 at 10:00 +0200, Martin Jansa wrote:
> > Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
> > ---
> >  meta/recipes-core/tasks/task-base.bb |    5 ++++-
> >  1 files changed, 4 insertions(+), 1 deletions(-)
> > 
> > diff --git a/meta/recipes-core/tasks/task-base.bb b/meta/recipes-core/tasks/task-base.bb
> > index 138e617..10f3af4 100644
> > --- a/meta/recipes-core/tasks/task-base.bb
> > +++ b/meta/recipes-core/tasks/task-base.bb
> > @@ -179,8 +179,11 @@ RDEPENDS_task-base-acpi = "\
> >      acpid \
> >      libacpi "
> >  
> > +# Distro can override apm provider
> > +DISTRO_APM ?= "apm"
> > +
> >  RDEPENDS_task-base-apm = "\
> > -    apm \
> > +    ${DISTRO_APM} \
> >      apmd"
> 
> Can you explain a little more about why a distro would do this please?
> I'm a little worried this whole file could become a set of DISTRO_*
> variables :/.
> 
> Cheers,
> 
> Richard

For example in SHR we're using FSO which provides apm replacement called fso-apm which 
conflicts with standard apm.

We can rename it to VIRTUAL-RUNTIME_apm (like
VIRTUAL-RUNTIME_update-alternatives) if you prefer such namespace.

Cheers,

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com




More information about the Openembedded-core mailing list