Skip to contentSkip to conversation

Sam Nelson : linux-ti-staging: Work around to avoid race condition with external module

PATCH Arago Project git 1 participant 1 message Feb 1, 2016

lore
Share & tools
lore
#0 lore raw
Module: meta-ti
Branch: fido
Commit: a34131462270ed70116d264495e8d13586956b6e
URL:    http://arago-project.org/git/meta-ti.git?a=commit;h=a34131462270ed70116d264495e8d13586956b6e
Author: Sam Nelson <[email protected]>
Date:   Fri Jan 29 02:29:41 2016 +0000

linux-ti-staging: Work around to avoid race condition with external module

Currently there is an issue with compiling external kernel module which depends on symbols from another kernel module which is part of the list of modules configured to be built as modules in the default config.

This work around allows to avoid the issue by copying the module symbols to the kernel directory after making the kernel modules build.

This issue is already fixed in oe-core: master branch as of date
- this is just work around before updating to latest oe-core

---

 recipes-kernel/linux/linux-ti-staging_4.1.bb |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
recipes-kernel/linux/linux-ti-staging_4.1.bb +4 -0
index 59805c6..dfe9a44 100644
@@ -84,3 +84,7 @@ KERNEL_GIT_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git"
 KERNEL_GIT_PROTOCOL = "git"
 SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \
             file://defconfig"
+
+do_compile_kernelmodules_append() {
+	cp Module.symvers ${STAGING_KERNEL_BUILDDIR}/
+}