[oe-commits] [openembedded-core] 09/37: perf: create directories before copying single files

git at git.openembedded.org git at git.openembedded.org
Mon Nov 4 13:40:04 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 7c33f0b1ee35031aa97e5e5231f53d8502b583c9
Author: Bruce Ashfield <bruce.ashfield at gmail.com>
AuthorDate: Mon Oct 21 16:16:16 2019 -0400

    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.
    
    Signed-off-by: Bruce Ashfield <bruce.ashfield at gmail.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/recipes-kernel/perf/perf.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 0f5df74..66d3c1d 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() {
         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)
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list