diff options
authorPaul Eggleton <>2017-04-14 00:28:04 +1200
committerRichard Purdie <>2017-04-13 23:57:38 +0100
commit98fbc46e1a51237213bd7825a922389d3ab2ad9b (patch)
parent081974e75cc0cfa0a1a1bb01cd9f9cbc585b7692 (diff)
devtool: modify: add --keep-temp option for debugging
Most of the other extract-based commands have this option but oddly I left it out for modify - I guess because if I was debugging an issue here I just used devtool extract to do so, but there's no reason why we can't have it here and it is useful. Signed-off-by: Paul Eggleton <> Signed-off-by: Richard Purdie <>
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/lib/devtool/ b/scripts/lib/devtool/
index 1e84ae413f..34525b495b 100644
--- a/scripts/lib/devtool/
+++ b/scripts/lib/devtool/
@@ -791,7 +791,7 @@ def modify(args, config, basepath, workspace):
initial_rev = None
commits = []
if not args.no_extract:
- initial_rev = _extract_source(srctree, False, args.branch, False, rd, tinfoil)
+ initial_rev = _extract_source(srctree, args.keep_temp, args.branch, False, rd, tinfoil)
if not initial_rev:
return 1'Source tree extracted to %s' % srctree)
@@ -1851,6 +1851,7 @@ def register_commands(subparsers, context):
group.add_argument('--same-dir', '-s', help='Build in same directory as source', action="store_true")
group.add_argument('--no-same-dir', help='Force build in a separate build directory', action="store_true")
parser_modify.add_argument('--branch', '-b', default="devtool", help='Name for development branch to checkout (when not using -n/--no-extract) (default "%(default)s")')
+ parser_modify.add_argument('--keep-temp', help='Keep temporary directory (for debugging)', action="store_true")
parser_extract = subparsers.add_parser('extract', help='Extract the source for an existing recipe',