* Re: [PATCH] kernel.bbclass: Preserve generated headers
2012-07-31 15:10 [PATCH] kernel.bbclass: Preserve generated headers Khem Raj
@ 2012-07-31 15:16 ` Bruce Ashfield
2012-07-31 16:19 ` Darren Hart
2012-07-31 16:18 ` Darren Hart
` (3 subsequent siblings)
4 siblings, 1 reply; 10+ messages in thread
From: Bruce Ashfield @ 2012-07-31 15:16 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Tue, Jul 31, 2012 at 11:10 AM, Khem Raj <raj.khem@gmail.com> wrote:
> asm/unistd.h includes asm/unistd_64.h on x86_64
> and asm/unistd_32.h on i386 but these files are
> generated files in 3.4 and when we do 'make clean' they get
> deleted and it shows up as an error when building
> external modules. May be its a 3.4 kernel bug may be not
> but make clean should have left the tree in
> a shape to build modules but it does not.
>
> Probably we should run make modules_prepare after having
> run make clean.
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
> meta/classes/kernel.bbclass | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index b19ed4c..4ac3d48 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -197,6 +197,8 @@ kernel_do_install() {
> if [ -f include/generated/bounds.h ]; then
> cp include/generated/bounds.h $kerneldir/include/generated/bounds.h
> fi
> + mkdir -p $kerneldir/arch/${ARCH}/include/generated/
> + cp -fR arch/${ARCH}/include/generated/* $kerneldir/arch/${ARCH}/include/generated/
If we take the blanket protection, we should be able to drop the
bounds.h specific
case a the same time .. right ?
I'm ok with this, but I can run a test with 'make modules_prepare'
being run if you
already haven't.
Cheers,
Bruce
>
> # Remove the following binaries which cause strip or arch QA errors
> # during do_package for cross-compiled platforms
> --
> 1.7.5.4
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
--
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH] kernel.bbclass: Preserve generated headers
2012-07-31 15:16 ` Bruce Ashfield
@ 2012-07-31 16:19 ` Darren Hart
2012-07-31 16:31 ` Bruce Ashfield
0 siblings, 1 reply; 10+ messages in thread
From: Darren Hart @ 2012-07-31 16:19 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 07/31/2012 08:16 AM, Bruce Ashfield wrote:
> On Tue, Jul 31, 2012 at 11:10 AM, Khem Raj <raj.khem@gmail.com> wrote:
>> asm/unistd.h includes asm/unistd_64.h on x86_64
>> and asm/unistd_32.h on i386 but these files are
>> generated files in 3.4 and when we do 'make clean' they get
>> deleted and it shows up as an error when building
>> external modules. May be its a 3.4 kernel bug may be not
>> but make clean should have left the tree in
>> a shape to build modules but it does not.
>>
>> Probably we should run make modules_prepare after having
>> run make clean.
>>
>> Signed-off-by: Khem Raj <raj.khem@gmail.com>
>> ---
>> meta/classes/kernel.bbclass | 2 ++
>> 1 files changed, 2 insertions(+), 0 deletions(-)
>>
>> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
>> index b19ed4c..4ac3d48 100644
>> --- a/meta/classes/kernel.bbclass
>> +++ b/meta/classes/kernel.bbclass
>> @@ -197,6 +197,8 @@ kernel_do_install() {
>> if [ -f include/generated/bounds.h ]; then
>> cp include/generated/bounds.h $kerneldir/include/generated/bounds.h
>> fi
>> + mkdir -p $kerneldir/arch/${ARCH}/include/generated/
>> + cp -fR arch/${ARCH}/include/generated/* $kerneldir/arch/${ARCH}/include/generated/
>
> If we take the blanket protection, we should be able to drop the
> bounds.h specific
> case a the same time .. right ?
No, different dirs (one is ARCH)
>
> I'm ok with this, but I can run a test with 'make modules_prepare'
> being run if you
> already haven't.
We really can't, this builds scripts, which we don't want as this
results in native binaries being installed on the target :(
We need some cross-build-system-friendly make targets for this.
>
> Cheers,
>
> Bruce
>
>>
>> # Remove the following binaries which cause strip or arch QA errors
>> # during do_package for cross-compiled platforms
>> --
>> 1.7.5.4
>>
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
>
>
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Technical Lead - Linux Kernel
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH] kernel.bbclass: Preserve generated headers
2012-07-31 16:19 ` Darren Hart
@ 2012-07-31 16:31 ` Bruce Ashfield
2012-07-31 16:44 ` Darren Hart
0 siblings, 1 reply; 10+ messages in thread
From: Bruce Ashfield @ 2012-07-31 16:31 UTC (permalink / raw)
To: Darren Hart; +Cc: Patches and discussions about the oe-core layer
On Tue, Jul 31, 2012 at 12:19 PM, Darren Hart <dvhart@linux.intel.com> wrote:
>
>
> On 07/31/2012 08:16 AM, Bruce Ashfield wrote:
>> On Tue, Jul 31, 2012 at 11:10 AM, Khem Raj <raj.khem@gmail.com> wrote:
>>> asm/unistd.h includes asm/unistd_64.h on x86_64
>>> and asm/unistd_32.h on i386 but these files are
>>> generated files in 3.4 and when we do 'make clean' they get
>>> deleted and it shows up as an error when building
>>> external modules. May be its a 3.4 kernel bug may be not
>>> but make clean should have left the tree in
>>> a shape to build modules but it does not.
>>>
>>> Probably we should run make modules_prepare after having
>>> run make clean.
>>>
>>> Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>> ---
>>> meta/classes/kernel.bbclass | 2 ++
>>> 1 files changed, 2 insertions(+), 0 deletions(-)
>>>
>>> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
>>> index b19ed4c..4ac3d48 100644
>>> --- a/meta/classes/kernel.bbclass
>>> +++ b/meta/classes/kernel.bbclass
>>> @@ -197,6 +197,8 @@ kernel_do_install() {
>>> if [ -f include/generated/bounds.h ]; then
>>> cp include/generated/bounds.h $kerneldir/include/generated/bounds.h
>>> fi
>>> + mkdir -p $kerneldir/arch/${ARCH}/include/generated/
>>> + cp -fR arch/${ARCH}/include/generated/* $kerneldir/arch/${ARCH}/include/generated/
>>
>> If we take the blanket protection, we should be able to drop the
>> bounds.h specific
>> case a the same time .. right ?
>
> No, different dirs (one is ARCH)
Aha. I missed that, but can we back up a directory and take everything from
generated/* ? .. assuming your question about binaries being in those
directory is "no".
Cheers,
Bruce
>
>>
>> I'm ok with this, but I can run a test with 'make modules_prepare'
>> being run if you
>> already haven't.
>
> We really can't, this builds scripts, which we don't want as this
> results in native binaries being installed on the target :(
>
> We need some cross-build-system-friendly make targets for this.
>
>>
>> Cheers,
>>
>> Bruce
>>
>>>
>>> # Remove the following binaries which cause strip or arch QA errors
>>> # during do_package for cross-compiled platforms
>>> --
>>> 1.7.5.4
>>>
>>>
>>> _______________________________________________
>>> Openembedded-core mailing list
>>> Openembedded-core@lists.openembedded.org
>>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>>
>>
>>
>
> --
> Darren Hart
> Intel Open Source Technology Center
> Yocto Project - Technical Lead - Linux Kernel
--
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH] kernel.bbclass: Preserve generated headers
2012-07-31 16:31 ` Bruce Ashfield
@ 2012-07-31 16:44 ` Darren Hart
0 siblings, 0 replies; 10+ messages in thread
From: Darren Hart @ 2012-07-31 16:44 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 07/31/2012 09:31 AM, Bruce Ashfield wrote:
> On Tue, Jul 31, 2012 at 12:19 PM, Darren Hart <dvhart@linux.intel.com> wrote:
>>
>>
>> On 07/31/2012 08:16 AM, Bruce Ashfield wrote:
>>> On Tue, Jul 31, 2012 at 11:10 AM, Khem Raj <raj.khem@gmail.com> wrote:
>>>> asm/unistd.h includes asm/unistd_64.h on x86_64
>>>> and asm/unistd_32.h on i386 but these files are
>>>> generated files in 3.4 and when we do 'make clean' they get
>>>> deleted and it shows up as an error when building
>>>> external modules. May be its a 3.4 kernel bug may be not
>>>> but make clean should have left the tree in
>>>> a shape to build modules but it does not.
>>>>
>>>> Probably we should run make modules_prepare after having
>>>> run make clean.
>>>>
>>>> Signed-off-by: Khem Raj <raj.khem@gmail.com>
>>>> ---
>>>> meta/classes/kernel.bbclass | 2 ++
>>>> 1 files changed, 2 insertions(+), 0 deletions(-)
>>>>
>>>> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
>>>> index b19ed4c..4ac3d48 100644
>>>> --- a/meta/classes/kernel.bbclass
>>>> +++ b/meta/classes/kernel.bbclass
>>>> @@ -197,6 +197,8 @@ kernel_do_install() {
>>>> if [ -f include/generated/bounds.h ]; then
>>>> cp include/generated/bounds.h $kerneldir/include/generated/bounds.h
>>>> fi
>>>> + mkdir -p $kerneldir/arch/${ARCH}/include/generated/
>>>> + cp -fR arch/${ARCH}/include/generated/* $kerneldir/arch/${ARCH}/include/generated/
>>>
>>> If we take the blanket protection, we should be able to drop the
>>> bounds.h specific
>>> case a the same time .. right ?
>>
>> No, different dirs (one is ARCH)
>
> Aha. I missed that, but can we back up a directory and take everything from
> generated/* ? .. assuming your question about binaries being in those
> directory is "no".
It isn't a "no" for the include/generated dir, just not sure about ARCH.
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Technical Lead - Linux Kernel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] kernel.bbclass: Preserve generated headers
2012-07-31 15:10 [PATCH] kernel.bbclass: Preserve generated headers Khem Raj
2012-07-31 15:16 ` Bruce Ashfield
@ 2012-07-31 16:18 ` Darren Hart
2012-08-08 14:36 ` Khem Raj
` (2 subsequent siblings)
4 siblings, 0 replies; 10+ messages in thread
From: Darren Hart @ 2012-07-31 16:18 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 07/31/2012 08:10 AM, Khem Raj wrote:
> asm/unistd.h includes asm/unistd_64.h on x86_64
> and asm/unistd_32.h on i386 but these files are
> generated files in 3.4 and when we do 'make clean' they get
> deleted and it shows up as an error when building
> external modules. May be its a 3.4 kernel bug may be not
> but make clean should have left the tree in
> a shape to build modules but it does not.
>
> Probably we should run make modules_prepare after having
> run make clean.
There just doesn't seem to be a good way to do what we need to do here.
modules_prepare will build scripts, which we don't want, but clean kills
all the generated files.
This sounds like a good Linux kernel bug for us to to take a look at
fixing upstream:
make modules_prepare_cross
or something simlar, so we can get what we need with proper make targets
and avoid this constant cherry picking of files.
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
> meta/classes/kernel.bbclass | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index b19ed4c..4ac3d48 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -197,6 +197,8 @@ kernel_do_install() {
> if [ -f include/generated/bounds.h ]; then
> cp include/generated/bounds.h $kerneldir/include/generated/bounds.h
> fi
> + mkdir -p $kerneldir/arch/${ARCH}/include/generated/
> + cp -fR arch/${ARCH}/include/generated/* $kerneldir/arch/${ARCH}/include/generated/
Do you need all the generated files in arch/$ARCH/include/generated? Are
there any binaries in there?
>
> # Remove the following binaries which cause strip or arch QA errors
> # during do_package for cross-compiled platforms
>
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Technical Lead - Linux Kernel
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH] kernel.bbclass: Preserve generated headers
2012-07-31 15:10 [PATCH] kernel.bbclass: Preserve generated headers Khem Raj
2012-07-31 15:16 ` Bruce Ashfield
2012-07-31 16:18 ` Darren Hart
@ 2012-08-08 14:36 ` Khem Raj
2012-08-16 18:22 ` Saul Wold
2012-08-20 16:57 ` Saul Wold
4 siblings, 0 replies; 10+ messages in thread
From: Khem Raj @ 2012-08-08 14:36 UTC (permalink / raw)
To: openembedded-core
ping
On Tue, Jul 31, 2012 at 8:10 AM, Khem Raj <raj.khem@gmail.com> wrote:
> asm/unistd.h includes asm/unistd_64.h on x86_64
> and asm/unistd_32.h on i386 but these files are
> generated files in 3.4 and when we do 'make clean' they get
> deleted and it shows up as an error when building
> external modules. May be its a 3.4 kernel bug may be not
> but make clean should have left the tree in
> a shape to build modules but it does not.
>
> Probably we should run make modules_prepare after having
> run make clean.
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
> meta/classes/kernel.bbclass | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index b19ed4c..4ac3d48 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -197,6 +197,8 @@ kernel_do_install() {
> if [ -f include/generated/bounds.h ]; then
> cp include/generated/bounds.h $kerneldir/include/generated/bounds.h
> fi
> + mkdir -p $kerneldir/arch/${ARCH}/include/generated/
> + cp -fR arch/${ARCH}/include/generated/* $kerneldir/arch/${ARCH}/include/generated/
>
> # Remove the following binaries which cause strip or arch QA errors
> # during do_package for cross-compiled platforms
> --
> 1.7.5.4
>
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH] kernel.bbclass: Preserve generated headers
2012-07-31 15:10 [PATCH] kernel.bbclass: Preserve generated headers Khem Raj
` (2 preceding siblings ...)
2012-08-08 14:36 ` Khem Raj
@ 2012-08-16 18:22 ` Saul Wold
2012-08-16 18:50 ` Saul Wold
2012-08-20 16:57 ` Saul Wold
4 siblings, 1 reply; 10+ messages in thread
From: Saul Wold @ 2012-08-16 18:22 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 07/31/2012 08:10 AM, Khem Raj wrote:
> asm/unistd.h includes asm/unistd_64.h on x86_64
> and asm/unistd_32.h on i386 but these files are
> generated files in 3.4 and when we do 'make clean' they get
> deleted and it shows up as an error when building
> external modules. May be its a 3.4 kernel bug may be not
> but make clean should have left the tree in
> a shape to build modules but it does not.
>
> Probably we should run make modules_prepare after having
> run make clean.
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
> meta/classes/kernel.bbclass | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index b19ed4c..4ac3d48 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -197,6 +197,8 @@ kernel_do_install() {
> if [ -f include/generated/bounds.h ]; then
> cp include/generated/bounds.h $kerneldir/include/generated/bounds.h
> fi
> + mkdir -p $kerneldir/arch/${ARCH}/include/generated/
> + cp -fR arch/${ARCH}/include/generated/* $kerneldir/arch/${ARCH}/include/generated/
>
> # Remove the following binaries which cause strip or arch QA errors
> # during do_package for cross-compiled platforms
>
Merged into OE-Core
Thanks
Sau!
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH] kernel.bbclass: Preserve generated headers
2012-08-16 18:22 ` Saul Wold
@ 2012-08-16 18:50 ` Saul Wold
0 siblings, 0 replies; 10+ messages in thread
From: Saul Wold @ 2012-08-16 18:50 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 08/16/2012 11:22 AM, Saul Wold wrote:
> On 07/31/2012 08:10 AM, Khem Raj wrote:
>> asm/unistd.h includes asm/unistd_64.h on x86_64
>> and asm/unistd_32.h on i386 but these files are
>> generated files in 3.4 and when we do 'make clean' they get
>> deleted and it shows up as an error when building
>> external modules. May be its a 3.4 kernel bug may be not
>> but make clean should have left the tree in
>> a shape to build modules but it does not.
>>
>> Probably we should run make modules_prepare after having
>> run make clean.
>>
>> Signed-off-by: Khem Raj <raj.khem@gmail.com>
>> ---
>> meta/classes/kernel.bbclass | 2 ++
>> 1 files changed, 2 insertions(+), 0 deletions(-)
>>
>> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
>> index b19ed4c..4ac3d48 100644
>> --- a/meta/classes/kernel.bbclass
>> +++ b/meta/classes/kernel.bbclass
>> @@ -197,6 +197,8 @@ kernel_do_install() {
>> if [ -f include/generated/bounds.h ]; then
>> cp include/generated/bounds.h
>> $kerneldir/include/generated/bounds.h
>> fi
>> + mkdir -p $kerneldir/arch/${ARCH}/include/generated/
>> + cp -fR arch/${ARCH}/include/generated/*
>> $kerneldir/arch/${ARCH}/include/generated/
>>
>> # Remove the following binaries which cause strip or arch QA errors
>> # during do_package for cross-compiled platforms
>>
> Merged into OE-Core
>
Oops not yet! I was scanning the wrong list!
Sorry
Sau!
> Thanks
> Sau!
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] kernel.bbclass: Preserve generated headers
2012-07-31 15:10 [PATCH] kernel.bbclass: Preserve generated headers Khem Raj
` (3 preceding siblings ...)
2012-08-16 18:22 ` Saul Wold
@ 2012-08-20 16:57 ` Saul Wold
4 siblings, 0 replies; 10+ messages in thread
From: Saul Wold @ 2012-08-20 16:57 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 07/31/2012 08:10 AM, Khem Raj wrote:
> asm/unistd.h includes asm/unistd_64.h on x86_64
> and asm/unistd_32.h on i386 but these files are
> generated files in 3.4 and when we do 'make clean' they get
> deleted and it shows up as an error when building
> external modules. May be its a 3.4 kernel bug may be not
> but make clean should have left the tree in
> a shape to build modules but it does not.
>
> Probably we should run make modules_prepare after having
> run make clean.
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
> meta/classes/kernel.bbclass | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index b19ed4c..4ac3d48 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -197,6 +197,8 @@ kernel_do_install() {
> if [ -f include/generated/bounds.h ]; then
> cp include/generated/bounds.h $kerneldir/include/generated/bounds.h
> fi
> + mkdir -p $kerneldir/arch/${ARCH}/include/generated/
> + cp -fR arch/${ARCH}/include/generated/* $kerneldir/arch/${ARCH}/include/generated/
>
> # Remove the following binaries which cause strip or arch QA errors
> # during do_package for cross-compiled platforms
>
Merged into OE-Core
Thanks
Sau!
^ permalink raw reply [flat|nested] 10+ messages in thread