From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH V2 1/2] pkg-kconfig: support alternative .config location
Date: Sat, 17 Sep 2016 15:18:31 +0200 [thread overview]
Message-ID: <20160917151831.3dbafd9f@free-electrons.com> (raw)
In-Reply-To: <1473795934-27033-2-git-send-email-eric.le.bihan.dev@free.fr>
Hello,
On Tue, 13 Sep 2016 21:45:33 +0200, Eric Le Bihan wrote:
> Kconfig clones, such as openconf used by xvisor [1], do not look for
> .config at the root of the build directory, but in a subdirectory (e.g.
> build/openconf).
>
> This patch introduces a new Makefile variable named
> $(2)_KCONFIG_DOTCONFIG, which contains the path to .config relative to
> the source directory of the package. It defaults to .config and can be
> overridden in the package Makefile.
>
> It also creates the full directory hierarchy where the .config file is
> stored, in case it does not exist (e.g. in xvisor).
>
> This allows the use of the kconfig-package infrastructure with packages
> relying on such clones.
>
> [1] https://github.com/xvisor/xvisor/tree/master/tools/openconf
>
> Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
> ---
> package/pkg-kconfig.mk | 14 ++++++++------
> 1 file changed, 8 insertions(+), 6 deletions(-)
I've applied after changing the mkdir+cp combination to a call to
install -D, as suggested by Yann.
I've also added a follow-up commit that documents this new variable.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2016-09-17 13:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-13 19:45 [Buildroot] [PATCH V2 0/2] Introducing Xvisor Eric Le Bihan
2016-09-13 19:45 ` [Buildroot] [PATCH V2 1/2] pkg-kconfig: support alternative .config location Eric Le Bihan
2016-09-13 22:32 ` Yann E. MORIN
2016-09-17 13:18 ` Thomas Petazzoni [this message]
2016-09-13 19:45 ` [Buildroot] [PATCH V2 2/2] xvisor: new package Eric Le Bihan
2016-09-17 13:35 ` 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=20160917151831.3dbafd9f@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