]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
externalsrc.bbclass: Remove a trailing slash from ${B}
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Fri, 21 Oct 2022 23:04:03 +0000 (01:04 +0200)
committerSteve Sakoman <steve@sakoman.com>
Fri, 11 Nov 2022 14:24:18 +0000 (04:24 -1000)
The trailing slash in ${B} caused -fdebug-prefix-map=${B}=... to not
match as intended, resulting in ${TMPDIR} ending up in files in
${PN}-dbg when externalsrc was in use, which in turn triggered buildpath
QA warnings.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 9b5031ed5a0d102905fa75acc418246c23df6eef)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/externalsrc.bbclass

index fc20eedf4d5915b5d95d719fd5fe20293be6b3e9..3f7f533cc6d3e7283a0262a087acb63c5c42b492 100644 (file)
@@ -60,7 +60,7 @@ python () {
         if externalsrcbuild:
             d.setVar('B', externalsrcbuild)
         else:
-            d.setVar('B', '${WORKDIR}/${BPN}-${PV}/')
+            d.setVar('B', '${WORKDIR}/${BPN}-${PV}')
 
         local_srcuri = []
         fetch = bb.fetch2.Fetch((d.getVar('SRC_URI') or '').split(), d)