mirror of
https://git.yoctoproject.org/poky
synced 2026-09-15 15:49:32 +02:00
bitbake-dev: Save the cooker log into the working directory.
This is necessary since with later refactoring the TMPDIR variable will not be available at this point in time.
This commit is contained in:
@@ -130,17 +130,13 @@ Default BBFILES are the .bb files in the current directory.""" )
|
|||||||
# of the UIs (e.g. for DISPLAY, etc.)
|
# of the UIs (e.g. for DISPLAY, etc.)
|
||||||
bb.utils.clean_environment()
|
bb.utils.clean_environment()
|
||||||
|
|
||||||
cooker.parseConfiguration()
|
cooker.parseCommandLine()
|
||||||
host = cooker.server.host
|
host = cooker.server.host
|
||||||
port = cooker.server.port
|
port = cooker.server.port
|
||||||
|
|
||||||
# Save a logfile for cooker somewhere
|
# Save a logfile for cooker into the current working directory. When the
|
||||||
t = bb.data.getVar('TMPDIR', cooker.configuration.data, True)
|
# server is daemonized this logfile will be truncated.
|
||||||
if not t:
|
cooker_logfile = os.path.join (os.getcwd(), "cooker.log")
|
||||||
bb.msg.fatal(bb.msg.domain.Build, "TMPDIR not set")
|
|
||||||
t = os.path.join(t, "cooker")
|
|
||||||
bb.mkdirhier(t)
|
|
||||||
cooker_logfile = "%s/log.cooker.%s" % (t, str(os.getpid()))
|
|
||||||
|
|
||||||
daemonize.createDaemon(cooker.serve, cooker_logfile)
|
daemonize.createDaemon(cooker.serve, cooker_logfile)
|
||||||
del cooker
|
del cooker
|
||||||
|
|||||||
Reference in New Issue
Block a user