diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-04-10 22:05:02 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 15:41:33 +0100 |
commit | bcd9c57a96c04c27883746feb0e75211f8de6d32 (patch) | |
tree | e393bbf7e0336f1098cc9228fd61aee2b3febd88 /bitbake/lib/bb/build.py | |
parent | c770c62fdcf35e76ed03361de901964bbe68433a (diff) | |
download | poky-bcd9c57a96c04c27883746feb0e75211f8de6d32.tar.gz |
Switch some references to moved functions
(Bitbake rev: ddea2978cb969cf1381cfee5c055de0c9e56a4e3)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/build.py')
-rw-r--r-- | bitbake/lib/bb/build.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 1882733a5f..3d71013998 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | from bb import data, event, mkdirhier, utils | 28 | from bb import data, event, mkdirhier, utils |
29 | import bb, os, sys | 29 | import bb, os, sys |
30 | import bb.utils | ||
30 | 31 | ||
31 | # When we execute a python function we'd like certain things | 32 | # When we execute a python function we'd like certain things |
32 | # in all namespaces, hence we add them to __builtins__ | 33 | # in all namespaces, hence we add them to __builtins__ |
@@ -107,7 +108,7 @@ def exec_func(func, d, dirs = None): | |||
107 | else: | 108 | else: |
108 | dirs = (data.expand(flags['dirs'], d) or "").split() | 109 | dirs = (data.expand(flags['dirs'], d) or "").split() |
109 | for adir in dirs: | 110 | for adir in dirs: |
110 | mkdirhier(adir) | 111 | bb.utils.mkdirhier(adir) |
111 | 112 | ||
112 | if len(dirs) > 0: | 113 | if len(dirs) > 0: |
113 | adir = dirs[-1] | 114 | adir = dirs[-1] |
@@ -124,7 +125,7 @@ def exec_func(func, d, dirs = None): | |||
124 | t = data.getVar('T', d, 1) | 125 | t = data.getVar('T', d, 1) |
125 | if not t: | 126 | if not t: |
126 | bb.msg.fatal(bb.msg.domain.Build, "T not set") | 127 | bb.msg.fatal(bb.msg.domain.Build, "T not set") |
127 | mkdirhier(t) | 128 | bb.utils.mkdirhier(t) |
128 | logfile = "%s/log.%s.%s" % (t, func, str(os.getpid())) | 129 | logfile = "%s/log.%s.%s" % (t, func, str(os.getpid())) |
129 | runfile = "%s/run.%s.%s" % (t, func, str(os.getpid())) | 130 | runfile = "%s/run.%s.%s" % (t, func, str(os.getpid())) |
130 | 131 | ||
@@ -320,7 +321,7 @@ def stamp_internal(task, d, file_name): | |||
320 | if not stamp: | 321 | if not stamp: |
321 | return | 322 | return |
322 | stamp = "%s.%s" % (stamp, task) | 323 | stamp = "%s.%s" % (stamp, task) |
323 | mkdirhier(os.path.dirname(stamp)) | 324 | bb.utils.mkdirhier(os.path.dirname(stamp)) |
324 | # Remove the file and recreate to force timestamp | 325 | # Remove the file and recreate to force timestamp |
325 | # change on broken NFS filesystems | 326 | # change on broken NFS filesystems |
326 | if os.access(stamp, os.F_OK): | 327 | if os.access(stamp, os.F_OK): |