summaryrefslogtreecommitdiffstats
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:36:16 +0100
commit4c222d3a67bae265ff42b448ef4a643b0131e578 (patch)
treed9fbe6eda760be3428e8472a1a48fea483922816 /meta/classes
parentb05755c6efadd3eb1f7842d4909c6f8752eb0538 (diff)
downloadpoky-4c222d3a67bae265ff42b448ef4a643b0131e578.tar.gz
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. (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>
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() {
213 # 213 #
214 kerneldir=${D}${KERNEL_SRC_PATH} 214 kerneldir=${D}${KERNEL_SRC_PATH}
215 install -d $kerneldir 215 install -d $kerneldir
216 mkdir -p ${D}/lib/modules/${KERNEL_VERSION}
216 ln -sf ${KERNEL_SRC_PATH} "${D}/lib/modules/${KERNEL_VERSION}/build" 217 ln -sf ${KERNEL_SRC_PATH} "${D}/lib/modules/${KERNEL_VERSION}/build"
217 218
218 # 219 #