From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] linux: Fix URL for release candidate versions
Date: Tue, 1 Aug 2017 23:44:59 +0200 [thread overview]
Message-ID: <20170801234459.50ccc92a@windsurf.home> (raw)
In-Reply-To: <20170726021352.31148-1-luaraneda@gmail.com>
Hello,
On Tue, 25 Jul 2017 22:13:52 -0400, Luis Araneda wrote:
> Starting with 4.12-rc1, tarballs are generated by cgit
> directly from Linus's tree.
> Also, set LINUX_SOURCE only on non-rc kernels,
> and use <PKG>_SOURCE otherwise.
>
> This method also applies to older release candidates.
>
> Signed-off-by: Luis Araneda <luaraneda@gmail.com>
>
> ---
> Changes v1 -> v2:
> - Set LINUX_SOURCE only on non-rc kernels (suggested by Arnout)
>
> linux/linux.mk | 8 +++-----
> 1 file changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/linux/linux.mk b/linux/linux.mk
> index 032d64fc2..f02734102 100644
> --- a/linux/linux.mk
> +++ b/linux/linux.mk
> @@ -16,7 +16,9 @@ define LINUX_HELP_CMDS
> endef
>
> # Compute LINUX_SOURCE and LINUX_SITE from the configuration
> -ifeq ($(BR2_LINUX_KERNEL_CUSTOM_TARBALL),y)
> +ifneq ($(findstring -rc,$(LINUX_VERSION)),)
I think this condition should go *inside* the
($(BR2_LINUX_KERNEL_CUSTOM_TARBALL),y) condition. Indeed with your
current situation, if by any chance I have a Git tag such as
this-is-a-rc-kernel, then it will match your condition, and ignore the
Git repository address.
So I really think we want to test the -rc case inside the
($(BR2_LINUX_KERNEL_CUSTOM_TARBALL),y) condition, such as:
ifeq ($(BR2_LINUX_KERNEL_CUSTOM_TARBALL),y)
ifneq ($(findstring -rc,$(LINUX_VERSION)),)
LINUX_SITE = https://git.kernel.org/torvalds/t
else
...
endif
endif # tarball
Also, please use "=" to assign variables, not ":=".
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
next prev parent reply other threads:[~2017-08-01 21:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-26 2:13 [Buildroot] [PATCH v2] linux: Fix URL for release candidate versions Luis Araneda
2017-08-01 21:44 ` Thomas Petazzoni [this message]
2017-08-02 4:18 ` Luis Araneda
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=20170801234459.50ccc92a@windsurf.home \
--to=thomas.petazzoni@free-electrons.com \
--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