From: Darren Hart <dvhart@linux.intel.com>
To: Bruce Ashfield <bruce.ashfield@windriver.com>
Cc: openembedded-core@lists.openembedded.org, saul.wold@intel.com
Subject: Re: [PATCH 2/4] kernel: copy defconfig to {B} vs {S}
Date: Thu, 21 Jul 2011 11:08:12 -0700 [thread overview]
Message-ID: <4E286B0C.1030902@linux.intel.com> (raw)
In-Reply-To: <069e9d973b31c8938d43e7c36f17d3d51ba90c18.1311267679.git.bruce.ashfield@windriver.com>
On 07/21/2011 10:16 AM, Bruce Ashfield wrote:
> For kernel's that use a split source/object build the copy
> of defconfig to {S} in the base kernel class is problematic.
> The previous solution for this was to override the do_configure
> of the base kernel class in a subclass. While this is still
> a viable/valid option, it does mean that changes to the base
> do_configure will be missed.
>
> The solution to this is to copy a defconfig to {B} which is
> typically the same as {S}, so most kernel recipes won't see or
> care about this change.
>
> With this change in place, linux-yocto.bbclass can drop its
> override of do_configure.
>
> Tested with linux-yocto and oe linux recipes.
>
> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Acked-by: Darren Hart <dvhart@linux.intel.com>
> ---
> meta/classes/kernel-yocto.bbclass | 6 ------
> meta/classes/kernel.bbclass | 4 ++--
> 2 files changed, 2 insertions(+), 8 deletions(-)
>
> diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
> index 98272fc..a374df1 100644
> --- a/meta/classes/kernel-yocto.bbclass
> +++ b/meta/classes/kernel-yocto.bbclass
> @@ -118,12 +118,6 @@ python do_kernel_configcheck() {
> bb.plain( "%s" % result )
> }
>
> -# overrides the base kernel_do_configure, since we don't want all the
> -# defconfig processing in there
> -kernel_do_configure() {
> - yes '' | oe_runmake oldconfig
> -}
> -
>
> # Ensure that the branches (BSP and meta) are on the locatios specified by
> # their SRCREV values. If they are NOT on the right commits, the branches
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index 2e36e86..9c492a3 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -181,8 +181,8 @@ sysroot_stage_all_append() {
> kernel_do_configure() {
> # Copy defconfig to .config if .config does not exist. This allows
> # recipes to manage the .config themselves in do_configure_prepend().
> - if [ -f "${WORKDIR}/defconfig" ] && [ ! -f "${S}/.config" ]; then
> - cp "${WORKDIR}/defconfig" "${S}/.config"
> + if [ -f "${WORKDIR}/defconfig" ] && [ ! -f "${B}/.config" ]; then
> + cp "${WORKDIR}/defconfig" "${B}/.config"
> fi
> yes '' | oe_runmake oldconfig
>
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
next prev parent reply other threads:[~2011-07-21 18:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-21 17:16 [PATCH 0/4] kernel: consolidated pull request Bruce Ashfield
2011-07-21 17:16 ` [PATCH 1/4] linux-yocto: kernel-3.0 support recipe Bruce Ashfield
2011-07-21 18:09 ` Darren Hart
2011-07-21 17:16 ` [PATCH 2/4] kernel: copy defconfig to {B} vs {S} Bruce Ashfield
2011-07-21 18:08 ` Darren Hart [this message]
2011-07-21 17:16 ` [PATCH 3/4] linux-yocto: update LICENSE to GPLv2 Bruce Ashfield
2011-07-21 18:05 ` Darren Hart
2011-07-21 17:16 ` [PATCH 4/4] kern-tools: update SRCREV Bruce Ashfield
2011-07-21 18:07 ` Darren Hart
2011-07-22 15:26 ` [PATCH 0/4] kernel: consolidated pull request Saul Wold
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=4E286B0C.1030902@linux.intel.com \
--to=dvhart@linux.intel.com \
--cc=bruce.ashfield@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=saul.wold@intel.com \
/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