summaryrefslogtreecommitdiff
path: root/tools/buildman/buildman.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-07-14 17:51:03 -0600
committerSimon Glass <sjg@chromium.org>2014-07-28 04:52:55 +0100
commit189a496825aefe7c8e9be80c0f2a4cf5923d4f55 (patch)
tree8d6e523fd0deca56821b6edb9814bde229b81a5a /tools/buildman/buildman.py
parent97e915262e06c5980124de2e0fe5c2f34b40ee8f (diff)
downloadu-boot-imx-189a496825aefe7c8e9be80c0f2a4cf5923d4f55.zip
u-boot-imx-189a496825aefe7c8e9be80c0f2a4cf5923d4f55.tar.gz
u-boot-imx-189a496825aefe7c8e9be80c0f2a4cf5923d4f55.tar.bz2
buildman: Support in-tree builds
At present buildman always builds out-of-tree, that is it uses a separate output directory from the source directory. Normally this is what you want, but it is important that in-tree builds work also. Some Makefile changes may break this. Add a -i option to tell buildman to use in-tree builds, so that it is easy to test this feature. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/buildman.py')
-rwxr-xr-xtools/buildman/buildman.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/buildman/buildman.py b/tools/buildman/buildman.py
index 5046b16..42847ac 100755
--- a/tools/buildman/buildman.py
+++ b/tools/buildman/buildman.py
@@ -85,6 +85,9 @@ parser.add_option('-g', '--git', type='string',
help='Git repo containing branch to build', default='.')
parser.add_option('-H', '--full-help', action='store_true', dest='full_help',
default=False, help='Display the README file')
+parser.add_option('-i', '--in-tree', dest='in_tree',
+ action='store_true', default=False,
+ help='Build in the source tree instead of a separate directory')
parser.add_option('-j', '--jobs', dest='jobs', type='int',
default=None, help='Number of jobs to run at once (passed to make)')
parser.add_option('-k', '--keep-outputs', action='store_true',