From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] package/jailhouse: add option to choose custom repo/branch
Date: Fri, 29 May 2020 22:48:44 +0200 [thread overview]
Message-ID: <20200529204844.GR8737@scaer> (raw)
In-Reply-To: <20200528144333.49268-3-mariomintel@gmail.com>
Mario, All,
On 2020-05-28 16:43 +0200, Mario Mintel spake thusly:
> In addition to official releases of Jailhouse, allow to specify a custom
> Git URI + branches. This adds more flexibility for custom
> configurations.
The overwhelming majority of packages do not allow selecting an
alternate location. Why would jailhouse be different?
Are you trying to cover for development? In that case, the usual way is
to use the override srcdir mechanism. See BR2_PACKAGE_OVERRIDE_FILE and
provide such a file with definitions like;
JAILHOUSE_OVERRIDE_SRCDIR = /path/to/your/local/development/tree/jailhouse
Regards,
Yann E. MORIN.
> Signed-off-by: Mario Mintel <mariomintel@gmail.com>
> ---
> package/jailhouse/Config.in | 36 ++++++++++++++++++++++++++++++++--
> package/jailhouse/jailhouse.mk | 17 ++++++++++++++--
> 2 files changed, 49 insertions(+), 4 deletions(-)
>
> diff --git a/package/jailhouse/Config.in b/package/jailhouse/Config.in
> index 596b4951db..47523747f9 100644
> --- a/package/jailhouse/Config.in
> +++ b/package/jailhouse/Config.in
> @@ -3,18 +3,50 @@ config BR2_PACKAGE_JAILHOUSE
> depends on BR2_aarch64 || BR2_x86_64
> depends on BR2_LINUX_KERNEL
> help
> - The Jailhouse partitioning Hypervisor based on Linux.
> + The Jailhouse Linux-based partitioning hypervisor.
>
> https://github.com/siemens/jailhouse
>
> if BR2_PACKAGE_JAILHOUSE
>
> +choice
> + prompt "Jailhouse Version"
> +
> +config BR2_PACKAGE_JAILHOUSE_LATEST_VERSION
> + bool "Version 0.12"
> +
> +config BR2_PACKAGE_JAILHOUSE_CUSTOM_GIT
> + bool "Custom Git repository"
> + help
> + This option allows Buildroot to get the Jailhouse source code
> + from a custom Git repository.
> +
> +endchoice
> +
> +if BR2_PACKAGE_JAILHOUSE_CUSTOM_GIT
> +
> +config BR2_PACKAGE_JAILHOUSE_CUSTOM_GIT_URI
> + string "URI of custom repository"
> + default "https://github.com/siemens/jailhouse.git"
> +
> +config BR2_PACKAGE_JAILHOUSE_CUSTOM_GIT_BRANCH
> + string "Name of Git branch"
> + default "master"
> +
> +endif
> +
> +config BR2_PACKAGE_JAILHOUSE_VERSION
> + string
> + default "0.12" if BR2_PACKAGE_JAILHOUSE_LATEST_VERSION
> + default BR2_PACKAGE_JAILHOUSE_CUSTOM_GIT_BRANCH \
> + if BR2_PACKAGE_JAILHOUSE_CUSTOM_GIT
> +
> config BR2_PACKAGE_JAILHOUSE_HELPER_SCRIPTS
> bool "helper scripts"
> depends on BR2_PACKAGE_PYTHON
> select BR2_PACKAGE_PYTHON_MAKO # runtime
> help
> - Python-based helpers for the Jailhouse Hypervisor.
> + Python-based helpers for the Jailhouse hypervisor.
>
> https://github.com/siemens/jailhouse
>
> diff --git a/package/jailhouse/jailhouse.mk b/package/jailhouse/jailhouse.mk
> index 6356c5a7aa..d134b3d1b4 100644
> --- a/package/jailhouse/jailhouse.mk
> +++ b/package/jailhouse/jailhouse.mk
> @@ -4,10 +4,23 @@
> #
> ################################################################################
>
> -JAILHOUSE_VERSION = 0.12
> -JAILHOUSE_SITE = $(call github,siemens,jailhouse,v$(JAILHOUSE_VERSION))
> +JAILHOUSE_VERSION = $(call qstrip,$(BR2_PACKAGE_JAILHOUSE_VERSION))
> JAILHOUSE_LICENSE = GPL-2.0
> +ifeq ($(BR2_PACKAGE_JAILHOUSE_LATEST_VERSION),y)
> JAILHOUSE_LICENSE_FILES = COPYING
> +endif
> +
> +ifeq ($(BR2_PACKAGE_JAILHOUSE_CUSTOM_GIT),y)
> +JAILHOUSE_SITE = $(call qstrip,$(BR2_PACKAGE_JAILHOUSE_CUSTOM_GIT_URI))
> +JAILHOUSE_SITE_METHOD = git
> +else
> +JAILHOUSE_SITE = $(call github,siemens,jailhouse,v$(JAILHOUSE_VERSION))
> +endif
> +
> +ifeq ($(BR2_PACKAGE_JAILHOUSE)$(BR2_PACKAGE_JAILHOUSE_CUSTIM_GIT),y)
> +BR_NO_CHECK_HASH_FOR += $(JAILHOUSE_SOURCE)
> +endif
> +
> JAILHOUSE_DEPENDENCIES = \
> linux
>
> --
> 2.26.1
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2020-05-29 20:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-28 14:43 [Buildroot] [PATCH 0/2] Extend Jailhouse package with custom repo option Mario Mintel
2020-05-28 14:43 ` [Buildroot] [PATCH 1/2] package/jailhouse: bump version to 0.12 Mario Mintel
2020-06-06 21:58 ` Thomas Petazzoni
2020-05-28 14:43 ` [Buildroot] [PATCH 2/2] package/jailhouse: add option to choose custom repo/branch Mario Mintel
2020-05-29 20:48 ` Yann E. MORIN [this message]
[not found] ` <3806f122-f6b0-efba-e94a-64a3729fbe8a@oth-regensburg.de>
2020-05-30 17:28 ` Mario Mintel
2020-06-01 16:23 ` Mario Mintel
2020-06-01 21:19 ` Yann E. MORIN
[not found] ` <8ede0323-ef3b-a405-81dc-80f92085ab93@oth-regensburg.de>
2020-06-02 10:53 ` Jan Kiszka
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=20200529204844.GR8737@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/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