All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3 1/2] package/linux-backports: fix kernel version check
Date: Fri, 13 Nov 2020 23:08:29 +0100	[thread overview]
Message-ID: <20201113220829.GG771438@scaer> (raw)
In-Reply-To: <20201113130941.67928-1-ju.o@free.fr>

Kulien, All,

On 2020-11-13 14:09 +0100, Julien Olivain spake thusly:
> The commit 05fea6e4a60a38a797d9bacbf318a2cd7dbd435f "infra/pkg-kconfig:
> do not rely on package's .config as a timestamp" broke the kernel
> version check of this linux-backports package (it was no longer
> executed). Since linux-4.19, the kernel's build system internally
> touches its .config file, so it can no longer be used as a stamp file.
> The stamp file defined in KCONFIG_STAMP_DOTCONFIG variable of
> pkg-kconfig infra need to be used instead.
> 
> This commit fixes the kernel version check.
> 
> Signed-off-by: Julien Olivain <ju.o@free.fr>

Applied to master, thanks! :-)

Regards,
Yann E. MORIN.

> ---
> Changes v1 -> v3:
>   - new patch to fix kernel version check
> ---
>  package/linux-backports/linux-backports.mk | 13 ++++++++-----
>  1 file changed, 8 insertions(+), 5 deletions(-)
> 
> diff --git a/package/linux-backports/linux-backports.mk b/package/linux-backports/linux-backports.mk
> index 030d7a2864..1827ee18b7 100644
> --- a/package/linux-backports/linux-backports.mk
> +++ b/package/linux-backports/linux-backports.mk
> @@ -85,21 +85,24 @@ $(eval $(kconfig-package))
>  # not have been parsed yet, so the Linux build dir LINUX_DIR is not yet
>  # known. Thus, we use a "secondary expansion" so the rule is re-evaluated
>  # after all Makefiles are parsed, and thus at that time we will have the
> -# LINUX_DIR variable set to the proper value.
> +# LINUX_DIR variable set to the proper value. Moreover, since linux-4.19,
> +# the kernel's build system internally touches its .config file, so we
> +# can't use it as a stamp file. We use the LINUX_KCONFIG_STAMP_DOTCONFIG
> +# instead.
>  #
>  # Furthermore, we want to check the kernel version, since linux-backports
>  # only supports kernels >= 3.0. To avoid overriding linux-backports'
> -# .config rule defined in the kconfig-package infra, we use an
> -# intermediate stamp-file.
> +# KCONFIG_STAMP_DOTCONFIG rule defined in the kconfig-package infra, we
> +# use an intermediate stamp-file.
>  #
>  # Finally, it must also come after the call to kconfig-package, so we get
>  # LINUX_BACKPORTS_DIR properly defined (because the target part of the
>  # rule is not re-evaluated).
>  #
> -$(LINUX_BACKPORTS_DIR)/.config: $(LINUX_BACKPORTS_DIR)/.stamp_check_kernel_version
> +$(LINUX_BACKPORTS_DIR)/$(LINUX_BACKPORTS_KCONFIG_STAMP_DOTCONFIG): $(LINUX_BACKPORTS_DIR)/.stamp_check_kernel_version
>  
>  .SECONDEXPANSION:
> -$(LINUX_BACKPORTS_DIR)/.stamp_check_kernel_version: $$(LINUX_DIR)/.config
> +$(LINUX_BACKPORTS_DIR)/.stamp_check_kernel_version: $$(LINUX_DIR)/$$(LINUX_KCONFIG_STAMP_DOTCONFIG)
>  	$(Q)LINUX_VERSION_PROBED=$(LINUX_VERSION_PROBED); \
>  	if [ $${LINUX_VERSION_PROBED%%.*} -lt 3 ]; then \
>  		printf "Linux version '%s' is too old for linux-backports (needs 3.0 or later)\n" \
> -- 
> 2.28.0
> 
> _______________________________________________
> 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.  |
'------------------------------^-------^------------------^--------------------'

  parent reply	other threads:[~2020-11-13 22:08 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-11 16:22 [Buildroot] [PATCH 1/2] package/linux-backports: use buildroot host flex and bison Julien Olivain
2020-11-11 16:22 ` [Buildroot] [PATCH 2/2] package/linux-backports: bump version to 5.8 Julien Olivain
2020-11-11 21:47   ` Petr Vorel
2020-11-12 11:07     ` Julien Olivain
2020-11-11 21:06 ` [Buildroot] [PATCH 1/2] package/linux-backports: use buildroot host flex and bison Yann E. MORIN
2020-11-12 10:55   ` Julien Olivain
2020-11-11 21:35 ` Petr Vorel
2020-11-12 12:01 ` [Buildroot] [PATCH v2 1/2] package/linux-backports: use flex and bison to generate kconfig parser Julien Olivain
2020-11-12 12:01   ` [Buildroot] [PATCH v2 2/2] package/linux-backports: bump version to 5.8 Julien Olivain
2020-11-12 12:34     ` Baruch Siach
2020-11-12 19:30     ` Peter Seiderer
2020-11-12 21:01     ` Petr Vorel
2020-11-12 21:17       ` Yann E. MORIN
2020-11-12 21:24         ` Petr Vorel
     [not found]           ` <MW3PR11MB476417BF2CC5E2E72CA4AE36E9E60@MW3PR11MB4764.namprd11.prod.outlook.com>
2020-11-13 11:56             ` Julien Olivain
2020-11-12 20:53   ` [Buildroot] [PATCH v2 1/2] package/linux-backports: use flex and bison to generate kconfig parser Petr Vorel
2020-11-12 21:24   ` Yann E. MORIN
2020-11-13 13:09   ` [Buildroot] [PATCH v3 1/2] package/linux-backports: fix kernel version check Julien Olivain
2020-11-13 13:09     ` [Buildroot] [PATCH v3 2/2] package/linux-backports: bump version to 5.8 Julien Olivain
2020-11-13 19:07       ` Petr Vorel
2020-11-13 22:21       ` Yann E. MORIN
2020-11-17 21:26       ` Yann E. MORIN
2020-11-13 19:06     ` [Buildroot] [PATCH v3 1/2] package/linux-backports: fix kernel version check Petr Vorel
2020-11-13 22:08     ` Yann E. MORIN [this message]
2020-11-16 14:49     ` Peter Korsgaard
2020-11-15 15:09   ` [Buildroot] [PATCH v2 1/2] package/linux-backports: use flex and bison to generate kconfig parser Peter Korsgaard

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=20201113220829.GG771438@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 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.