diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-30 13:23:04 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-04-03 17:52:24 +0100 |
commit | 61d38cd3a29036309514c0e5da0aab60e938d185 (patch) | |
tree | b3df53b5eb28d4f9b14e1705166e6f2ef6975e19 /meta | |
parent | dfc910bdc24633897c17caf2293409b5cd4a849b (diff) | |
download | poky-61d38cd3a29036309514c0e5da0aab60e938d185.tar.gz |
mirrors: Switch glibc and binutils to use shallow mirror tarballs
These two repositories are large and overload our downloads server as a
premirror but the recipes are easier to maintain as git urls. Compromise
and use shallow clones for them.
In order to be effective, we need premirror entries on where to find
the shallow mirror tarballs.
(From OE-Core rev: 757c09a687a30063041a83dd756f5be769631eee)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/mirrors.bbclass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/classes/mirrors.bbclass b/meta/classes/mirrors.bbclass index 37dc449ade..ffdccff5fb 100644 --- a/meta/classes/mirrors.bbclass +++ b/meta/classes/mirrors.bbclass | |||
@@ -76,3 +76,14 @@ git://git.gnome.org/.* git://gitlab.gnome.org/GNOME/PATH;protocol=https \ | |||
76 | git://.*/.* git://HOST/PATH;protocol=https \ | 76 | git://.*/.* git://HOST/PATH;protocol=https \ |
77 | git://.*/.* git://HOST/git/PATH;protocol=https \ | 77 | git://.*/.* git://HOST/git/PATH;protocol=https \ |
78 | " | 78 | " |
79 | |||
80 | # Switch glibc and binutils recipes to use shallow clones as they're large and this | ||
81 | # improves user experience whilst allowing the flexibility of git urls in the recipes | ||
82 | BB_GIT_SHALLOW:pn-binutils = "1" | ||
83 | BB_GIT_SHALLOW:pn-binutils-cross-${TARGET_ARCH} = "1" | ||
84 | BB_GIT_SHALLOW:pn-binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} = "1" | ||
85 | BB_GIT_SHALLOW:pn-binutils-cross-testsuite = "1" | ||
86 | BB_GIT_SHALLOW:pn-binutils-crosssdk-${SDK_SYS} = "1" | ||
87 | BB_GIT_SHALLOW:pn-glibc = "1" | ||
88 | PREMIRRORS += "git://sourceware.org/git/glibc.git https://downloads.yoctoproject.org/mirror/sources/ \ | ||
89 | git://sourceware.org/git/binutils-gdb.git https://downloads.yoctoproject.org/mirror/sources/" | ||