summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2019-10-21 16:16:16 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-11-04 13:39:04 +0000
commitf6166e64f1074c8f2584bf43f290ed415c49ade6 (patch)
tree3425f1e49e4a7161c145a44281b3101d0d375854
parent2c6f4206405dfdc93a38c081ff2975eb07e0f480 (diff)
downloadpoky-f6166e64f1074c8f2584bf43f290ed415c49ade6.tar.gz
perf: create directories before copying single files
If we need to copy a single file from the linux source tree into the perf source tree, we need to ensure that the directory structure it requires has been created first. (From OE-Core rev: 7c33f0b1ee35031aa97e5e5231f53d8502b583c9) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-kernel/perf/perf.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 0f5df74f11..66d3c1d325 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -153,6 +153,8 @@ python copy_perf_source_from_kernel() {
153 if os.path.isdir(src): 153 if os.path.isdir(src):
154 oe.path.copyhardlinktree(src, dest) 154 oe.path.copyhardlinktree(src, dest)
155 else: 155 else:
156 src_path = os.path.dirname(s)
157 os.makedirs(os.path.join(dest_dir,src_path),exist_ok=True)
156 bb.utils.copyfile(src, dest) 158 bb.utils.copyfile(src, dest)
157} 159}
158 160