]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
mirrors: Switch llvm to use shallow cloning
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Feb 2024 12:48:26 +0000 (12:48 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 29 Feb 2024 10:25:12 +0000 (10:25 +0000)
The llvm github repo appears to see a lot of churn on branches we're not
interested in and is in general huge and unreliable to clone.

Switch to shallow clones to improve the user experience.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/mirrors.bbclass

index af66fb1832ffa258e8bb38e1cd24639952346bf4..862648eec5f7202dda1b7973c4cbc445c723f15e 100644 (file)
@@ -83,7 +83,7 @@ git://.*/.*                   git://HOST/PATH;protocol=https \
 git://.*/.*                   git://HOST/git/PATH;protocol=https \
 "
 
-# Switch glibc and binutils recipes to use shallow clones as they're large and this
+# Switch llvm, glibc and binutils recipes to use shallow clones as they're large and this
 # improves user experience whilst allowing the flexibility of git urls in the recipes
 BB_GIT_SHALLOW:pn-binutils = "1"
 BB_GIT_SHALLOW:pn-binutils-cross-${TARGET_ARCH} = "1"
@@ -98,3 +98,7 @@ BB_GIT_SHALLOW:pn-glibc = "1"
 BB_GIT_SHALLOW:pn-glibc-tests = "1"
 PREMIRRORS += "git://sourceware.org/git/glibc.git https://downloads.yoctoproject.org/mirror/sources/ \
               git://sourceware.org/git/binutils-gdb.git https://downloads.yoctoproject.org/mirror/sources/"
+
+BB_GIT_SHALLOW:pn-llvm = "1"
+BB_GIT_SHALLOW:pn-llvm-native = "1"
+BB_GIT_SHALLOW:pn-nativesdk-llvm = "1"