summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-30 12:59:02 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-30 16:33:48 +0100
commitd8096433c27643f39eeb29d34e20328a39981fd6 (patch)
tree5ac91eedcb4a96ccbf69ae448ce08f384183c739 /meta
parent8a733097bddcf0868fb5f8ca08ea59b2cbc4a3a9 (diff)
downloadopenembedded-core-d8096433c27643f39eeb29d34e20328a39981fd6.tar.gz
openembedded-core-d8096433c27643f39eeb29d34e20328a39981fd6.tar.bz2
openembedded-core-d8096433c27643f39eeb29d34e20328a39981fd6.zip
lib/oe/sdk: Ensure target directory exists before creating the link
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oe/sdk.py1
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):
# Link the ld.so.cache file into the hosts filesystem
link_name = os.path.join(self.sdk_output, self.sdk_native_path,
self.sysconfdir, "ld.so.cache")
+ bb.utils.mkdirhier(os.path.dirname(link_name))
os.symlink("/etc/ld.so.cache", link_name)
execute_pre_post_process(self.d, self.d.getVar('SDK_POSTPROCESS_COMMAND', True))