Skip to contentSkip to conversation

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

PATCH Arago Project git 3 participants 4 messages Dec 18, 2015 – Jan 27, 2016

lore
Share & tools
lore
#0 lore raw
Module: meta-ti
Branch: fido
Commit: 4f542c3fe47a8c6be195b3c97fd83efbf930bb70
URL:    http://arago-project.org/git/meta-ti.git?a=commit;h=4f542c3fe47a8c6be195b3c97fd83efbf930bb70
Author: Sam Nelson <[email protected]>
Date:   Mon Dec 14 17:47:48 2015 +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_3.14.bb |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
recipes-kernel/linux/linux-ti-staging_3.14.bb +4 -0
index 54530e4..88950ae 100644
@@ -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}/
+}
#1 lore raw

Sam,

Is this still a problem on 4.1 kernel? Do we need to copy this work around to 4.1 recipe in Fido branch?

Quoted 44 lines · Arago Project git
Module: meta-ti
Branch: fido
Commit: 4f542c3fe47a8c6be195b3c97fd83efbf930bb70
URL:    http://arago-project.org/git/meta-ti.git?a=commit;h=4f542c3fe47a8c6be195b3c97fd83efbf930bb70
Author: Sam Nelson <[email protected]>
Date:   Mon Dec 14 17:47:48 2015 +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_3.14.bb |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
recipes-kernel/linux/linux-ti-staging_3.14.bb +4 -0
index 54530e4..88950ae 100644
@@ -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 · 5 lines
-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#2 lore raw

Yes, this workaround needs to be copied to 4.1 recipe as well. (As the problem itself will still exist in fido and the issue is not kernel specific) With regards,
Sam

Quoted 68 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Dmytriyenko, Denys
Sent: Monday, January 25, 2016 8:00 PM
To: [email protected]
Subject: Re: [meta-ti] Sam Nelson : linux-ti-staging: Work around to avoid race condition with external module

Sam,

Is this still a problem on 4.1 kernel? Do we need to copy this work around to 4.1 recipe in Fido branch?

Quoted 4 lines · Arago Project git
Module: meta-ti
Branch: fido
Commit: 4f542c3fe47a8c6be195b3c97fd83efbf930bb70
URL:    http://arago-project.org/git/meta-

ti.git?a=commit;h=4f542c3fe47a8c6be195b3c97fd83efbf930bb70

recipes-

Quoted 23 lines
Author: Sam Nelson <[email protected]>
Date:   Mon Dec 14 17:47:48 2015 +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_3.14.bb |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
recipes- renamed from recipes-kernel/linux/linux-ti-staging_3.14.bb +0 -0

kernel/linux/linux-ti-staging_3.14.bb

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 8 lines
recipes-kernel/linux/linux-ti-staging_3.14.bb +4 -1
             file://defconfig \
            "
+
+do_compile_kernelmodules_append() {
+	cp Module.symvers ${STAGING_KERNEL_BUILDDIR}/
+}
 
--
Quoted 4 lines

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#3 lore raw

Thanks! Would you be submitting the corresponding patch? :)

Quoted 74 lines · Sam

Yes, this workaround needs to be copied to 4.1 recipe as well. (As the problem itself will still exist in fido and the issue is not kernel specific)
With regards,
Sam

Quoted 68 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Dmytriyenko, Denys
Sent: Monday, January 25, 2016 8:00 PM
To: [email protected]
Subject: Re: [meta-ti] Sam Nelson : linux-ti-staging: Work around to avoid race condition with external module

Sam,

Is this still a problem on 4.1 kernel? Do we need to copy this work around to 4.1 recipe in Fido branch?

Quoted 4 lines · Arago Project git
Module: meta-ti
Branch: fido
Commit: 4f542c3fe47a8c6be195b3c97fd83efbf930bb70
URL:    http://arago-project.org/git/meta-

ti.git?a=commit;h=4f542c3fe47a8c6be195b3c97fd83efbf930bb70

recipes-

Quoted 23 lines
Author: Sam Nelson <[email protected]>
Date:   Mon Dec 14 17:47:48 2015 +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_3.14.bb |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
recipes- renamed from recipes-kernel/linux/linux-ti-staging_3.14.bb +0 -0

kernel/linux/linux-ti-staging_3.14.bb

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 8 lines
recipes-kernel/linux/linux-ti-staging_3.14.bb +4 -1
             file://defconfig \
            "
+
+do_compile_kernelmodules_append() {
+	cp Module.symvers ${STAGING_KERNEL_BUILDDIR}/
+}
 
--
Quoted 4 lines

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti