summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/sstate.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index be5f19b33e..0abebce699 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -362,7 +362,10 @@ def sstate_installpkgdir(ss, d):
362 362
363 for plain in ss['plaindirs']: 363 for plain in ss['plaindirs']:
364 workdir = d.getVar('WORKDIR') 364 workdir = d.getVar('WORKDIR')
365 sharedworkdir = os.path.join(d.getVar('TMPDIR', True), "work-shared")
365 src = sstateinst + "/" + plain.replace(workdir, '') 366 src = sstateinst + "/" + plain.replace(workdir, '')
367 if sharedworkdir in plain:
368 src = sstateinst + "/" + plain.replace(sharedworkdir, '')
366 dest = plain 369 dest = plain
367 bb.utils.mkdirhier(src) 370 bb.utils.mkdirhier(src)
368 prepdir(dest) 371 prepdir(dest)
@@ -620,8 +623,11 @@ def sstate_package(ss, d):
620 os.rename(state[1], sstatebuild + state[0]) 623 os.rename(state[1], sstatebuild + state[0])
621 624
622 workdir = d.getVar('WORKDIR') 625 workdir = d.getVar('WORKDIR')
626 sharedworkdir = os.path.join(d.getVar('TMPDIR', True), "work-shared")
623 for plain in ss['plaindirs']: 627 for plain in ss['plaindirs']:
624 pdir = plain.replace(workdir, sstatebuild) 628 pdir = plain.replace(workdir, sstatebuild)
629 if sharedworkdir in plain:
630 pdir = plain.replace(sharedworkdir, sstatebuild)
625 bb.utils.mkdirhier(plain) 631 bb.utils.mkdirhier(plain)
626 bb.utils.mkdirhier(pdir) 632 bb.utils.mkdirhier(pdir)
627 os.rename(plain, pdir) 633 os.rename(plain, pdir)