Patchwork [1/1] kernel class: Added support for kernel 3.7

login
register
mail settings
Submitter Kim Bøndergaard
Date Dec. 14, 2012, 2 p.m.
Message ID <7b27ab696f4b07e9b5f4f3945ff2275a32cf3038.1355493530.git.kibo@prevas.dk>
Download mbox | patch
Permalink /patch/206489/
State Accepted
Headers show

Comments

Kim Bøndergaard - Dec. 14, 2012, 2 p.m.
---
 classes/kernel.oeclass | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Esben Haabendal - Dec. 14, 2012, 6:49 p.m.
Kim Bøndergaard <kibo@prevas.dk> writes:

> ---
>  classes/kernel.oeclass | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/classes/kernel.oeclass b/classes/kernel.oeclass
> index a9572b6..db266d5 100644
> --- a/classes/kernel.oeclass
> +++ b/classes/kernel.oeclass
> @@ -52,7 +52,12 @@ do_compile_kernel () {
>  		export KBUILD_BUILD_VERSION="$BUILD_TAG"
>  	fi
>  
> -	oe_runmake include/linux/version.h
> +	if [ `grep "^VERSION =" Makefile | cut -d'=' -f2` -ge 3 -a \
> +		`grep "^PATCHLEVEL =" Makefile | cut -d'=' -f2` -ge 7 ]; then
> +		oe_runmake include/generated/uapi/linux/version.h
> +	else
> +		oe_runmake include/linux/version.h
> +	fi
>  	oe_runmake ${USE_kernel_imagetype}
>  
>  	if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then

Merged to master, thanks.

/Esben

Patch

diff --git a/classes/kernel.oeclass b/classes/kernel.oeclass
index a9572b6..db266d5 100644
--- a/classes/kernel.oeclass
+++ b/classes/kernel.oeclass
@@ -52,7 +52,12 @@  do_compile_kernel () {
 		export KBUILD_BUILD_VERSION="$BUILD_TAG"
 	fi
 
-	oe_runmake include/linux/version.h
+	if [ `grep "^VERSION =" Makefile | cut -d'=' -f2` -ge 3 -a \
+		`grep "^PATCHLEVEL =" Makefile | cut -d'=' -f2` -ge 7 ]; then
+		oe_runmake include/generated/uapi/linux/version.h
+	else
+		oe_runmake include/linux/version.h
+	fi
 	oe_runmake ${USE_kernel_imagetype}
 
 	if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then