瀏覽代碼

package: change location of debugsources to PKGDESTWORK

Storing file generated doing packaging in WORKDIR,
doesn't get cached in sstate and task depending on them fail
to find them.

Store it instead in pkgdata/debugsources.

(From OE-Core rev: 18e703e66511b87d2079c5d1b38b7c95914bc5bc)

Signed-off-by: Daniel Turull <daniel.turull@ericsson.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Daniel Turull 2 周之前
父節點
當前提交
2ec0226be2
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      meta/lib/oe/package.py

+ 4 - 1
meta/lib/oe/package.py

@@ -972,7 +972,10 @@ def copydebugsources(debugsrcdir, sources, d):
     cpath = oe.cachedpath.CachedPath()
 
     if debugsrcdir and sources:
-        sourcefile = d.expand("${WORKDIR}/debugsources.list")
+        sourcefile = d.expand("${PKGDESTWORK}/debugsources/${PN}-debugsources.list")
+        debugdir = os.path.dirname(sourcefile)
+        if not os.path.isdir(debugdir):
+            bb.utils.mkdirhier(debugdir)
         bb.utils.remove(sourcefile)
 
         # filenames are null-separated - this is an artefact of the previous use