summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool
diff options
context:
space:
mode:
authorEduardo Abinader <eduardo.abinader@gmail.com>2019-08-05 14:20:38 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-10-23 16:30:35 +0100
commit3e0c8798af5b8503fa6da05e79e6f00f92e5106b (patch)
treeaf8500c131a72f6141a54d3b67f573982c3137cd /scripts/lib/devtool
parentc501f9538217be736adf3a8052764d5d4a1deec6 (diff)
downloadpoky-3e0c8798af5b8503fa6da05e79e6f00f92e5106b.tar.gz
devtool: add ssh key option to deploy-target param
(From OE-Core rev: 729da1414098c2dd103d9749cf39117881cafeec) Signed-off-by: Eduardo Abinader <eduardoabinader@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool')
-rw-r--r--scripts/lib/devtool/deploy.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/lib/devtool/deploy.py b/scripts/lib/devtool/deploy.py
index d1ce2309f9..6a997735fc 100644
--- a/scripts/lib/devtool/deploy.py
+++ b/scripts/lib/devtool/deploy.py
@@ -212,6 +212,9 @@ def deploy(args, config, basepath, workspace):
212 scp_port = "-P %s" % args.port 212 scp_port = "-P %s" % args.port
213 ssh_port = "-p %s" % args.port 213 ssh_port = "-p %s" % args.port
214 214
215 if args.key:
216 extraoptions += ' -i %s' % args.key
217
215 # In order to delete previously deployed files and have the manifest file on 218 # In order to delete previously deployed files and have the manifest file on
216 # the target, we write out a shell script and then copy it to the target 219 # the target, we write out a shell script and then copy it to the target
217 # so we can then run it (piping tar output to it). 220 # so we can then run it (piping tar output to it).
@@ -326,6 +329,8 @@ def register_commands(subparsers, context):
326 parser_deploy.add_argument('--no-check-space', help='Do not check for available space before deploying', action='store_true') 329 parser_deploy.add_argument('--no-check-space', help='Do not check for available space before deploying', action='store_true')
327 parser_deploy.add_argument('-e', '--ssh-exec', help='Executable to use in place of ssh') 330 parser_deploy.add_argument('-e', '--ssh-exec', help='Executable to use in place of ssh')
328 parser_deploy.add_argument('-P', '--port', help='Specify port to use for connection to the target') 331 parser_deploy.add_argument('-P', '--port', help='Specify port to use for connection to the target')
332 parser_deploy.add_argument('-I', '--key',
333 help='Specifiy ssh private key for connection to the target')
329 334
330 strip_opts = parser_deploy.add_mutually_exclusive_group(required=False) 335 strip_opts = parser_deploy.add_mutually_exclusive_group(required=False)
331 strip_opts.add_argument('-S', '--strip', 336 strip_opts.add_argument('-S', '--strip',
@@ -349,4 +354,7 @@ def register_commands(subparsers, context):
349 parser_undeploy.add_argument('-n', '--dry-run', help='List files to be undeployed only', action='store_true') 354 parser_undeploy.add_argument('-n', '--dry-run', help='List files to be undeployed only', action='store_true')
350 parser_undeploy.add_argument('-e', '--ssh-exec', help='Executable to use in place of ssh') 355 parser_undeploy.add_argument('-e', '--ssh-exec', help='Executable to use in place of ssh')
351 parser_undeploy.add_argument('-P', '--port', help='Specify port to use for connection to the target') 356 parser_undeploy.add_argument('-P', '--port', help='Specify port to use for connection to the target')
357 parser_undeploy.add_argument('-I', '--key',
358 help='Specifiy ssh private key for connection to the target')
359
352 parser_undeploy.set_defaults(func=undeploy) 360 parser_undeploy.set_defaults(func=undeploy)