]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake/build.py: Set BB_FILENAME to represent the .bb file being built (including...
authorRichard Purdie <rpurdie@linux.intel.com>
Mon, 13 Sep 2010 14:39:07 +0000 (15:39 +0100)
committerChris Larson <chris_larson@mentor.com>
Fri, 3 Dec 2010 19:24:46 +0000 (12:24 -0700)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
lib/bb/build.py
lib/bb/runqueue.py

index bd3da5035d5a19ae655ec4fae0c2fd02692b4a7f..2e7d75bc3341a11bbd0188377195f57ade43b072 100644 (file)
@@ -278,7 +278,7 @@ def exec_func_shell(func, d, runfile, logfile, flags):
     raise FuncFailed(func, logfile)
 
 
-def exec_task(task, d):
+def exec_task(fn, task, d):
     """Execute an BB 'task'
 
        The primary difference between executing a task versus executing
@@ -296,6 +296,7 @@ def exec_task(task, d):
         data.setVar('OVERRIDES', 'task-%s:%s' % (task[3:], old_overrides), localdata)
         data.update_data(localdata)
         data.expandKeys(localdata)
+        data.setVar('BB_FILENAME', fn, d)
         data.setVar('BB_CURRENTTASK', task[3:], d)
         event.fire(TaskStarted(task, localdata), localdata)
         exec_func(task, localdata)
index cd3c25e4fece9c6e552633e6938cc216d672186f..01e067d5befdde4028b2f591e066f713027c3208 100644 (file)
@@ -1113,7 +1113,7 @@ class RunQueue:
             bb.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY2", fn, self.cooker.configuration.data)
             try:
                 the_data = bb.cache.Cache.loadDataFull(fn, self.cooker.get_file_appends(fn), self.cooker.configuration.data)
-                bb.build.exec_task(taskname, the_data)
+                bb.build.exec_task(fn, taskname, the_data)
             except Exception as exc:
                 logger.critical(str(exc))
                 os._exit(1)