aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorHe Zhe <zhe.he@windriver.com>2014-10-21 17:47:44 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-10-24 17:31:58 +0100
commitf2f72f8ff623d24fffbb1b0ad40bc08f05ff31dd (patch)
treef7344dea32d3cacbafcfb7b7f843e12813b48a4c /meta/classes
parent643597a5c432b2e02033d0cefa3ba4da980d078f (diff)
downloadopenembedded-core-contrib-f2f72f8ff623d24fffbb1b0ad40bc08f05ff31dd.tar.gz
openembedded-core-contrib-f2f72f8ff623d24fffbb1b0ad40bc08f05ff31dd.tar.bz2
openembedded-core-contrib-f2f72f8ff623d24fffbb1b0ad40bc08f05ff31dd.zip
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@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/kernel.bbclass1
1 files changed, 1 insertions, 0 deletions
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"
#