]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
gcc/clang: set S to be in UNPACKDIR
authorAlexander Kanavin <alex@linutronix.de>
Mon, 16 Jun 2025 09:49:54 +0000 (11:49 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Jun 2025 11:05:52 +0000 (12:05 +0100)
This and some further commits allows removing the 'backwards
compatibility magic' in do_unpack that moves unpacked sources
to where S is set to.

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>
meta/recipes-devtools/clang/common.inc
meta/recipes-devtools/gcc/gcc-15.1.inc
meta/recipes-devtools/gcc/gcc-common.inc
meta/recipes-devtools/gcc/gcc-shared-source.inc

index 5244298dfb1179b1cfaf0815c5a7f682d2be09c5..0684e648ccc9aff2f3f9579ee3c25fcd8ba2c459 100644 (file)
@@ -63,7 +63,8 @@ SRC_URI = "\
 # Fallback to no-PIE if not set
 GCCPIE ??= ""
 
-S = "${TMPDIR}/work-shared/llvm-project-source-${PV}-${PR}/${SOURCEDIR}"
+UNPACKDIR = "${TMPDIR}/work-shared/llvm-project-source-${PV}-${PR}/sources"
+S = "${UNPACKDIR}/${SOURCEDIR}"
 B ?= "${WORKDIR}/llvm-project-source-${PV}/build.${HOST_SYS}.${TARGET_SYS}"
 
 # We need to ensure that for the shared work directory, the do_patch signatures match
index 18f8cae5ca264de1c5646e67775f46768235cbb7..af29db8e5b8b7f99371be01f5f64275e685c3ebd 100644 (file)
@@ -75,7 +75,8 @@ SRC_URI = "${BASEURI} \
            file://0026-fix-incorrect-preprocessor-line-numbers.patch \
 "
 
-S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/${SOURCEDIR}"
+UNPACKDIR = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/sources"
+S = "${UNPACKDIR}/${SOURCEDIR}"
 B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}"
 
 # Language Overrides
index de559eb9c3fcaf310f66605448832854d06317e2..8d95698743b99fc10b918308f64b4030f05f1248 100644 (file)
@@ -104,7 +104,8 @@ MIRRORS =+ "\
 gcclibdir = "${libdir}/gcc"
 BINV = "${PV}"
 #S = "${WORKDIR}/gcc-${PV}"
-S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${PV}"
+UNPACKDIR = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/sources"
+S = "${UNPACKDIR}/gcc-${PV}"
 
 B ?= "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}"
 
index 03f520b0933dc2bc20b3c3b4a17e1f1d2e85a9fb..c01410b47ad77a59ae59b53783780a03e71fb2e5 100644 (file)
@@ -16,6 +16,6 @@ do_deploy_source_date_epoch () {
        sde_file=${SDE_FILE}
        sde_file=${sde_file#${WORKDIR}/}
        mkdir -p ${SDE_DEPLOYDIR} $(dirname ${SDE_FILE})
-       cp -p $(dirname ${S})/$sde_file ${SDE_DEPLOYDIR}
-       cp -p $(dirname ${S})/$sde_file ${SDE_FILE}
+       cp -p $(dirname ${UNPACKDIR})/$sde_file ${SDE_DEPLOYDIR}
+       cp -p $(dirname ${UNPACKDIR})/$sde_file ${SDE_FILE}
 }