Skip to content
Snippets Groups Projects
Commit 8fcd8c16 authored by Zygmunt Krynicki's avatar Zygmunt Krynicki
Browse files

flavours: Use OSTC download and sstate-cache by default


OSTC now publishes a complete sstate-cache and download cache for
a set of builds and configurations. Using those caches can dramatically
speed up setting up the development environment by avoiding huge source
downloads (about 12GB at the time of this writing) and virtually all of
the compilation (close to an hour on a 6 core 8th gen Intel mobile CPU)
at the cost of miniscule sstate cache download (on the order of one
gigabyte).

The setting is added at the bottom of local.conf, where it is easier to
spot and disable, if desired.

Signed-off-by: default avatarZygmunt Krynicki <zygmunt.krynicki@huawei.com>
parent 84a3bf94
No related branches found
No related tags found
No related merge requests found
...@@ -69,3 +69,10 @@ EXTRA_IMAGE_FEATURES ?= "debug-tweaks" ...@@ -69,3 +69,10 @@ EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
# track the version of this file when it was generated. This can safely be ignored if # track the version of this file when it was generated. This can safely be ignored if
# this doesn't mean anything to you. # this doesn't mean anything to you.
CONF_VERSION = "1" CONF_VERSION = "1"
# Use OSTC download and sstate-cache by default. You can comment out or remove
# those lines and use the defaults from Poky. Note that this cache is limited
# to system configurations that are entirely re-distributable.
INHERIT += "own-mirrors"
SOURCE_MIRROR_URL = "https://cache.ostc-eu.org/bitbake/downloads"
SSTATE_MIRRORS = "file://.* https://cache.ostc-eu.org/bitbake/sstate-cache/PATH;downloadfilename=PATH \n"
...@@ -246,3 +246,10 @@ PACKAGECONFIG_append_pn-qemu-system-native = " sdl" ...@@ -246,3 +246,10 @@ PACKAGECONFIG_append_pn-qemu-system-native = " sdl"
# track the version of this file when it was generated. This can safely be ignored if # track the version of this file when it was generated. This can safely be ignored if
# this doesn't mean anything to you. # this doesn't mean anything to you.
CONF_VERSION = "1" CONF_VERSION = "1"
# Use OSTC download and sstate-cache by default. You can comment out or remove
# those lines and use the defaults from Poky. Note that this cache is limited
# to system configurations that are entirely re-distributable.
INHERIT += "own-mirrors"
SOURCE_MIRROR_URL = "https://cache.ostc-eu.org/bitbake/downloads"
SSTATE_MIRRORS = "file://.* https://cache.ostc-eu.org/bitbake/sstate-cache/PATH;downloadfilename=PATH \n"
...@@ -247,3 +247,10 @@ PACKAGECONFIG_append_pn-qemu-system-native = " sdl" ...@@ -247,3 +247,10 @@ PACKAGECONFIG_append_pn-qemu-system-native = " sdl"
# track the version of this file when it was generated. This can safely be ignored if # track the version of this file when it was generated. This can safely be ignored if
# this doesn't mean anything to you. # this doesn't mean anything to you.
CONF_VERSION = "1" CONF_VERSION = "1"
# Use OSTC download and sstate-cache by default. You can comment out or remove
# those lines and use the defaults from Poky. Note that this cache is limited
# to system configurations that are entirely re-distributable.
INHERIT += "own-mirrors"
SOURCE_MIRROR_URL = "https://cache.ostc-eu.org/bitbake/downloads"
SSTATE_MIRRORS = "file://.* https://cache.ostc-eu.org/bitbake/sstate-cache/PATH;downloadfilename=PATH \n"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment