All of lore.kernel.org
 help / color / mirror / Atom feed
* Conditionally inherit own-mirrors and set SOURCE_MIRROR_URL?
@ 2016-09-01 15:29 Evade Flow
  2016-09-01 21:03 ` Evade Flow
  2016-09-02 11:57 ` Richard Purdie
  0 siblings, 2 replies; 6+ messages in thread
From: Evade Flow @ 2016-09-01 15:29 UTC (permalink / raw)
  To: bitbake-devel

[-- Attachment #1: Type: text/plain, Size: 1223 bytes --]

This might be an 'X-Y' problem, so I should explain what I'm trying to
achieve. We have a somewhat beefy build server with 32 cores that most of
my team likes to `ssh` into to do builds of our Yocto/OE-based BSP. But a
few of us build on different machines often enough that I recently spun up
a web server—on the 32-core build machine—to act as a 'pre-mirror' to
statically serve  our dependencies for remote builds. The web server is
serving the exact same folder that I've been pointing `SOURCE_MIRROR_URL`
at, as described at:
https://wiki.yoctoproject.org/wiki/How_do_I#Q:_How_do_I_create_my_own_source_download_mirror_.3F

When I went to integrate support for the HTTP pre-mirror, I ran into the
following problem: if I assign `SOURCE_MIRROR_URL` and the specified folder
doesn't exist (as will be the case for remote builds), the build *fails*. I
had hoped that bitbake would 'fall through' to searching other pre-mirrors,
but that doesn't appear to be the case(?)

IIs there some way I can use a specific (and *invariant*) local source
mirror folder *only if it exists*, and use our internal HTTP pre-mirror
otherwise?

```
$ bitbake --version
BitBake Build Tool Core version 1.28.0
```

[-- Attachment #2: Type: text/html, Size: 1430 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-09-02 22:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2016-09-02 22:56       ` Evade Flow

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.