[OE-core] [PATCH] kernel-devsrc: missing tools for building modules

Jian Liu jian.liu at windriver.com
Wed Jul 1 06:16:56 UTC 2015


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 at 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




More information about the Openembedded-core mailing list