From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Evade Flow <evadeflow@gmail.com>
Cc: bitbake-devel@lists.openembedded.org
Subject: Re: Conditionally inherit own-mirrors and set SOURCE_MIRROR_URL?
Date: Fri, 02 Sep 2016 22:46:34 +0100 [thread overview]
Message-ID: <1472852794.29583.182.camel@linuxfoundation.org> (raw)
In-Reply-To: <CAMAb8ZP-oC0Pqgh22KjFk2Py1atsFCP-1KqaKod8XsdN9s0k9w@mail.gmail.com>
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
next prev parent reply other threads:[~2016-09-02 21:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-01 15:29 Conditionally inherit own-mirrors and set SOURCE_MIRROR_URL? Evade Flow
2016-09-01 21:03 ` Evade Flow
2016-09-02 11:57 ` Richard Purdie
2016-09-02 19:26 ` Evade Flow
2016-09-02 21:46 ` Richard Purdie [this message]
2016-09-02 22:56 ` Evade Flow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1472852794.29583.182.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=bitbake-devel@lists.openembedded.org \
--cc=evadeflow@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.