]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: Create modules directory even if there is no modules installed
authorHe Zhe <zhe.he@windriver.com>
Tue, 21 Oct 2014 09:47:44 +0000 (17:47 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 31 Dec 2014 10:16:59 +0000 (10:16 +0000)
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.

(From OE-Core rev: f2f72f8ff623d24fffbb1b0ad40bc08f05ff31dd)

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/kernel.bbclass

index f300fa3eb69a34c256f996667317aadda0133737..fa06c3aae6f3a2c5b4dfa1bdb48812c97955c551 100644 (file)
@@ -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"
 
        #