buildman: make output dir configurable
PATCH 1/1 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.
--- tools/buildman/buildman.py | 2 ++ tools/buildman/control.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)
tools/buildman/buildman.py +2 -0
@@ -101,6 +101,8 @@ 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='Output directory') parser.usage = """buildman -b <branch> [options]
tools/buildman/control.py +1 -1
@@ -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)
Signature · 1 line
1.8.3.2
PATCH 1/1 buildman: make output dir configurable
Hi Daniel,
Quoted 15 lines · Daniel Schwierzeck
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 <[email protected]>Cc Simon Glass <[email protected]>--- tools/buildman/buildman.py | 2 ++ tools/buildman/control.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)tools/buildman/buildman.py +0
-0
tools/buildman/buildman.py parser.add_option('-T', '--threads', type='int', · line 106
Quoted 6 lines
tools/buildman/buildman.py +2
-0@@ -101,6 +101,8 @@ 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='Output directory')
Can you expand the help here a bit? This is the directory where all the builds happen, with a separate sub-directory for each commit. It also holds the working directory (.bm-work). So maybe 'Build output directory, also used for working space' ?
Quoted 17 lines
tools/buildman/buildman.py +0
-0parser.usage = """buildman -b <branch> [options]tools/buildman/control.py +1
-2@@ -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) --
Quoted 3 lines
1.8.3.2
Regards,
Simon
PATCH 1/1 buildman: make output dir configurable
2014-04-08 21:35 GMT+02:00 Simon Glass <[email protected]>:
Quoted 15 lines
Hi Daniel,
Quoted 11 lines · Daniel Schwierzeck
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 <[email protected]>Cc Simon Glass <[email protected]>--- tools/buildman/buildman.py | 2 ++ tools/buildman/control.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)
Quoted 17 lines
tools/buildman/buildman.py parser.add_option('-T', '--threads', type='int', · line 105
Quoted 10 lines
tools/buildman/buildman.py +2
-0@@ -101,6 +101,8 @@ 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='Output directory')Can you expand the help here a bit? This is the directory where all the builds happen, with a separate sub-directory for each commit. It also holds the working directory (.bm-work). So maybe 'Build output directory, also used for working space' ?
sure. How about that?
-o OUTPUT_DIR, --output-dir=OUTPUT_DIR
Directory where all builds happen and buildman has its workspace (default is ../)
Signature · 1 line
- Daniel
PATCH 1/1 buildman: make output dir configurable
Hi Daniel,
Quoted 36 lines · Daniel Schwierzeck
2014-04-08 21:35 GMT+02:00 Simon Glass <[email protected]>:
Quoted 16 lines
Hi Daniel,
On 28 March 2014 14:46, Daniel Schwierzeck <[email protected]
Quoted 11 lines · wrote:
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 <[email protected]>Cc Simon Glass <[email protected]>--- tools/buildman/buildman.py | 2 ++ tools/buildman/control.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)Quoted 14 lines
tools/buildman/buildman.py parser.add_option('-T', '--threads', type='int', · line 105
Quoted 10 lines
tools/buildman/buildman.py +2
-0@@ -101,6 +101,8 @@ 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='Output directory')Can you expand the help here a bit? This is the directory where all the builds happen, with a separate sub-directory for each commit. It also
holds
Quoted 3 lines
the working directory (.bm-work). So maybe 'Build output directory, also used for working space' ?
Quoted 7 lines
sure. How about that?
-o
OUTPUT_DIR, --output-dir=OUTPUT_DIR
Directory where all builds happen and buildman has
its
workspace (default is ../)
SGTM
- Simon
PATCH v2 1/1 buildman: make output dir configurable
In reply to Daniel SchwierzeckAdd an option to specify the output directory to override the default path '../'. This is useful for building in a ramdisk.
---
Changes for v2:
- improved help message
--- tools/buildman/buildman.py | 3 +++ tools/buildman/control.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-)
tools/buildman/buildman.py +3 -0
@@ -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 <branch> [options]
tools/buildman/control.py +1 -1
@@ -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)
Signature · 1 line
1.8.3.2
PATCH v2 1/1 buildman: make output dir configurable
Quoted 5 lines · Daniel Schwierzeck
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 <[email protected]>Cc Simon Glass <[email protected]>
Thanks.
PATCH v2 1/1 buildman: make output dir configurable
In reply to Daniel SchwierzeckQuoted 6 lines · Daniel Schwierzeck
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 <[email protected]>Cc Simon Glass <[email protected]>Acked-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140418/4a85dc75/attachment.pgp>