* [PATCH] kernel.bbclass: restore kernel-abiversion file
@ 2011-06-22 15:41 Koen Kooi
2011-06-22 18:13 ` Darren Hart
2011-06-23 12:35 ` Richard Purdie
0 siblings, 2 replies; 5+ messages in thread
From: Koen Kooi @ 2011-06-22 15:41 UTC (permalink / raw)
To: openembedded-core; +Cc: dvhart, Koen Kooi
This fixes external module recipes that need $KERNEL_VERSION. It got removed by
commit a9d41062e24a6b99661b3a5256f369b557433607
Author: Darren Hart <dvhart@linux.intel.com>
Date: Tue Mar 8 17:09:10 2011 -0800
kernel/bbclass: rework kernel and module classes to allow for building out-of-tree modules
seemingly as an oversight.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
meta/classes/kernel.bbclass | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 1bb69f5..8f9f108 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -123,6 +123,12 @@ kernel_do_install() {
install -d $kerneldir
#
+ # Store the kernel version in sysroots for module-base.bbclass
+ #
+
+ echo "${KERNEL_VERSION}" > $kerneldir/kernel-abiversion
+
+ #
# Copy the entire source tree. In case an external build directory is
# used, copy the build directory over first, then copy over the source
# dir. This ensures the original Makefiles are used and not the
--
1.6.6.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] kernel.bbclass: restore kernel-abiversion file
2011-06-22 15:41 [PATCH] kernel.bbclass: restore kernel-abiversion file Koen Kooi
@ 2011-06-22 18:13 ` Darren Hart
2011-06-22 18:18 ` Koen Kooi
2011-06-23 12:35 ` Richard Purdie
1 sibling, 1 reply; 5+ messages in thread
From: Darren Hart @ 2011-06-22 18:13 UTC (permalink / raw)
To: Koen Kooi; +Cc: openembedded-core
On 06/22/2011 08:41 AM, Koen Kooi wrote:
> This fixes external module recipes that need $KERNEL_VERSION. It got removed by
>
> commit a9d41062e24a6b99661b3a5256f369b557433607
> Author: Darren Hart <dvhart@linux.intel.com>
> Date: Tue Mar 8 17:09:10 2011 -0800
>
> kernel/bbclass: rework kernel and module classes to allow for building out-of-tree modules
>
> seemingly as an oversight.
>
> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
> ---
> meta/classes/kernel.bbclass | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index 1bb69f5..8f9f108 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -123,6 +123,12 @@ kernel_do_install() {
> install -d $kerneldir
>
> #
> + # Store the kernel version in sysroots for module-base.bbclass
> + #
> +
> + echo "${KERNEL_VERSION}" > $kerneldir/kernel-abiversion
From everything I can see this is an openembedded construct - which
external modules need this? An example recipe I can review?
I'd like to understand this better as I don't like the idea of depending
on an arbitrary file that isn't part of the kernel build system to build
modules.
It seems to me that these modules should be able to DEPEND on something
provided by the kernel recipes, rather than checking the contents of a
file stuck in the build tree.
--
Darren
> +
> + #
> # Copy the entire source tree. In case an external build directory is
> # used, copy the build directory over first, then copy over the source
> # dir. This ensures the original Makefiles are used and not the
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] kernel.bbclass: restore kernel-abiversion file
2011-06-22 18:13 ` Darren Hart
@ 2011-06-22 18:18 ` Koen Kooi
2011-06-22 19:08 ` Darren Hart
0 siblings, 1 reply; 5+ messages in thread
From: Koen Kooi @ 2011-06-22 18:18 UTC (permalink / raw)
To: Darren Hart; +Cc: openembedded-core
Op 22 jun 2011, om 20:13 heeft Darren Hart het volgende geschreven:
>
>
> On 06/22/2011 08:41 AM, Koen Kooi wrote:
>> This fixes external module recipes that need $KERNEL_VERSION. It got removed by
>>
>> commit a9d41062e24a6b99661b3a5256f369b557433607
>> Author: Darren Hart <dvhart@linux.intel.com>
>> Date: Tue Mar 8 17:09:10 2011 -0800
>>
>> kernel/bbclass: rework kernel and module classes to allow for building out-of-tree modules
>>
>> seemingly as an oversight.
>>
>> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
>> ---
>> meta/classes/kernel.bbclass | 6 ++++++
>> 1 files changed, 6 insertions(+), 0 deletions(-)
>>
>> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
>> index 1bb69f5..8f9f108 100644
>> --- a/meta/classes/kernel.bbclass
>> +++ b/meta/classes/kernel.bbclass
>> @@ -123,6 +123,12 @@ kernel_do_install() {
>> install -d $kerneldir
>>
>> #
>> + # Store the kernel version in sysroots for module-base.bbclass
>> + #
>> +
>> + echo "${KERNEL_VERSION}" > $kerneldir/kernel-abiversion
>
> From everything I can see this is an openembedded construct - which
> external modules need this? An example recipe I can review?
>
> I'd like to understand this better as I don't like the idea of depending
> on an arbitrary file that isn't part of the kernel build system to build
> modules.
>
> It seems to me that these modules should be able to DEPEND on something
> provided by the kernel recipes, rather than checking the contents of a
> file stuck in the build tree.
It's used in the stock module.bbclass thru module-base.bbclass:
https://github.com/openembedded/oe-core/blob/master/meta/classes/module-base.bbclass
An example of a recipe that's using it:
http://git.angstrom-distribution.org/cgi-bin/cgit.cgi/meta-texasinstruments/tree/recipes-bsp/powervr-drivers/omap3-sgx-modules_1.6.16.3977.bb
For various reasons the makefile can't be trusted or patched, so we can't use KBuild to get the version for us.
regards,
Koen
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] kernel.bbclass: restore kernel-abiversion file
2011-06-22 18:18 ` Koen Kooi
@ 2011-06-22 19:08 ` Darren Hart
0 siblings, 0 replies; 5+ messages in thread
From: Darren Hart @ 2011-06-22 19:08 UTC (permalink / raw)
To: Koen Kooi; +Cc: openembedded-core
On 06/22/2011 11:18 AM, Koen Kooi wrote:
>
> Op 22 jun 2011, om 20:13 heeft Darren Hart het volgende geschreven:
>
>>
>>
>> On 06/22/2011 08:41 AM, Koen Kooi wrote:
>>> This fixes external module recipes that need $KERNEL_VERSION. It got removed by
>>>
>>> commit a9d41062e24a6b99661b3a5256f369b557433607
>>> Author: Darren Hart <dvhart@linux.intel.com>
>>> Date: Tue Mar 8 17:09:10 2011 -0800
>>>
>>> kernel/bbclass: rework kernel and module classes to allow for building out-of-tree modules
>>>
>>> seemingly as an oversight.
It was indeed unintentional. There is enough history with this mechanism
that a change here should be intentional and not an oversight as you
pointed out.
>>>
>>> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Acked-by: Darren Hart <dvhart@linux.intel.com>
>>> ---
>>> meta/classes/kernel.bbclass | 6 ++++++
>>> 1 files changed, 6 insertions(+), 0 deletions(-)
>>>
>>> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
>>> index 1bb69f5..8f9f108 100644
>>> --- a/meta/classes/kernel.bbclass
>>> +++ b/meta/classes/kernel.bbclass
>>> @@ -123,6 +123,12 @@ kernel_do_install() {
>>> install -d $kerneldir
>>>
>>> #
>>> + # Store the kernel version in sysroots for module-base.bbclass
>>> + #
>>> +
>>> + echo "${KERNEL_VERSION}" > $kerneldir/kernel-abiversion
>>
>> From everything I can see this is an openembedded construct - which
>> external modules need this? An example recipe I can review?
>>
>> I'd like to understand this better as I don't like the idea of depending
>> on an arbitrary file that isn't part of the kernel build system to build
>> modules.
>>
>> It seems to me that these modules should be able to DEPEND on something
>> provided by the kernel recipes, rather than checking the contents of a
>> file stuck in the build tree.
>
> It's used in the stock module.bbclass thru module-base.bbclass:
>
> https://github.com/openembedded/oe-core/blob/master/meta/classes/module-base.bbclass
>
> An example of a recipe that's using it:
>
> http://git.angstrom-distribution.org/cgi-bin/cgit.cgi/meta-texasinstruments/tree/recipes-bsp/powervr-drivers/omap3-sgx-modules_1.6.16.3977.bb
>
> For various reasons the makefile can't be trusted or patched, so we can't use KBuild to get the version for us.
>
> regards,
>
> Koen
>
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] kernel.bbclass: restore kernel-abiversion file
2011-06-22 15:41 [PATCH] kernel.bbclass: restore kernel-abiversion file Koen Kooi
2011-06-22 18:13 ` Darren Hart
@ 2011-06-23 12:35 ` Richard Purdie
1 sibling, 0 replies; 5+ messages in thread
From: Richard Purdie @ 2011-06-23 12:35 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: dvhart, Koen Kooi
On Wed, 2011-06-22 at 17:41 +0200, Koen Kooi wrote:
> This fixes external module recipes that need $KERNEL_VERSION. It got removed by
>
> commit a9d41062e24a6b99661b3a5256f369b557433607
> Author: Darren Hart <dvhart@linux.intel.com>
> Date: Tue Mar 8 17:09:10 2011 -0800
>
> kernel/bbclass: rework kernel and module classes to allow for building out-of-tree modules
>
> seemingly as an oversight.
>
> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
> ---
> meta/classes/kernel.bbclass | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
Merged to master, thanks.
Richard
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-06-23 12:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-22 15:41 [PATCH] kernel.bbclass: restore kernel-abiversion file Koen Kooi
2011-06-22 18:13 ` Darren Hart
2011-06-22 18:18 ` Koen Kooi
2011-06-22 19:08 ` Darren Hart
2011-06-23 12:35 ` Richard Purdie
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.