linux-ti-staging: Work around to avoid race condition with external module
PATCH 1/1 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_3.14.bb | 4 ++++ 1 file changed, 4 insertions(+)
recipes-kernel/linux/linux-ti-staging_3.14.bb +4 -0
@@ -65,3 +65,7 @@ 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}/ +}
Signature · 1 line
1.9.1
Hi,
this work around introduces another race condition, as you have to make
sure every external module recipe depends on do_compile_kernelmodules, and not shared_workdir.
Regards,
Stefan
Quoted 26 lines · Sam Nelson
- 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-coreSigned-off-by Sam Nelson <[email protected]>--- recipes-kernel/linux/linux-ti-staging_3.14.bb | 4 ++++ 1 file changed, 4 insertions(+)recipes-kernel/linux/linux-ti-staging_3.14.bb +4
-0@@ -65,3 +65,7 @@ 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}/ +}
Stefan,
Yes, indeed, thanks.
Sam,
You only picked up part of the fix:
http://cgit.openembedded.org/openembedded-core/commit/?id=afcea61e8eb39234d336c706fdfd4680dea7c060
I don't want to overlay the entire module-base.bbclass, so I guess for our problematic out-of-tree modules we can just add this to their recipes:
do_configure[depends] += "virtual/kernel:do_compile_kernelmodules"
Signature · 1 line
Denys
Quoted 42 lines · Stefan Müller-Klieser
Hi,
this work around introduces another race condition, as you have to make sure every external module recipe depends on
do_compile_kernelmodules, and notshared_workdir.Regards,
StefanQuoted 26 lines · Sam Nelson
- 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-coreSigned-off-by Sam Nelson <[email protected]>--- recipes-kernel/linux/linux-ti-staging_3.14.bb | 4 ++++ 1 file changed, 4 insertions(+)recipes-kernel/linux/linux-ti-staging_3.14.bb +4
-0@@ -65,3 +65,7 @@ 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}/ +}Signature · 4 lines
_______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
Ok. I will go ahead send an update to the one affected module to take care of the other part. With regards,
Sam
Quoted 74 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, December 15, 2015 11:33 AM
To: Stefan Müller-Klieser
Cc: Nelson, Sam; [email protected]
Subject: Re: [meta-ti] [PATCH] linux-ti-staging: Work around to avoid race condition with external moduleStefan,
Yes, indeed, thanks.
Sam,
You only picked up part of the fix:
http://cgit.openembedded.org/openembedded-
core/commit/?id=afcea61e8eb39234d336c706fdfd4680dea7c060I don't want to overlay the entire module-base.bbclass, so I guess for our problematic out-of-tree modules we can just add this to their recipes:
do_configure[depends] += "virtual/kernel:do_compile_kernelmodules"
--
DenysQuoted 19 lines · Stefan Müller-Klieser
Hi,
this work around introduces another race condition, as you have to make sure every external module recipe depends on
do_compile_kernelmodules, and notshared_workdir.Regards,
StefanQuoted 8 lines · Sam Nelson
- 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-coreQuoted 6 lines
recipes-
Quoted 6 lines
Signed-off-by Sam Nelson <[email protected]>--- recipes-kernel/linux/linux-ti-staging_3.14.bb | 4 ++++ 1 file changed, 4 insertions(+)recipes- renamed from recipes-kernel/linux/linux-ti-staging_3.14.bb +0
-0
kernel/linux/linux-ti-staging_3.14.bbQuoted 5 lines
recipes-kernel/linux/linux-ti-staging_3.14.bb KERNEL_GIT_PROTOCOL = "git" · line 65
Quoted 5 lines
index 54530e4..88950ae 100644
recipes-kernel/linux/linux-ti-staging_3.14.bb +0
-0@@ -65,3 +65,7 @@ KERNEL_GIT_PROTOCOL = "git" SRC_URI +="${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \
Quoted 12 lines
recipes-kernel/linux/linux-ti-staging_3.14.bb KERNEL_GIT_PROTOCOL = "git" · line 71
Quoted 7 lines
recipes-kernel/linux/linux-ti-staging_3.14.bb +4
-0file://defconfig \ " + +do_compile_kernelmodules_append() { + cp Module.symvers ${STAGING_KERNEL_BUILDDIR}/ +}--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti