summaryrefslogtreecommitdiffstats
path: root/meta/classes/sstate.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r--meta/classes/sstate.bbclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 92c3a274f0..fb30a18b72 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -154,8 +154,12 @@ def sstate_installpkg(ss, d):
154 sstate_install(ss, d) 154 sstate_install(ss, d)
155 155
156 for plain in ss['plaindirs']: 156 for plain in ss['plaindirs']:
157 bb.mkdirhier(sstateinst + plain) 157 workdir = d.getVar('WORKDIR', True)
158 oe.path.copytree(sstateinst + plain, bb.data.getVar('WORKDIR', d, True) + plain) 158 src = sstateinst + "/" + plain.replace(workdir, '')
159 dest = plain
160 bb.mkdirhier(src)
161 bb.mkdirhier(dest)
162 oe.path.copytree(src, dest)
159 163
160 return True 164 return True
161 165