From 5971ab5c44cb0c32c88fcdc90a3a9b6430463c4c Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Mon, 1 Dec 2014 17:33:55 -0700 Subject: buildman: Add an option to flatten output directory trees When building current source for a single board, buildman puts the output in /current/current/. Add an option to make it use / instead. This removes the unnecessary directories in that case, controlled by the --no-subdirs/-N option. Suggested-by: Tom Rini Signed-off-by: Simon Glass --- tools/buildman/cmdline.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/buildman/cmdline.py') diff --git a/tools/buildman/cmdline.py b/tools/buildman/cmdline.py index 27d3c708e6..2b75653512 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 ../)') -- cgit v1.2.3