[oe-commits] Richard Purdie : lib/oe/sdk: Ensure target directory exists before creating the link

git at git.openembedded.org git at git.openembedded.org
Thu May 22 15:46:04 UTC 2014


Module: openembedded-core.git
Branch: daisy
Commit: 03a11d3cecc977b23bdf7b8510bf80dbe408b135
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=03a11d3cecc977b23bdf7b8510bf80dbe408b135

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Wed Apr 30 12:59:02 2014 +0000

lib/oe/sdk: Ensure target directory exists before creating the link

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/lib/oe/sdk.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py
index 5643199..ca349c4 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))



More information about the Openembedded-commits mailing list