Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] core/pkg-kconfig: add an option to use olddefconfig
Date: Sat, 26 Mar 2016 18:52:52 +0100	[thread overview]
Message-ID: <20160326185252.22cae0a0@free-electrons.com> (raw)
In-Reply-To: <20160326174203.GA3589@free.fr>

Hello,

On Sat, 26 Mar 2016 18:42:03 +0100, Yann E. MORIN wrote:

> In fact, we've already discussed this, and we concluded that we would
> want an automatic behaviour.
> 
> I.e. we try to use olddefconfig, and fallback to the yes-trick, like so:
> 
>     make olddefconfig || { yes "" |make oldconfig; }
> 
> Care to adapt your patch and respin, please? Of course, your second
> patch will no longer make sense after that.
> 
> In the meantime, I marked your patches as "Changes Requested" in
> patchwork.

And here is the reason why we want this automatic behavior rather than
the explicit FOO_KCONFIG_OLDDEFCONFIG variable that you proposed
Romain: the Linux, Barebox and U-Boot packages, which are some of the
main users of kconfig-package infrastructure, have user-configurable
versions. Therefore, we don't know if the user will select a recent
enough version of the kernel, Barebox or U-Boot with olddefconfig
support.

For this reason, we cannot state in the Barebox, Linux or U-Boot
packages whether they support olddefconfig or not, as it depends on the
version. By having an automatic handling, regardless of the package and
its version, we will use olddefconfig if available, and fallback to the
old method if not.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2016-03-26 17:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-25 10:17 [Buildroot] [PATCH 1/2] core/pkg-kconfig: add an option to use olddefconfig Romain Izard
2016-03-25 10:17 ` [Buildroot] [PATCH 2/2] linux: use olddefconfig with defconfig files Romain Izard
2016-03-26 17:42 ` [Buildroot] [PATCH 1/2] core/pkg-kconfig: add an option to use olddefconfig Yann E. MORIN
2016-03-26 17:52   ` Thomas Petazzoni [this message]
2016-03-29  8:39     ` Romain Izard

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=20160326185252.22cae0a0@free-electrons.com \
    --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