Patchwork kernel.bbclass: touch .scmversion also in ${S}

login
register
mail settings
Submitter Martin Jansa
Date March 26, 2012, 5:29 p.m.
Message ID <1332782988-18008-1-git-send-email-Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/24571/
State Accepted
Commit e3bf54731973a444edf69ad8876d019aa404db75
Headers show

Comments

Martin Jansa - March 26, 2012, 5:29 p.m.
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/classes/kernel.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Bruce Ashfield - March 26, 2012, 6:32 p.m.
On 12-03-26 01:29 PM, Martin Jansa wrote:
> Signed-off-by: Martin Jansa<Martin.Jansa@gmail.com>
> ---
>   meta/classes/kernel.bbclass |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index 6633b85..3519e7c 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -207,7 +207,7 @@ kernel_do_configure() {
>   	# $ scripts/setlocalversion . =>  +
>   	# $ make kernelversion =>  2.6.37
>   	# $ make kernelrelease =>  2.6.37+
> -	touch ${B}/.scmversion
> +	touch ${B}/.scmversion ${S}/.scmversion

Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com>

I had the same patch here, and was about to send it. I blame my
slow builder :P

Cheers,

Bruce

>
>   	# Copy defconfig to .config if .config does not exist. This allows
>   	# recipes to manage the .config themselves in do_configure_prepend().

Patch

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 6633b85..3519e7c 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -207,7 +207,7 @@  kernel_do_configure() {
 	# $ scripts/setlocalversion . => +
 	# $ make kernelversion => 2.6.37
 	# $ make kernelrelease => 2.6.37+
-	touch ${B}/.scmversion
+	touch ${B}/.scmversion ${S}/.scmversion
 
 	# Copy defconfig to .config if .config does not exist. This allows
 	# recipes to manage the .config themselves in do_configure_prepend().