mirrors.bbclass 4.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #
  2. # Copyright OpenEmbedded Contributors
  3. #
  4. # SPDX-License-Identifier: MIT
  5. #
  6. MIRRORS += "\
  7. ${DEBIAN_MIRROR} http://snapshot.debian.org/archive/debian/20180310T215105Z/pool \
  8. ${DEBIAN_MIRROR} http://snapshot.debian.org/archive/debian/20250101T023759Z/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. ${GNU_MIRROR} https://mirrors.edge.kernel.org/gnu \
  13. ${KERNELORG_MIRROR} http://www.edge.kernel.org/pub \
  14. ${GNUPG_MIRROR} ftp://ftp.gnupg.org/gcrypt \
  15. ${GNUPG_MIRROR} ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt \
  16. ${GNUPG_MIRROR} ftp://mirrors.dotsrc.org/gcrypt \
  17. ftp://dante.ctan.org/tex-archive ftp://ftp.fu-berlin.de/tex/CTAN \
  18. ftp://dante.ctan.org/tex-archive http://sunsite.sut.ac.jp/pub/archives/ctan/ \
  19. ftp://dante.ctan.org/tex-archive http://ctan.unsw.edu.au/ \
  20. ftp://ftp.gnutls.org/gcrypt/gnutls ${GNUPG_MIRROR}/gnutls \
  21. http://ftp.info-zip.org/pub/infozip/src/ ftp://sunsite.icm.edu.pl/pub/unix/archiving/info-zip/src/ \
  22. 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/ \
  23. ${APACHE_MIRROR} http://www.us.apache.org/dist \
  24. ${APACHE_MIRROR} http://archive.apache.org/dist \
  25. http://downloads.sourceforge.net/watchdog/ http://fossies.org/linux/misc/ \
  26. ${SAVANNAH_GNU_MIRROR} http://download-mirror.savannah.gnu.org/releases \
  27. ${SAVANNAH_NONGNU_MIRROR} http://download-mirror.savannah.nongnu.org/releases \
  28. ftp://sourceware.org/pub http://mirrors.edge.kernel.org/sourceware \
  29. ftp://sourceware.org/pub http://gd.tuwien.ac.at/gnu/sourceware \
  30. ftp://sourceware.org/pub http://ftp.gwdg.de/pub/linux/sources.redhat.com/sourceware \
  31. cvs://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \
  32. svn://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \
  33. git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \
  34. gitsm://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \
  35. hg://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \
  36. bzr://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \
  37. p4://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \
  38. osc://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \
  39. https?://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \
  40. ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \
  41. npm://.*/?.* http://downloads.yoctoproject.org/mirror/sources/ \
  42. cvs://.*/.* http://sources.openembedded.org/ \
  43. svn://.*/.* http://sources.openembedded.org/ \
  44. git://.*/.* http://sources.openembedded.org/ \
  45. gitsm://.*/.* http://sources.openembedded.org/ \
  46. hg://.*/.* http://sources.openembedded.org/ \
  47. bzr://.*/.* http://sources.openembedded.org/ \
  48. p4://.*/.* http://sources.openembedded.org/ \
  49. osc://.*/.* http://sources.openembedded.org/ \
  50. https?://.*/.* http://sources.openembedded.org/ \
  51. ftp://.*/.* http://sources.openembedded.org/ \
  52. npm://.*/?.* http://sources.openembedded.org/ \
  53. ${CPAN_MIRROR} https://cpan.metacpan.org/ \
  54. https?://downloads.yoctoproject.org/releases/uninative/ https://mirrors.edge.kernel.org/yocto/uninative/ \
  55. https?://downloads.yoctoproject.org/mirror/sources/ https://mirrors.edge.kernel.org/yocto-sources/ \
  56. "
  57. # Use MIRRORS to provide git repo fallbacks using the https protocol, for cases
  58. # where git native protocol fetches may fail due to local firewall rules, etc.
  59. MIRRORS += "\
  60. git://salsa.debian.org/.* git://salsa.debian.org/PATH;protocol=https \
  61. git://git.gnome.org/.* git://gitlab.gnome.org/GNOME/PATH;protocol=https \
  62. git://git.infradead.org/.* git://git.infraroot.at/PATH;protocol=https \
  63. git://.*/.* git://HOST/PATH;protocol=https \
  64. git://.*/.* git://HOST/git/PATH;protocol=https \
  65. "
  66. # Switch llvm, glibc and binutils recipes to use shallow clones as they're large and this
  67. # improves user experience whilst allowing the flexibility of git urls in the recipes
  68. BB_GIT_SHALLOW:pn-binutils = "1"
  69. BB_GIT_SHALLOW:pn-binutils-cross-${TARGET_ARCH} = "1"
  70. BB_GIT_SHALLOW:pn-binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} = "1"
  71. BB_GIT_SHALLOW:pn-binutils-testsuite = "1"
  72. BB_GIT_SHALLOW:pn-binutils-crosssdk-${SDK_SYS} = "1"
  73. BB_GIT_SHALLOW:pn-binutils-native = "1"
  74. BB_GIT_SHALLOW:pn-nativesdk-binutils = "1"
  75. BB_GIT_SHALLOW:pn-cross-localedef-native = "1"
  76. BB_GIT_SHALLOW:pn-glibc = "1"
  77. BB_GIT_SHALLOW:pn-glibc-tests = "1"
  78. PREMIRRORS += "git://sourceware.org/git/glibc.git https://downloads.yoctoproject.org/mirror/sources/ \
  79. git://sourceware.org/git/binutils-gdb.git https://downloads.yoctoproject.org/mirror/sources/"
  80. BB_GIT_SHALLOW:pn-llvm = "1"
  81. BB_GIT_SHALLOW:pn-llvm-native = "1"
  82. BB_GIT_SHALLOW:pn-nativesdk-llvm = "1"