]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
buildman: make output dir configurable
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Thu, 17 Apr 2014 19:13:11 +0000 (21:13 +0200)
committerTom Rini <trini@ti.com>
Fri, 18 Apr 2014 20:14:13 +0000 (16:14 -0400)
Add an option to specify the output directory to override the
default path '../'. This is useful for building in a ramdisk.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
tools/buildman/buildman.py
tools/buildman/control.py

index 8822efefa58b985a1ee4fe3c592308c7ecab4c8f..73a5483d46b4da9178cd974779d17556d921bf10 100755 (executable)
@@ -101,6 +101,9 @@ parser.add_option('-T', '--threads', type='int',
        default=None, help='Number of builder threads to use')
 parser.add_option('-u', '--show_unknown', action='store_true',
        default=False, help='Show boards with unknown build result')
        default=None, help='Number of builder threads to use')
 parser.add_option('-u', '--show_unknown', action='store_true',
        default=False, help='Show boards with unknown build result')
+parser.add_option('-o', '--output-dir', type='string',
+       dest='output_dir', default='..',
+       help='Directory where all builds happen and buildman has its workspace (default is ../)')
 
 parser.usage = """buildman -b <branch> [options]
 
 
 parser.usage = """buildman -b <branch> [options]
 
index 8e6a08f78e27dbb30b7a29213ad5f6008ec2fead..d2f4102ba729c92e8b4c356cd4d3bb76c1688216 100644 (file)
@@ -145,7 +145,7 @@ def DoBuildman(options, args):
         options.step = len(series.commits) - 1
 
     # Create a new builder with the selected options
         options.step = len(series.commits) - 1
 
     # Create a new builder with the selected options
-    output_dir = os.path.join('..', options.branch)
+    output_dir = os.path.join(options.output_dir, options.branch)
     builder = Builder(toolchains, output_dir, options.git_dir,
             options.threads, options.jobs, checkout=True,
             show_unknown=options.show_unknown, step=options.step)
     builder = Builder(toolchains, output_dir, options.git_dir,
             options.threads, options.jobs, checkout=True,
             show_unknown=options.show_unknown, step=options.step)