mirror of
https://git.yoctoproject.org/poky
synced 2026-06-05 02:20:12 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
2c6f420640
commit
f6166e64f1
@@ -153,6 +153,8 @@ python copy_perf_source_from_kernel() {
|
||||
if os.path.isdir(src):
|
||||
oe.path.copyhardlinktree(src, dest)
|
||||
else:
|
||||
src_path = os.path.dirname(s)
|
||||
os.makedirs(os.path.join(dest_dir,src_path),exist_ok=True)
|
||||
bb.utils.copyfile(src, dest)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user