qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
Cc: qemu-devel@nongnu.org, Fam Zheng <famz@redhat.com>
Subject: Re: [Qemu-devel] [RFC PATCH 13/23] docker: add --include-file argument to 'build' command
Date: Mon, 08 May 2017 12:10:59 +0100	[thread overview]
Message-ID: <8760hba9j0.fsf@linaro.org> (raw)
In-Reply-To: <20170508045715.21770-14-f4bug@amsat.org>


Philippe Mathieu-Daudé <f4bug@amsat.org> writes:

> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
>  tests/docker/Makefile.include | 3 ++-
>  tests/docker/docker.py        | 5 +++++
>  2 files changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include
> index ceff2c1654..47978fb56c 100644
> --- a/tests/docker/Makefile.include
> +++ b/tests/docker/Makefile.include
> @@ -51,7 +51,8 @@ docker-image-%: $(DOCKER_FILES_DIR)/%.docker
>  		$(SRC_PATH)/tests/docker/docker.py build qemu:$* $< \
>  		$(if $V,,--quiet) $(if $(NOCACHE),--no-cache) \
>  		$(if $(NOUSER),,--add-current-user) \
> -		$(if $(EXECUTABLE),--include-executable=$(EXECUTABLE)),\
> +		$(if $(EXECUTABLE),--include-executable=$(EXECUTABLE))\
> +		$(if $(EXTRA_FILE),--include-file=$(EXTRA_FILE)),\
>  		"BUILD","$*")
>
>  # Enforce dependancies for composite images
> diff --git a/tests/docker/docker.py b/tests/docker/docker.py
> index 6ddc6e4c2a..4c096a8178 100755
> --- a/tests/docker/docker.py
> +++ b/tests/docker/docker.py
> @@ -237,6 +237,9 @@ class BuildCommand(SubCommand):
>                              help="""Specify a binary that will be copied to the
>                              container together with all its dependent
>                              libraries""")
> +        parser.add_argument("--include-file", "-f",
> +                            help="""Specify a binary that will be copied to the
> +                            container""")

It's not a binary, just an additional file (which might be a binary).

