diff options
author | Etienne Cordonnier <ecordonnier@snap.com> | 2024-05-03 17:47:46 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-05-07 17:45:27 -0700 |
commit | e7dceb1c92caf7f21ef1d7b49c85328c30cffd90 (patch) | |
tree | cf7105c06abea4860a09bdaa15606200130b8b6a | |
parent | ad26539222d8d6e07cd0bcda196c9cf3433430ae (diff) | |
download | meta-clang-e7dceb1c92caf7f21ef1d7b49c85328c30cffd90.tar.gz |
clang: use release tarball instead of git
For clang 18.1.5, the llvm-project-source repository is about 3GB big, whereas
the source tarball is 126MB big. Using the source tarball instead of the git
repository speeds up the fetch step significantly.
Also, the git repository is getting so big that depending on the network setup,
it is necessary to change git http.postBuffer options in order to avoid errors
such as "fetch-pack: unexpected disconnect while reading sideband packet".
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
-rw-r--r-- | recipes-devtools/clang/clang.inc | 4 | ||||
-rw-r--r-- | recipes-devtools/clang/common.inc | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/recipes-devtools/clang/clang.inc b/recipes-devtools/clang/clang.inc index 7918626..fee08b4 100644 --- a/recipes-devtools/clang/clang.inc +++ b/recipes-devtools/clang/clang.inc | |||
@@ -1,8 +1,7 @@ | |||
1 | LLVM_RELEASE = "" | 1 | LLVM_RELEASE = "" |
2 | LLVM_DIR = "llvm${LLVM_RELEASE}" | 2 | LLVM_DIR = "llvm${LLVM_RELEASE}" |
3 | 3 | ||
4 | LLVM_GIT ?= "git://github.com/llvm" | 4 | LLVM_HTTP ?= "https://github.com/llvm" |
5 | LLVM_GIT_PROTOCOL ?= "https" | ||
6 | 5 | ||
7 | MAJOR_VER = "18" | 6 | MAJOR_VER = "18" |
8 | MINOR_VER = "1" | 7 | MINOR_VER = "1" |
@@ -12,7 +11,6 @@ VER_SUFFIX = "" | |||
12 | SRCREV ?= "617a15a9eac96088ae5e9134248d8236e34b91b1" | 11 | SRCREV ?= "617a15a9eac96088ae5e9134248d8236e34b91b1" |
13 | 12 | ||
14 | PV = "${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}${VER_SUFFIX}" | 13 | PV = "${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}${VER_SUFFIX}" |
15 | BRANCH = "release/18.x" | ||
16 | 14 | ||
17 | LLVMMD5SUM = "8a15a0759ef07f2682d2ba4b893c9afe" | 15 | LLVMMD5SUM = "8a15a0759ef07f2682d2ba4b893c9afe" |
18 | CLANGMD5SUM = "ff42885ed2ab98f1ecb8c1fc41205343" | 16 | CLANGMD5SUM = "ff42885ed2ab98f1ecb8c1fc41205343" |
diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc index a8a9929..db3ae0a 100644 --- a/recipes-devtools/clang/common.inc +++ b/recipes-devtools/clang/common.inc | |||
@@ -5,7 +5,9 @@ LIC_FILES_CHKSUM = "file://llvm/LICENSE.TXT;md5=${LLVMMD5SUM} \ | |||
5 | " | 5 | " |
6 | LICENSE = "Apache-2.0-with-LLVM-exception" | 6 | LICENSE = "Apache-2.0-with-LLVM-exception" |
7 | 7 | ||
8 | BASEURI ??= "${LLVM_GIT}/llvm-project.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH}" | 8 | BASEURI = "${LLVM_HTTP}/llvm-project/releases/download/llvmorg-${PV}/llvm-project-${PV}.src.tar.xz" |
9 | SRC_URI[sha256sum] = "3591a52761a7d390ede51af01ea73abfecc4b1d16445f9d019b67a57edd7de56" | ||
10 | |||
9 | SRC_URI = "\ | 11 | SRC_URI = "\ |
10 | ${BASEURI} \ | 12 | ${BASEURI} \ |
11 | file://llvm-config \ | 13 | file://llvm-config \ |
@@ -48,7 +50,7 @@ SRC_URI = "\ | |||
48 | # Fallback to no-PIE if not set | 50 | # Fallback to no-PIE if not set |
49 | GCCPIE ??= "" | 51 | GCCPIE ??= "" |
50 | 52 | ||
51 | S = "${TMPDIR}/work-shared/llvm-project-source-${PV}-${PR}/git" | 53 | S = "${TMPDIR}/work-shared/llvm-project-source-${PV}-${PR}/llvm-project-${PV}.src" |
52 | B = "${WORKDIR}/llvm-project-source-${PV}/build.${HOST_SYS}.${TARGET_SYS}" | 54 | B = "${WORKDIR}/llvm-project-source-${PV}/build.${HOST_SYS}.${TARGET_SYS}" |
53 | 55 | ||
54 | # We need to ensure that for the shared work directory, the do_patch signatures match | 56 | # We need to ensure that for the shared work directory, the do_patch signatures match |