summaryrefslogtreecommitdiff
path: root/tools/buildman/cmdline.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-12-01 17:33:55 -0700
committerSimon Glass <sjg@chromium.org>2015-01-14 21:16:52 -0800
commit5971ab5c44cb0c32c88fcdc90a3a9b6430463c4c (patch)
tree503e0311df4db18ff0148152c4e073fc705c9635 /tools/buildman/cmdline.py
parent2a9e2c6a0962cb04a12d833cc5c1c0920fa3b4f5 (diff)
downloadu-boot-imx-5971ab5c44cb0c32c88fcdc90a3a9b6430463c4c.zip
u-boot-imx-5971ab5c44cb0c32c88fcdc90a3a9b6430463c4c.tar.gz
u-boot-imx-5971ab5c44cb0c32c88fcdc90a3a9b6430463c4c.tar.bz2
buildman: Add an option to flatten output directory trees
When building current source for a single board, buildman puts the output in <output_dir>/current/current/<board>. Add an option to make it use <output_dir>/<board> instead. This removes the unnecessary directories in that case, controlled by the --no-subdirs/-N option. Suggested-by: Tom Rini <trini@ti.com> Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/cmdline.py')
-rw-r--r--tools/buildman/cmdline.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/buildman/cmdline.py b/tools/buildman/cmdline.py
index 27d3c70..2b75653 100644
--- a/tools/buildman/cmdline.py
+++ b/tools/buildman/cmdline.py
@@ -55,6 +55,8 @@ def ParseArgs():
help='List available tool chains')
parser.add_option('-n', '--dry-run', action='store_true', dest='dry_run',
default=False, help="Do a dry run (describe actions, but do nothing)")
+ parser.add_option('-N', '--no-subdirs', action='store_true', dest='no_subdirs',
+ default=False, help="Don't create subdirectories when building current source for a single board")
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 ../)')