All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: "meta-ti@yoctoproject.org" <meta-ti@yoctoproject.org>
Subject: Re: Denys Dmytriyenko : multi-kernel: fix get_kernelversion returns None for do_compileconfigs
Date: Thu, 29 Mar 2012 10:54:05 +0100	[thread overview]
Message-ID: <1333014845.14983.8.camel@ted> (raw)
In-Reply-To: <20120329043607.18340529E8@arago-project.org>

On Thu, 2012-03-29 at 04:36 +0000, Arago Project git wrote:
> Module: meta-ti
> Branch: master
> Commit: a0dc3b8afc592b39c7948783952cd371c693640f
> URL:    http://arago-project.org/git/meta-ti.git?a=commit;h=a0dc3b8afc592b39c7948783952cd371c693640f
> 
> Author: Denys Dmytriyenko <denys@ti.com>
> Date:   Thu Mar 29 00:25:14 2012 -0400
> 
> multi-kernel: fix get_kernelversion returns None for do_compileconfigs
> 
> The function get_kernelversion uses generated header files to extract the
> version number. But those files are not available until do_compile, and
> do_compileconfigs is injected before that, hence the version becomes None
> and breaks in several places.
> 
> Introduce a new task do_preparekernel that calls "make prepare" in the
> kernel tree to generate all the necessary files. It's also safer to call
> do_configure early on.
> 
> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
> 
> ---
> 
>  recipes-kernel/linux/linux-omap-psp_2.6.32.bb |    4 +++-
>  recipes-kernel/linux/multi-kernel.inc         |   11 +++++++++--
>  2 files changed, 12 insertions(+), 3 deletions(-)
> 
> diff --git a/recipes-kernel/linux/linux-omap-psp_2.6.32.bb b/recipes-kernel/linux/linux-omap-psp_2.6.32.bb
> index 212a6e3..61fc24f 100644
> --- a/recipes-kernel/linux/linux-omap-psp_2.6.32.bb
> +++ b/recipes-kernel/linux/linux-omap-psp_2.6.32.bb
> @@ -1,5 +1,7 @@
>  require multi-kernel.inc
>  
> +MULTI_CONFIG_BASE_SUFFIX = ""
> +
>  DESCRIPTION = "Linux kernel for OMAP processors"
>  KERNEL_IMAGETYPE = "uImage"
>  
> @@ -9,7 +11,7 @@ COMPATIBLE_MACHINE = "am3517-crane|beagleboard|omap3evm|am3517-evm|dm37x-evm|am3
>  SRCREV = "5fc29e7b2a76a64a739f857858ef0b98294aa155"
>  
>  # The main PR is now using MACHINE_KERNEL_PR, for omap3 see conf/machine/include/omap3.inc
> -MACHINE_KERNEL_PR_append = "b+gitr${SRCREV}"
> +MACHINE_KERNEL_PR_append = "c+gitr${SRCREV}"
>  
>  SRC_URI += "git://arago-project.org/git/projects/linux-omap3.git;protocol=git;branch=master \
>             file://0001-Revert-omap3-beagle-Fix-compile-time-errors.patch \
> diff --git a/recipes-kernel/linux/multi-kernel.inc b/recipes-kernel/linux/multi-kernel.inc
> index 5314454..056adb9 100644
> --- a/recipes-kernel/linux/multi-kernel.inc
> +++ b/recipes-kernel/linux/multi-kernel.inc
> @@ -16,6 +16,14 @@ SRC_URI += " \
>             file://configs "
>  
>  MULTI_CONFIG_BASE_SUFFIX = "multi-config-"
> +MODULES_IMAGE_BASE_NAME = "modules-${PV}-${PR}-${MACHINE}"
> +
> +do_preparekernel () {
> +	unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
> +	oe_runmake prepare CC="${KERNEL_CC}" LD="${KERNEL_LD}"
> +}
> +
> +addtask preparekernel after do_configure before do_compile


Might I suggest putting comments in the code about why this is
necessary? Having done this kind of thing for a while you look at it in
a years time and wonder what you'd been taking when you added it :)

I know you can look at the commit history but a comment can be easier!

Cheers,

Richard




      reply	other threads:[~2012-03-29  9:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-29  4:36 Denys Dmytriyenko : multi-kernel: fix get_kernelversion returns None for do_compileconfigs Arago Project git
2012-03-29  9:54 ` Richard Purdie [this message]

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=1333014845.14983.8.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=meta-ti@yoctoproject.org \
    /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.