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.bbclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 7e688a8840..6abf55bb14 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -114,15 +114,16 @@ def sstate_install(ss, d):
114 for state in ss['dirs']: 114 for state in ss['dirs']:
115 oe.path.copytree(state[1], state[2]) 115 oe.path.copytree(state[1], state[2])
116 for walkroot, dirs, files in os.walk(state[1]): 116 for walkroot, dirs, files in os.walk(state[1]):
117 bb.debug(2, "Staging files from %s to %s" % (state[1], state[2]))
117 for file in files: 118 for file in files:
118 srcpath = os.path.join(walkroot, file) 119 srcpath = os.path.join(walkroot, file)
119 dstpath = srcpath.replace(state[1], state[2]) 120 dstpath = srcpath.replace(state[1], state[2])
120 bb.debug(2, "Staging %s to %s" % (srcpath, dstpath)) 121 #bb.debug(2, "Staging %s to %s" % (srcpath, dstpath))
121 sharedfiles.append(dstpath) 122 sharedfiles.append(dstpath)
122 for dir in dirs: 123 for dir in dirs:
123 srcdir = os.path.join(walkroot, dir) 124 srcdir = os.path.join(walkroot, dir)
124 dstdir = srcdir.replace(state[1], state[2]) 125 dstdir = srcdir.replace(state[1], state[2])
125 bb.debug(2, "Staging %s to %s" % (srcdir, dstdir)) 126 #bb.debug(2, "Staging %s to %s" % (srcdir, dstdir))
126 if not dstdir.endswith("/"): 127 if not dstdir.endswith("/"):
127 dstdir = dstdir + "/" 128 dstdir = dstdir + "/"
128 shareddirs.append(dstdir) 129 shareddirs.append(dstdir)
@@ -360,12 +361,12 @@ def sstate_package(ss, d):
360 for file in files: 361 for file in files:
361 srcpath = os.path.join(walkroot, file) 362 srcpath = os.path.join(walkroot, file)
362 dstpath = srcpath.replace(state[1], sstatebuild + state[0]) 363 dstpath = srcpath.replace(state[1], sstatebuild + state[0])
363 bb.debug(2, "Preparing %s for packaging at %s" % (srcpath, dstpath))
364 make_relative_symlink(srcpath, dstpath, d) 364 make_relative_symlink(srcpath, dstpath, d)
365 for dir in dirs: 365 for dir in dirs:
366 srcpath = os.path.join(walkroot, dir) 366 srcpath = os.path.join(walkroot, dir)
367 dstpath = srcpath.replace(state[1], sstatebuild + state[0]) 367 dstpath = srcpath.replace(state[1], sstatebuild + state[0])
368 make_relative_symlink(srcpath, dstpath, d) 368 make_relative_symlink(srcpath, dstpath, d)
369 bb.debug(2, "Preparing tree %s for packaging at %s" % (state[1], sstatebuild + state[0]))
369 oe.path.copytree(state[1], sstatebuild + state[0]) 370 oe.path.copytree(state[1], sstatebuild + state[0])
370 371
371 workdir = bb.data.getVar('WORKDIR', d, True) 372 workdir = bb.data.getVar('WORKDIR', d, True)