]> code.ossystems Code Review - openembedded-core.git/commitdiff
lib/oe/sdk: Ensure target directory exists before creating the link
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 Apr 2014 12:59:02 +0000 (12:59 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 Apr 2014 15:33:48 +0000 (16:33 +0100)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/sdk.py

index 564319965d65e8419c1dadfd434f2340ff4f6801..ca349c433c799db2a430ecd3e8678bbad8dc51c5 100644 (file)
@@ -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))