diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-10 14:35:29 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-12 15:27:17 +0100 |
commit | fd1517e2b51a170f2427122c6b95396db251d827 (patch) | |
tree | dabfe3e631339c2fc99a9ee7febb0f9c128e325e /meta/classes-global/mirrors.bbclass | |
parent | 10317912ee319ccf7f83605d438b5cbf9663f296 (diff) | |
download | poky-fd1517e2b51a170f2427122c6b95396db251d827.tar.gz |
classes: Update classes to match new bitbake class scope functionality
Move classes to classes-global or classes-recipe as appropriate to take
advantage of new bitbake functionality to check class scope/usage.
(From OE-Core rev: f5c128008365e141082c129417eb72d2751e8045)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-global/mirrors.bbclass')
-rw-r--r-- | meta/classes-global/mirrors.bbclass | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/meta/classes-global/mirrors.bbclass b/meta/classes-global/mirrors.bbclass new file mode 100644 index 0000000000..9643b31a23 --- /dev/null +++ b/meta/classes-global/mirrors.bbclass | |||
@@ -0,0 +1,95 @@ | |||
1 | # | ||
2 | # Copyright OpenEmbedded Contributors | ||
3 | # | ||
4 | # SPDX-License-Identifier: MIT | ||
5 | # | ||
6 | |||
7 | MIRRORS += "\ | ||
8 | ${DEBIAN_MIRROR} http://snapshot.debian.org/archive/debian/20180310T215105Z/pool \ | ||
9 | ${DEBIAN_MIRROR} http://snapshot.debian.org/archive/debian-archive/20120328T092752Z/debian/pool \ | ||
10 | ${DEBIAN_MIRROR} http://snapshot.debian.org/archive/debian-archive/20110127T084257Z/debian/pool \ | ||
11 | ${DEBIAN_MIRROR} http://snapshot.debian.org/archive/debian-archive/20090802T004153Z/debian/pool \ | ||
12 | ${DEBIAN_MIRROR} http://ftp.de.debian.org/debian/pool \ | ||
13 | ${DEBIAN_MIRROR} http://ftp.au.debian.org/debian/pool \ | ||
14 | ${DEBIAN_MIRROR} http://ftp.cl.debian.org/debian/pool \ | ||
15 | ${DEBIAN_MIRROR} http://ftp.hr.debian.org/debian/pool \ | ||
16 | ${DEBIAN_MIRROR} http://ftp.fi.debian.org/debian/pool \ | ||
17 | ${DEBIAN_MIRROR} http://ftp.hk.debian.org/debian/pool \ | ||
18 | ${DEBIAN_MIRROR} http://ftp.hu.debian.org/debian/pool \ | ||
19 | ${DEBIAN_MIRROR} http://ftp.ie.debian.org/debian/pool \ | ||
20 | ${DEBIAN_MIRROR} http://ftp.it.debian.org/debian/pool \ | ||
21 | ${DEBIAN_MIRROR} http://ftp.jp.debian.org/debian/pool \ | ||
22 | ${DEBIAN_MIRROR} http://ftp.no.debian.org/debian/pool \ | ||
23 | ${DEBIAN_MIRROR} http://ftp.pl.debian.org/debian/pool \ | ||
24 | ${DEBIAN_MIRROR} http://ftp.ro.debian.org/debian/pool \ | ||
25 | ${DEBIAN_MIRROR} http://ftp.si.debian.org/debian/pool \ | ||
26 | ${DEBIAN_MIRROR} http://ftp.es.debian.org/debian/pool \ | ||
27 | ${DEBIAN_MIRROR} http://ftp.se.debian.org/debian/pool \ | ||
28 | ${DEBIAN_MIRROR} http://ftp.tr.debian.org/debian/pool \ | ||
29 | ${GNU_MIRROR} https://mirrors.kernel.org/gnu \ | ||
30 | ${KERNELORG_MIRROR} http://www.kernel.org/pub \ | ||
31 | ${GNUPG_MIRROR} ftp://ftp.gnupg.org/gcrypt \ | ||
32 | ${GNUPG_MIRROR} ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt \ | ||
33 | ${GNUPG_MIRROR} ftp://mirrors.dotsrc.org/gcrypt \ | ||
34 | ftp://dante.ctan.org/tex-archive ftp://ftp.fu-berlin.de/tex/CTAN \ | ||
35 | ftp://dante.ctan.org/tex-archive http://sunsite.sut.ac.jp/pub/archives/ctan/ \ | ||
36 | ftp://dante.ctan.org/tex-archive http://ctan.unsw.edu.au/ \ | ||
37 | ftp://ftp.gnutls.org/gcrypt/gnutls ${GNUPG_MIRROR}/gnutls \ | ||
38 | http://ftp.info-zip.org/pub/infozip/src/ ftp://sunsite.icm.edu.pl/pub/unix/archiving/info-zip/src/ \ | ||
39 | http://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/ http://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/OLD/ \ | ||
40 | ${APACHE_MIRROR} http://www.us.apache.org/dist \ | ||
41 | ${APACHE_MIRROR} http://archive.apache.org/dist \ | ||
42 | http://downloads.sourceforge.net/watchdog/ http://fossies.org/linux/misc/ \ | ||
43 | ${SAVANNAH_GNU_MIRROR} http://download-mirror.savannah.gnu.org/releases \ | ||
44 | ${SAVANNAH_NONGNU_MIRROR} http://download-mirror.savannah.nongnu.org/releases \ | ||
45 | ftp://sourceware.org/pub http://mirrors.kernel.org/sourceware \ | ||
46 | ftp://sourceware.org/pub http://gd.tuwien.ac.at/gnu/sourceware \ | ||
47 | ftp://sourceware.org/pub http://ftp.gwdg.de/pub/linux/sources.redhat.com/sourceware \ | ||
48 | cvs://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \ | ||
49 | svn://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \ | ||
50 | git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \ | ||
51 | gitsm://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \ | ||
52 | hg://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \ | ||
53 | bzr://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \ | ||
54 | p4://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \ | ||
55 | osc://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \ | ||
56 | https?://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \ | ||
57 | ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \ | ||
58 | npm://.*/?.* http://downloads.yoctoproject.org/mirror/sources/ \ | ||
59 | cvs://.*/.* http://sources.openembedded.org/ \ | ||
60 | svn://.*/.* http://sources.openembedded.org/ \ | ||
61 | git://.*/.* http://sources.openembedded.org/ \ | ||
62 | gitsm://.*/.* http://sources.openembedded.org/ \ | ||
63 | hg://.*/.* http://sources.openembedded.org/ \ | ||
64 | bzr://.*/.* http://sources.openembedded.org/ \ | ||
65 | p4://.*/.* http://sources.openembedded.org/ \ | ||
66 | osc://.*/.* http://sources.openembedded.org/ \ | ||
67 | https?://.*/.* http://sources.openembedded.org/ \ | ||
68 | ftp://.*/.* http://sources.openembedded.org/ \ | ||
69 | npm://.*/?.* http://sources.openembedded.org/ \ | ||
70 | ${CPAN_MIRROR} http://cpan.metacpan.org/ \ | ||
71 | ${CPAN_MIRROR} http://search.cpan.org/CPAN/ \ | ||
72 | https?://downloads.yoctoproject.org/releases/uninative/ https://mirrors.kernel.org/yocto/uninative/ \ | ||
73 | https?://downloads.yoctoproject.org/mirror/sources/ https://mirrors.kernel.org/yocto-sources/ \ | ||
74 | " | ||
75 | |||
76 | # Use MIRRORS to provide git repo fallbacks using the https protocol, for cases | ||
77 | # where git native protocol fetches may fail due to local firewall rules, etc. | ||
78 | |||
79 | MIRRORS += "\ | ||
80 | git://salsa.debian.org/.* git://salsa.debian.org/PATH;protocol=https \ | ||
81 | git://git.gnome.org/.* git://gitlab.gnome.org/GNOME/PATH;protocol=https \ | ||
82 | git://.*/.* git://HOST/PATH;protocol=https \ | ||
83 | git://.*/.* git://HOST/git/PATH;protocol=https \ | ||
84 | " | ||
85 | |||
86 | # Switch glibc and binutils recipes to use shallow clones as they're large and this | ||
87 | # improves user experience whilst allowing the flexibility of git urls in the recipes | ||
88 | BB_GIT_SHALLOW:pn-binutils = "1" | ||
89 | BB_GIT_SHALLOW:pn-binutils-cross-${TARGET_ARCH} = "1" | ||
90 | BB_GIT_SHALLOW:pn-binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} = "1" | ||
91 | BB_GIT_SHALLOW:pn-binutils-cross-testsuite = "1" | ||
92 | BB_GIT_SHALLOW:pn-binutils-crosssdk-${SDK_SYS} = "1" | ||
93 | BB_GIT_SHALLOW:pn-glibc = "1" | ||
94 | PREMIRRORS += "git://sourceware.org/git/glibc.git https://downloads.yoctoproject.org/mirror/sources/ \ | ||
95 | git://sourceware.org/git/binutils-gdb.git https://downloads.yoctoproject.org/mirror/sources/" | ||