pass __debug to manifest

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-09-27 16:20:46 +02:00
parent 272b8722c1
commit a165585699
2 changed files with 8 additions and 2 deletions

View file

@ -149,6 +149,9 @@ class Config:
env['__target_host'] = self.target_host
env['__global'] = self.path.out_dir
# Submit debug flag to manifest, can be used by emulator and types
env['__debug'] = "yes"
# Required for recording source
env['__cdist_manifest'] = manifest

View file

@ -36,6 +36,9 @@ def run(argv):
global_dir = os.environ['__global']
object_source = os.environ['__cdist_manifest']
if '__debug' in os.environ:
logging.root.setLevel(logging.DEBUG)
parser = argparse.ArgumentParser(add_help=False)
# Setup optional parameters
@ -134,7 +137,7 @@ def run(argv):
source_fd.writelines(object_source)
source_fd.close()
print("Finished " + type + "/" + object_id + repr(params))
log.debug("Finished " + type + "/" + object_id + repr(params))
def link(exec_path, bin_dir, type_list):