diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-04-30 12:59:02 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-22 16:31:38 +0100 |
commit | 03a11d3cecc977b23bdf7b8510bf80dbe408b135 (patch) | |
tree | 8360d7e5e417db854147b2d27bdd57fcb7157f6e /meta/lib | |
parent | 82bd5fc58229df73d7aca93f41b13392f9fdc3dc (diff) | |
download | openembedded-core-contrib-03a11d3cecc977b23bdf7b8510bf80dbe408b135.tar.gz |
lib/oe/sdk: Ensure target directory exists before creating the link
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-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): # 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)) |