]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
build.py: Operate logfile handling at the task level
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Feb 2011 22:02:19 +0000 (22:02 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Feb 2011 22:02:19 +0000 (22:02 +0000)
commit90fc09ee050a24095a488d8ce98c7945bf282f6d
treef79d81d5fbf0b063184a79c6c3017c936b11eab9
parent44dcec236f3b15c68c87e3fa3bfa2d265a910917
build.py: Operate logfile handling at the task level

Previously, not all task output could end up in the logfile and
sub functions run using exec_func() calls would end up logging to
/dev/null. This is extrememly confusing for users who want to find
the output from a given task as there are several possible log files,
or it might not be there at all.

This patch changes exec_task() to redirect standard output/error
to the logfile along with any python logging output. This change is
applied for all python/shell tasks so it doesn't matter whether output
comes from os.system() calls or wherever, the logs are always correct.

This also removed the ton of log files previous code could generate
in ${T}, again making this simpler for users.

Based upon patches from Poky.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/build.py