Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] kernel-devsrc: missing tools for building modules
@ 2015-07-01  6:16 Jian Liu
  2015-07-01 14:48 ` Bruce Ashfield
  0 siblings, 1 reply; 3+ messages in thread
From: Jian Liu @ 2015-07-01  6:16 UTC (permalink / raw)
  To: openembedded-core

Some tools under scripts are missed and this can cause error
during building modules on the target
Build these tools by "make script".

Also handle the .debug directories.

Signed-off-by: Jian Liu <jian.liu@windriver.com>
---
 meta/recipes-kernel/linux/kernel-devsrc.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb
index dd65788..ff03d4e 100644
--- a/meta/recipes-kernel/linux/kernel-devsrc.bb
+++ b/meta/recipes-kernel/linux/kernel-devsrc.bb
@@ -57,6 +57,9 @@ do_install() {
         # architecture (since scripts and helpers are native format).
         KBUILD_OUTPUT="$kerneldir"
         oe_runmake -C $kerneldir CC="${KERNEL_CC}" LD="${KERNEL_LD}" clean _mrproper_scripts
+        # Tools under scripts/ is necessary.
+        cross_tool_prefix=${@d.getVar('TARGET_RAW_PREFIX', True) or ""}
+        make -C $kerneldir CROSS_COMPILE=$cross_tool_prefix scripts
 
         # As of Linux kernel version 3.0.1, the clean target removes
         # arch/powerpc/lib/crtsavres.o which is present in
@@ -71,6 +74,7 @@ do_install() {
 # Ensure we don't race against "make scripts" during cpio
 do_install[lockfiles] = "${TMPDIR}/kernel-scripts.lock"
 
-PACKAGES = "kernel-devsrc"
+PACKAGES = "kernel-devsrc-dbg kernel-devsrc"
+FILES_${PN}-dbg = "${KERNEL_SRC_PATH}/scripts/.debug ${KERNEL_SRC_PATH}/scripts/*/.debug"
 FILES_${PN} = "${KERNEL_SRC_PATH}"
 RDEPENDS_${PN} = "bc"
-- 
1.8.5.2.233.g932f7e4



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] kernel-devsrc: missing tools for building modules
  2015-07-01  6:16 [PATCH] kernel-devsrc: missing tools for building modules Jian Liu
@ 2015-07-01 14:48 ` Bruce Ashfield
  2015-07-02  6:31   ` Liu Jian
  0 siblings, 1 reply; 3+ messages in thread
From: Bruce Ashfield @ 2015-07-01 14:48 UTC (permalink / raw)
  To: Jian Liu; +Cc: Patches and discussions about the oe-core layer

On Wed, Jul 1, 2015 at 2:16 AM, Jian Liu <jian.liu@windriver.com> wrote:
> Some tools under scripts are missed and this can cause error
> during building modules on the target
> Build these tools by "make script".

We have a bugzilla for this, but the change was pending some other
re-organizations
of the kernel source packaging.

The problem with packing this is that we used to get QA errors since
the tools don't
match the target arch.

Can you confirm that you've built, packaged and installed this on a
non-x86 architecture ?

Bruce

>
> Also handle the .debug directories.
>
> Signed-off-by: Jian Liu <jian.liu@windriver.com>
> ---
>  meta/recipes-kernel/linux/kernel-devsrc.bb | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb
> index dd65788..ff03d4e 100644
> --- a/meta/recipes-kernel/linux/kernel-devsrc.bb
> +++ b/meta/recipes-kernel/linux/kernel-devsrc.bb
> @@ -57,6 +57,9 @@ do_install() {
>          # architecture (since scripts and helpers are native format).
>          KBUILD_OUTPUT="$kerneldir"
>          oe_runmake -C $kerneldir CC="${KERNEL_CC}" LD="${KERNEL_LD}" clean _mrproper_scripts
> +        # Tools under scripts/ is necessary.
> +        cross_tool_prefix=${@d.getVar('TARGET_RAW_PREFIX', True) or ""}
> +        make -C $kerneldir CROSS_COMPILE=$cross_tool_prefix scripts
>
>          # As of Linux kernel version 3.0.1, the clean target removes
>          # arch/powerpc/lib/crtsavres.o which is present in
> @@ -71,6 +74,7 @@ do_install() {
>  # Ensure we don't race against "make scripts" during cpio
>  do_install[lockfiles] = "${TMPDIR}/kernel-scripts.lock"
>
> -PACKAGES = "kernel-devsrc"
> +PACKAGES = "kernel-devsrc-dbg kernel-devsrc"
> +FILES_${PN}-dbg = "${KERNEL_SRC_PATH}/scripts/.debug ${KERNEL_SRC_PATH}/scripts/*/.debug"
>  FILES_${PN} = "${KERNEL_SRC_PATH}"
>  RDEPENDS_${PN} = "bc"
> --
> 1.8.5.2.233.g932f7e4
>
> --
> _______________________________________________
> 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"


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] kernel-devsrc: missing tools for building modules
  2015-07-01 14:48 ` Bruce Ashfield
