Re: [OE-core] [PATCH 3/3] kernel.bbclass: When linux/version.h exists, copy it

2015-01-07 Thread Bruce Ashfield
Unless anyone needs these really fast, I'll queue the two kernel
patches and take them
for a spin today.

I have a variant of the version.h here (and when the directories
shuffle again, we can drop
explicit copies all together), but will make the switch for this in
the short term.

Bruce

On Wed, Jan 7, 2015 at 12:25 PM, Otavio Salvador
ota...@ossystems.com.br wrote:
 Old Linux kernel versions rely on linux/version.h for modules; this
 needs to be published for external modules to use. Copy it when
 available.

 Signed-off-by: Otavio Salvador ota...@ossystems.com.br
 ---
  meta/classes/kernel.bbclass | 4 
  1 file changed, 4 insertions(+)

 diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
 index 88356b1..78c8c7c 100644
 --- a/meta/classes/kernel.bbclass
 +++ b/meta/classes/kernel.bbclass
 @@ -252,6 +252,10 @@ kernel_do_install() {
 cp .config $kerneldir/
 mkdir -p $kerneldir/include/config
 cp include/config/kernel.release 
 $kerneldir/include/config/kernel.release
 +   if [ -e include/linux/version.h ]; then
 +   mkdir -p $kerneldir/include/linux
 +   cp include/linux/version.h $kerneldir/include/linux/version.h
 +   fi

 # As of Linux kernel version 3.0.1, the clean target removes
 # arch/powerpc/lib/crtsavres.o which is present in
 --
 2.1.4

 --
 ___
 Openembedded-core mailing list
 Openembedded-core@lists.openembedded.org
 http://lists.openembedded.org/mailman/listinfo/openembedded-core



-- 
Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 3/3] kernel.bbclass: When linux/version.h exists, copy it

2015-01-07 Thread Otavio Salvador
On Wed, Jan 7, 2015 at 3:47 PM, Bruce Ashfield bruce.ashfi...@gmail.com wrote:
 Unless anyone needs these really fast, I'll queue the two kernel
 patches and take them
 for a spin today.

 I have a variant of the version.h here (and when the directories
 shuffle again, we can drop
 explicit copies all together), but will make the switch for this in
 the short term.

We have failures due this in meta-fsl-arm; it is for master only so we
can live with failures for some days.

I am happy you have something in same line.

-- 
Otavio Salvador O.S. Systems
http://www.ossystems.com.brhttp://code.ossystems.com.br
Mobile: +55 (53) 9981-7854Mobile: +1 (347) 903-9750
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 3/3] kernel.bbclass: When linux/version.h exists, copy it

2015-01-07 Thread Otavio Salvador
Old Linux kernel versions rely on linux/version.h for modules; this
needs to be published for external modules to use. Copy it when
available.

Signed-off-by: Otavio Salvador ota...@ossystems.com.br
---
 meta/classes/kernel.bbclass | 4 
 1 file changed, 4 insertions(+)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 88356b1..78c8c7c 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -252,6 +252,10 @@ kernel_do_install() {
cp .config $kerneldir/
mkdir -p $kerneldir/include/config
cp include/config/kernel.release 
$kerneldir/include/config/kernel.release
+   if [ -e include/linux/version.h ]; then
+   mkdir -p $kerneldir/include/linux
+   cp include/linux/version.h $kerneldir/include/linux/version.h
+   fi
 
# As of Linux kernel version 3.0.1, the clean target removes
# arch/powerpc/lib/crtsavres.o which is present in
-- 
2.1.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core