diff options
author | Alexander Kanavin <alex@linutronix.de> | 2025-06-16 11:49:54 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-06-20 12:07:26 +0100 |
commit | 910442fedcbde1c8e26aa5416db7a97448d77bb3 (patch) | |
tree | c56e31018c8702711d9624b593c2a1e58a3f570b | |
parent | fc0f1b61c686eb236fc78642a62506ff850c382b (diff) | |
download | poky-910442fedcbde1c8e26aa5416db7a97448d77bb3.tar.gz |
gcc/clang: set S to be in UNPACKDIR
This and some further commits allows removing the 'backwards
compatibility magic' in do_unpack that moves unpacked sources
to where S is set to.
(From OE-Core rev: 6b2f14cd2d110113f1065bdc818ec4e9dbd4b054)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/clang/common.inc | 3 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-15.1.inc | 3 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-common.inc | 3 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-shared-source.inc | 4 |
4 files changed, 8 insertions, 5 deletions
diff --git a/meta/recipes-devtools/clang/common.inc b/meta/recipes-devtools/clang/common.inc index 5244298dfb..0684e648cc 100644 --- a/meta/recipes-devtools/clang/common.inc +++ b/meta/recipes-devtools/clang/common.inc | |||
@@ -63,7 +63,8 @@ SRC_URI = "\ | |||
63 | # Fallback to no-PIE if not set | 63 | # Fallback to no-PIE if not set |
64 | GCCPIE ??= "" | 64 | GCCPIE ??= "" |
65 | 65 | ||
66 | S = "${TMPDIR}/work-shared/llvm-project-source-${PV}-${PR}/${SOURCEDIR}" | 66 | UNPACKDIR = "${TMPDIR}/work-shared/llvm-project-source-${PV}-${PR}/sources" |
67 | S = "${UNPACKDIR}/${SOURCEDIR}" | ||
67 | B ?= "${WORKDIR}/llvm-project-source-${PV}/build.${HOST_SYS}.${TARGET_SYS}" | 68 | B ?= "${WORKDIR}/llvm-project-source-${PV}/build.${HOST_SYS}.${TARGET_SYS}" |
68 | 69 | ||
69 | # We need to ensure that for the shared work directory, the do_patch signatures match | 70 | # We need to ensure that for the shared work directory, the do_patch signatures match |
diff --git a/meta/recipes-devtools/gcc/gcc-15.1.inc b/meta/recipes-devtools/gcc/gcc-15.1.inc index 18f8cae5ca..af29db8e5b 100644 --- a/meta/recipes-devtools/gcc/gcc-15.1.inc +++ b/meta/recipes-devtools/gcc/gcc-15.1.inc | |||
@@ -75,7 +75,8 @@ SRC_URI = "${BASEURI} \ | |||
75 | file://0026-fix-incorrect-preprocessor-line-numbers.patch \ | 75 | file://0026-fix-incorrect-preprocessor-line-numbers.patch \ |
76 | " | 76 | " |
77 | 77 | ||
78 | S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/${SOURCEDIR}" | 78 | UNPACKDIR = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/sources" |
79 | S = "${UNPACKDIR}/${SOURCEDIR}" | ||
79 | B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}" | 80 | B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}" |
80 | 81 | ||
81 | # Language Overrides | 82 | # Language Overrides |
diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc index de559eb9c3..8d95698743 100644 --- a/meta/recipes-devtools/gcc/gcc-common.inc +++ b/meta/recipes-devtools/gcc/gcc-common.inc | |||
@@ -104,7 +104,8 @@ MIRRORS =+ "\ | |||
104 | gcclibdir = "${libdir}/gcc" | 104 | gcclibdir = "${libdir}/gcc" |
105 | BINV = "${PV}" | 105 | BINV = "${PV}" |
106 | #S = "${WORKDIR}/gcc-${PV}" | 106 | #S = "${WORKDIR}/gcc-${PV}" |
107 | S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${PV}" | 107 | UNPACKDIR = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/sources" |
108 | S = "${UNPACKDIR}/gcc-${PV}" | ||
108 | 109 | ||
109 | B ?= "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}" | 110 | B ?= "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}" |
110 | 111 | ||
diff --git a/meta/recipes-devtools/gcc/gcc-shared-source.inc b/meta/recipes-devtools/gcc/gcc-shared-source.inc index 03f520b093..c01410b47a 100644 --- a/meta/recipes-devtools/gcc/gcc-shared-source.inc +++ b/meta/recipes-devtools/gcc/gcc-shared-source.inc | |||
@@ -16,6 +16,6 @@ do_deploy_source_date_epoch () { | |||
16 | sde_file=${SDE_FILE} | 16 | sde_file=${SDE_FILE} |
17 | sde_file=${sde_file#${WORKDIR}/} | 17 | sde_file=${sde_file#${WORKDIR}/} |
18 | mkdir -p ${SDE_DEPLOYDIR} $(dirname ${SDE_FILE}) | 18 | mkdir -p ${SDE_DEPLOYDIR} $(dirname ${SDE_FILE}) |
19 | cp -p $(dirname ${S})/$sde_file ${SDE_DEPLOYDIR} | 19 | cp -p $(dirname ${UNPACKDIR})/$sde_file ${SDE_DEPLOYDIR} |
20 | cp -p $(dirname ${S})/$sde_file ${SDE_FILE} | 20 | cp -p $(dirname ${UNPACKDIR})/$sde_file ${SDE_FILE} |
21 | } | 21 | } |