[bitbake-devel] Conditionally inherit own-mirrors and set SOURCE_MIRROR_URL?

Richard Purdie richard.purdie at linuxfoundation.org
Fri Sep 2 21:46:34 UTC 2016


On Fri, 2016-09-02 at 15:26 -0400, Evade Flow wrote:
> > You could do something like:
> ...
> > 
> SOURCE_MIRROR_URL ?= "{@base_contains('LOCALBUILD', 'local', '
> file://xxx', 'http://xxx', d)}"
> 
> 
> That's exactly what I was looking for, thanks. I gather I can't put
> functions in local.conf, which is where our current build is setting
> SOURCE_MIRROR_URL. Can I trouble you to recommend a home for such a
> function? It 'feels weird' to put it in a recipe, is there some
> other, semi-standard place to stuff helper functions?

It is an annoying and somewhat artificial limitation. I have been known
to work around it by adding a xxx.bbclass file in a classes directory
and then INHERIT += "xxx".

Cheers,

Richard



More information about the bitbake-devel mailing list