[oe-commits] He Zhe : kernel.bbclass: Create modules directory even if there is no modules installed

git at git.openembedded.org git at git.openembedded.org
Fri Oct 24 16:36:50 UTC 2014


Module: openembedded-core.git
Branch: master
Commit: f2f72f8ff623d24fffbb1b0ad40bc08f05ff31dd
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=f2f72f8ff623d24fffbb1b0ad40bc08f05ff31dd

Author: He Zhe <zhe.he at windriver.com>
Date:   Tue Oct 21 17:47:44 2014 +0800

kernel.bbclass: Create modules directory even if there is no modules installed

During kernel_do_install it needs to make symbol link at
${D}/lib/modules/${KERNEL_VERSION}/build, but there will not be
${D}/lib/modules/${KERNEL_VERSION} if there is no modules installed for current
image, which will result in a build failure.
Add "mkdir -p ${D}/lib/modules/${KERNEL_VERSION}" here to avoid this failure
and the need of similar changes in other scripts that also expect it to exist.

Signed-off-by: He Zhe <zhe.he at windriver.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>

---

 meta/classes/kernel.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index f300fa3..fa06c3a 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -213,6 +213,7 @@ kernel_do_install() {
 	#
 	kerneldir=${D}${KERNEL_SRC_PATH}
 	install -d $kerneldir
+	mkdir -p ${D}/lib/modules/${KERNEL_VERSION}
 	ln -sf ${KERNEL_SRC_PATH} "${D}/lib/modules/${KERNEL_VERSION}/build"
 
 	#



More information about the Openembedded-commits mailing list