From: Daniel Schwierzeck Date: Thu, 17 Apr 2014 19:13:11 +0000 (+0200) Subject: buildman: make output dir configurable X-Git-Tag: v2014.07-rc1~21 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e0ba9299823b985b6b707516e4dc0b331be9e7a2;p=u-boot buildman: make output dir configurable 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 Acked-by: Simon Glass --- diff --git a/tools/buildman/buildman.py b/tools/buildman/buildman.py index 8822efefa5..73a5483d46 100755 --- a/tools/buildman/buildman.py +++ b/tools/buildman/buildman.py @@ -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') +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 [options] diff --git a/tools/buildman/control.py b/tools/buildman/control.py index 8e6a08f78e..d2f4102ba7 100644 --- a/tools/buildman/control.py +++ b/tools/buildman/control.py @@ -145,7 +145,7 @@ def DoBuildman(options, args): 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)