summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-23 18:44:34 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-30 16:43:43 +0000
commit340a680de2c4ba3e0b98a34fc86c856ee5553f6f (patch)
tree721d4b2c2689c8f17c120dd387e3cd252997df38 /meta
parent3048bd79b306f7af4b202bf6332e6e53b49b1694 (diff)
downloadpoky-340a680de2c4ba3e0b98a34fc86c856ee5553f6f.tar.gz
sstate: No need to spew out a debug message per file, summarise instead
(From OE-Core rev: c7b02c6e80819e30a0818282ab8d960243a2d0e8) (From OE-Core rev: 6df929c8b58daa19423e5994bbf8bb68c912707f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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)