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:48 +0100 |
| commit | aa39d9a2df9006c38756211037d4b58ca0c20b9b (patch) | |
| tree | 59ec74edc7b487d9ca663bc5402c61c950fb6858 | |
| parent | 98ad3cb2c0f5975a0df4cebc06775aaae657700d (diff) | |
| download | poky-aa39d9a2df9006c38756211037d4b58ca0c20b9b.tar.gz | |
lib/oe/sdk: Ensure target directory exists before creating the link
(From OE-Core rev: 03a11d3cecc977b23bdf7b8510bf80dbe408b135)
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)) |
