소스 검색

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