All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
To: Tobias Hagelborn <tobias.hagelborn@axis.com>
Cc: Tobias Hagelborn <tobiasha@axis.com>,
	openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] devtool: deploy-target: Support stripped libs and execs
Date: Wed, 14 Jun 2017 12:33:45 -0500	[thread overview]
Message-ID: <1497461625.29576.8.camel@linux.intel.com> (raw)
In-Reply-To: <1497421480-21923-1-git-send-email-tobiasha@axis.com>


>  
>  def register_commands(subparsers, context):
>      """Register devtool subcommands from the deploy plugin"""
> +
>      parser_deploy = subparsers.add_parser('deploy-target',
>                                            help='Deploy recipe output files to live target machine',
>                                            description='Deploys a recipe\'s build output (i.e. the output of the do_install task) to a live target machine over ssh. By default, any existing files will be preserved instead of being overwritten and will be restored if you run devtool undeploy-target. Note: this only deploys the recipe itself and not any runtime dependencies, so it is assumed that those have been installed on the target beforehand.',
> @@ -313,6 +433,12 @@ def register_commands(subparsers, context):
>      parser_deploy.add_argument('-p', '--no-preserve', help='Do not preserve existing files', action='store_true')
>      parser_deploy.add_argument('--no-check-space', help='Do not check for available space before deploying', action='store_true')
>      parser_deploy.add_argument('-P', '--port', default='22', help='Port to use for connection to the target')
> +    parser_deploy.add_argument('-S', '--strip',
> +                               help='Strip executables prior to deploying (default: %(default)s). '
> +                                    'The default value of this option can be controlled by setting the strip option in the [Deploy] section to True or False.',
> +                               default=oe.types.boolean(context.config.get('Deploy', 'strip', default='0')),
> +                               action='store_true')
> +    parser_deploy.add_argument('--no-strip', help='Do not strip executables prior to deploy', dest='strip', action='store_false')
>      parser_deploy.set_defaults(func=deploy)


sounds like these two new parameters mutual exclude, so something like
this may be useful

https://docs.python.org/3/library/argparse.html#mutual-exclusion

>  
>      parser_undeploy = subparsers.add_parser('undeploy-target',
> -- 
> 2.1.4
> 




      parent reply	other threads:[~2017-06-14 17:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-14  6:24 [PATCH] devtool: deploy-target: Support stripped libs and execs Tobias Hagelborn
2017-06-14  9:28 ` Richard Purdie
2017-06-14 11:35   ` Tobias Hagelborn
2017-06-16  5:12     ` Tobias Hagelborn
2017-06-14 17:33 ` Leonardo Sandoval [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1497461625.29576.8.camel@linux.intel.com \
    --to=leonardo.sandoval.gonzalez@linux.intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=tobias.hagelborn@axis.com \
    --cc=tobiasha@axis.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.