@ 2015-07-02  6:31   ` Liu Jian
  0 siblings, 0 replies; 3+ messages in thread
From: Liu Jian @ 2015-07-02  6:31 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: Patches and discussions about the oe-core layer

Hi Bruce,

I test it with arm. The arch of compiled tools is still x86.
Thanks very much for your notification.

Regards!
Jian


于 2015年07月01日 22:48, Bruce Ashfield 写道:
> On Wed, Jul 1, 2015 at 2:16 AM, Jian Liu <jian.liu@windriver.com> wrote:
>> Some tools under scripts are missed and this can cause error
>> during building modules on the target
>> Build these tools by "make script".
> We have a bugzilla for this, but the change was pending some other
> re-organizations
> of the kernel source packaging.
>
> The problem with packing this is that we used to get QA errors since
> the tools don't
> match the target arch.
>
> Can you confirm that you've built, packaged and installed this on a
> non-x86 architecture ?
>
> Bruce
>
>> Also handle the .debug directories.
>>
>> Signed-off-by: Jian Liu <jian.liu@windriver.com>
>> ---
>>   meta/recipes-kernel/linux/kernel-devsrc.bb | 6 +++++-
>>   1 file changed, 5 insertions(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb
>> index dd65788..ff03d4e 100644
>> --- a/meta/recipes-kernel/linux/kernel-devsrc.bb
>> +++ b/meta/recipes-kernel/linux/kernel-devsrc.bb
>> @@ -57,6 +57,9 @@ do_install() {
>>           # architecture (since scripts and helpers are native format).
>>           KBUILD_OUTPUT="$kerneldir"
>>           oe_runmake -C $kerneldir CC="${KERNEL_CC}" LD="${KERNEL_LD}" clean _mrproper_scripts
>> +        # Tools under scripts/ is necessary.
>> +        cross_tool_prefix=${@d.getVar('TARGET_RAW_PREFIX', True) or ""}
>> +        make -C $kerneldir CROSS_COMPILE=$cross_tool_prefix scripts
>>
>>           # As of Linux kernel version 3.0.1, the clean target removes
>>           # arch/powerpc/lib/crtsavres.o which is present in
>> @@ -71,6 +74,7 @@ do_install() {
>>   # Ensure we don't race against "make scripts" during cpio
>>   do_install[lockfiles] = "${TMPDIR}/kernel-scripts.lock"
>>
>> -PACKAGES = "kernel-devsrc"
>> +PACKAGES = "kernel-devsrc-dbg kernel-devsrc"
>> +FILES_${PN}-dbg = "${KERNEL_SRC_PATH}/scripts/.debug ${KERNEL_SRC_PATH}/scripts/*/.debug"
>>   FILES_${PN} = "${KERNEL_SRC_PATH}"
>>   RDEPENDS_${PN} = "bc"
>> --
>> 1.8.5.2.233.g932f7e4
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>

-- 
Jian Liu
Email: jian.liu@windriver.com
Office Phone: 86-10-84778539



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-02  6:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-01  6:16 [PATCH] kernel-devsrc: missing tools for building modules Jian Liu
2015-07-01 14:48 ` Bruce Ashfield
2015-07-02  6:31   ` Liu Jian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox