diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-04-30 12:59:02 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-04-30 16:39:07 +0100 |
commit | 560e0a1f0a6133a72ff1ebb14548d4ad15766ff5 (patch) | |
tree | 37d4c2b1b972f0f7a2605cf7454eb7fad1a7e851 | |
parent | 413ab0ab0603807baae1241b2b81a48a55bafd94 (diff) | |
download | poky-560e0a1f0a6133a72ff1ebb14548d4ad15766ff5.tar.gz |
lib/oe/sdk: Ensure target directory exists before creating the link
(From OE-Core rev: d8096433c27643f39eeb29d34e20328a39981fd6)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oe/sdk.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py index 564319965d..ca349c433c 100644 --- a/meta/lib/oe/sdk.py +++ b/meta/lib/oe/sdk.py | |||
@@ -52,6 +52,7 @@ class Sdk(object): | |||
52 | # Link the ld.so.cache file into the hosts filesystem | 52 | # Link the ld.so.cache file into the hosts filesystem |
53 | link_name = os.path.join(self.sdk_output, self.sdk_native_path, | 53 | link_name = os.path.join(self.sdk_output, self.sdk_native_path, |
54 | self.sysconfdir, "ld.so.cache") | 54 | self.sysconfdir, "ld.so.cache") |
55 | bb.utils.mkdirhier(os.path.dirname(link_name)) | ||
55 | os.symlink("/etc/ld.so.cache", link_name) | 56 | os.symlink("/etc/ld.so.cache", link_name) |
56 | 57 | ||
57 | execute_pre_post_process(self.d, self.d.getVar('SDK_POSTPROCESS_COMMAND', True)) | 58 | execute_pre_post_process(self.d, self.d.getVar('SDK_POSTPROCESS_COMMAND', True)) |