From f2f72f8ff623d24fffbb1b0ad40bc08f05ff31dd Mon Sep 17 00:00:00 2001 From: He Zhe Date: Tue, 21 Oct 2014 17:47:44 +0800 Subject: 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 Signed-off-by: Ross Burton --- meta/classes/kernel.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index f300fa3eb6..fa06c3aae6 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" # -- cgit 1.2.3-korg