From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 11/12] linux: add support for 3.x and -rc versions
Date: Mon, 11 Jul 2011 21:57:30 +0200 [thread overview]
Message-ID: <871uxwlhed.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <6bdb6e46725ca0fcc8f3eb50f364ecc97b3b55d4.1310392269.git.thomas.petazzoni@free-electrons.com> (Thomas Petazzoni's message of "Mon, 11 Jul 2011 15:53:55 +0200")
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Thomas> The assumption that all kernels are in
Thomas> http://www.kernel.org/pub/linux/kernel/v2.6/ is no longer true:
Thomas> versions 3.x are in separate directories.
Thomas> We know compute the directory name from the major and minor versions
S/know/now/
Thomas> of the version provided by the user. This assumes that the 3.1 version
Thomas> will be in a /v3.1/ directory, which we don't know yet because the 3.1
Thomas> cycle hasn't started yet.
Good question. Have you heard anything to make you think it will be so,
or are you just guessing?
Thomas> At the same time, we add support for the official -rcX versions.
Thomas> Patch tested by compiling 3.0-rc6, which Buildroot has successfully
Thomas> downloaded and built.
Thomas> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thomas> ---
Thomas> linux/linux.mk | 11 ++++++++++-
Thomas> 1 files changed, 10 insertions(+), 1 deletions(-)
Thomas> diff --git a/linux/linux.mk b/linux/linux.mk
Thomas> index 9ead859..db1b953 100644
Thomas> --- a/linux/linux.mk
Thomas> +++ b/linux/linux.mk
Thomas> @@ -15,7 +15,16 @@ LINUX_SITE := $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL))
Thomas> LINUX_SITE_METHOD := git
Thomas> else
Thomas> LINUX_SOURCE := linux-$(LINUX_VERSION).tar.bz2
Thomas> -LINUX_SITE := $(BR2_KERNEL_MIRROR)/linux/kernel/v2.6/
Thomas> +# In X.Y.Z, get X and Y. We replace dots and dashes by spaces in order
Thomas> +# to use the $(word) function. We support versions such as 3.1,
Thomas> +# 2.6.32, 2.6.32-rc1, 3.0-rc6, etc.
Thomas> +LINUX_VERSION_MAJOR = $(word 1,$(subst ., ,$(subst -, ,$(LINUX_VERSION))))
Thomas> +LINUX_VERSION_MINOR = $(word 2,$(subst ., ,$(subst -, ,$(LINUX_VERSION))))
Thomas> +ifeq ($(findstring -rc,$(LINUX_VERSION)),)
Thomas> +LINUX_SITE := $(BR2_KERNEL_MIRROR)/linux/kernel/v$(LINUX_VERSION_MAJOR).$(LINUX_VERSION_MINOR)/
Thomas> +else
Thomas> +LINUX_SITE := $(BR2_KERNEL_MIRROR)/linux/kernel/v$(LINUX_VERSION_MAJOR).$(LINUX_VERSION_MINOR)/testing/
Thomas> +endif # -rc
Minor nit. I prefer positive logic, E.G.
LINUX_SITE := $(BR2_KERNEL_MIRROR)/linux/kernel/v$(LINUX_VERSION_MAJOR).$(LINUX_VERSION_MINOR)/
# release candidates are in the testing/ sub dir
ifneq ($(findstring -rc,$(LINUX_VERSION)),)
LINUX_SITE := $(LINUX_SITE)testing/
endif
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2011-07-11 19:57 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-11 13:53 [Buildroot] [pull request v4] Pull request for branch for-2011.08/bootloaders Thomas Petazzoni
2011-07-11 13:53 ` [Buildroot] [PATCH 01/12] linux: rename LINUX26 to LINUX Thomas Petazzoni
2011-07-11 13:53 ` [Buildroot] [PATCH 02/12] linux: indent and align some definitions Thomas Petazzoni
2011-07-11 19:30 ` Peter Korsgaard
2011-07-11 20:42 ` Thomas Petazzoni
2011-07-11 13:53 ` [Buildroot] [PATCH 03/12] linux: convert to the GENTARGETS infrastructure Thomas Petazzoni
2011-07-11 19:31 ` Peter Korsgaard
2011-07-11 20:42 ` Thomas Petazzoni
2011-07-11 13:53 ` [Buildroot] [PATCH 04/12] u-boot: rename to uboot Thomas Petazzoni
2011-07-11 13:53 ` [Buildroot] [PATCH 05/12] Improve TARGETS handling for bootloaders and kernel Thomas Petazzoni
2011-07-11 19:34 ` Peter Korsgaard
2011-07-11 20:42 ` Thomas Petazzoni
2011-07-11 13:53 ` [Buildroot] [PATCH 06/12] linux: allow specification of a custom Git repository as a source Thomas Petazzoni
2011-07-11 19:35 ` Peter Korsgaard
2011-07-11 13:53 ` [Buildroot] [PATCH 07/12] u-boot: allow specification of custom Git repo as source Thomas Petazzoni
2011-07-11 19:38 ` Peter Korsgaard
2011-07-11 19:44 ` Thomas Petazzoni
2011-07-11 20:06 ` Peter Korsgaard
2011-07-11 13:53 ` [Buildroot] [PATCH 08/12] Add x-loader bootloader Thomas Petazzoni
2011-07-11 19:43 ` Peter Korsgaard
2011-07-11 20:45 ` Thomas Petazzoni
2011-07-11 13:53 ` [Buildroot] [PATCH 09/12] barebox: bump version Thomas Petazzoni
2011-07-11 13:53 ` [Buildroot] [PATCH 10/12] at91dataflashboot: use "config" instead of "menuconfig" Thomas Petazzoni
2011-07-11 19:45 ` Peter Korsgaard
2011-07-11 13:53 ` [Buildroot] [PATCH 11/12] linux: add support for 3.x and -rc versions Thomas Petazzoni
2011-07-11 19:57 ` Peter Korsgaard [this message]
2011-07-11 20:45 ` Thomas Petazzoni
2011-07-11 13:53 ` [Buildroot] [PATCH 12/12] uboot: Add 2011.06 Thomas Petazzoni
2011-07-11 19:58 ` Peter Korsgaard
2011-07-11 20:45 ` Thomas Petazzoni
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=871uxwlhed.fsf@macbook.be.48ers.dk \
--to=jacmet@uclibc.org \
--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