>          parser.add_argument("--add-current-user", "-u", dest="user",
>                              action="store_true",
>                              help="Add the current user to image's passwd")
> @@ -274,6 +277,8 @@ class BuildCommand(SubCommand):
>              if args.include_executable:
>                  _copy_binary_with_libs(args.include_executable,
>                                         docker_dir)
> +            if args.include_file:
> +                _copy_with_mkdir(args.include_file, docker_dir)
>
>              argv += ["--build-arg=" + k.lower() + "=" + v
>                          for k, v in os.environ.iteritems()


--
Alex Bennée

  reply	other threads:[~2017-05-08 11:10 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-08  4:56 [Qemu-devel] [PATCH 00/23] docker/shippable: cross-build mipsel and powerpc targets Philippe Mathieu-Daudé
2017-05-08  4:56 ` [Qemu-devel] [PATCH 01/23] shippable: use C locale to simplify console output Philippe Mathieu-Daudé
2017-05-08 10:54   ` Alex Bennée
2017-05-08  4:56 ` [Qemu-devel] [PATCH 02/23] shippable: build using all available cpus Philippe Mathieu-Daudé
2017-05-08 10:55   ` Alex Bennée
2017-05-08 13:21     ` Philippe Mathieu-Daudé
2017-05-08 14:42       ` Philippe Mathieu-Daudé
2017-05-08  4:56 ` [Qemu-devel] [RFC PATCH 03/23] shippable: ignore SSL verification Philippe Mathieu-Daudé
2017-05-08 10:58   ` Alex Bennée
2017-05-08 11:56     ` Philippe Mathieu-Daudé
2017-05-08  4:56 ` [Qemu-devel] [PATCH 04/23] docker: compact debian base Philippe Mathieu-Daudé
2017-05-08 11:04   ` Alex Bennée
2017-05-08 18:19     ` Philippe Mathieu-Daudé
2017-05-08  4:56 ` [Qemu-devel] [PATCH 05/23] docker: compact debian armhf Philippe Mathieu-Daudé
2017-05-08  4:56 ` [Qemu-devel] [PATCH 06/23] docker: compact debian arm64 Philippe Mathieu-Daudé
2017-05-08  4:56 ` [Qemu-devel] [PATCH 07/23] docker: add extra libs to armhf target to extend codebase coverage Philippe Mathieu-Daudé
2017-05-08  4:57 ` [Qemu-devel] [PATCH 08/23] docker: add extra libs to arm64 " Philippe Mathieu-Daudé
2017-05-08  4:57 ` [Qemu-devel] [PATCH 09/23] docker: add extra libs to s390x " Philippe Mathieu-Daudé
2017-05-08  4:57 ` [Qemu-devel] [PATCH 10/23] docker: add mipsel build target Philippe Mathieu-Daudé
2017-05-08  4:57 ` [Qemu-devel] [PATCH 11/23] shippable: add mipsel target Philippe Mathieu-Daudé
2017-05-08 11:06   ` Alex Bennée
2017-05-08  4:57 ` [Qemu-devel] [PATCH 12/23] docker: let _copy_with_mkdir() sub_path argument be optional Philippe Mathieu-Daudé
2017-05-08  4:57 ` [Qemu-devel] [RFC PATCH 13/23] docker: add --include-file argument to 'build' command Philippe Mathieu-Daudé
2017-05-08 11:10   ` Alex Bennée [this message]
2017-05-08  4:57 ` [Qemu-devel] [RFC PATCH 14/23] docker: add 'apt-fake' script which generate fake debian packages Philippe Mathieu-Daudé
2017-05-08 11:12   ` Alex Bennée
2017-05-08 17:48     ` Philippe Mathieu-Daudé
2017-05-08  4:57 ` [Qemu-devel] [PATCH 15/23] docker: fix mipsel debian/stable dependencies problem Philippe Mathieu-Daudé
2017-05-08 11:14   ` Alex Bennée
2017-05-08  4:57 ` [Qemu-devel] [PATCH 16/23] shippable: do not initialize submodules automatically Philippe Mathieu-Daudé
2017-05-08 11:15   ` Alex Bennée
2017-05-08 17:48     ` Philippe Mathieu-Daudé
2017-05-08  4:57 ` [Qemu-devel] [PATCH 17/23] shippable: use dtc submodule if distrib packages are too old Philippe Mathieu-Daudé
2017-05-08 11:15   ` Alex Bennée
2017-05-08  4:57 ` [Qemu-devel] [PATCH 19/23] docker: add powerpc build target Philippe Mathieu-Daudé
2017-05-08  4:57 ` [Qemu-devel] [PATCH 20/23] shippable: add powerpc target Philippe Mathieu-Daudé
2017-05-08  4:57 ` [Qemu-devel] [PATCH 21/23] docker: fix powerpc debian/stable dependencies problem Philippe Mathieu-Daudé
2017-05-08 11:19   ` Alex Bennée
2017-05-08 17:50     ` Philippe Mathieu-Daudé
2017-05-08  4:57 ` [Qemu-devel] [PATCH 22/23] MAINTAINERS: add Shippable automation platform URL Philippe Mathieu-Daudé
2017-05-08 11:21   ` Alex Bennée
2017-05-08  4:57 ` [Qemu-devel] [PATCH 23/23] MAINTAINERS: self-appoint me as reviewer in build/test automation Philippe Mathieu-Daudé
2017-05-08 11:22   ` Alex Bennée
2017-05-08  5:02 ` [Qemu-devel] [PATCH 18/23] shippable: temporary disable mips64el-softmmu build Philippe Mathieu-Daudé
2017-05-08 11:22   ` Alex Bennée
2017-05-08 17:52     ` Philippe Mathieu-Daudé

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=8760hba9j0.fsf@linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=f4bug@amsat.org \
    --cc=famz@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).