From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id E4086E00B45; Mon, 14 Dec 2015 04:14:59 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [217.6.246.34 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Greylist: delayed 493 seconds by postgrey-1.32 at yocto-www; Mon, 14 Dec 2015 04:14:58 PST Received: from root.phytec.de (mail.microcatalog.org.uk [217.6.246.34]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 6EB93E0096C for ; Mon, 14 Dec 2015 04:14:58 -0800 (PST) Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id 81D1EA0041B; Mon, 14 Dec 2015 13:07:20 +0100 (CET) Received: from [172.16.10.21] ([172.16.10.21]) by idefix.phytec.de (IBM Domino Release 9.0.1FP4) with ESMTP id 2015121413064327-14269 ; Mon, 14 Dec 2015 13:06:43 +0100 To: Sam Nelson , meta-ti@yoctoproject.org References: <1450093668-30879-1-git-send-email-sam.nelson@ti.com> From: =?UTF-8?Q?Stefan_M=c3=bcller-Klieser?= Message-ID: <566EB0CE.5030706@phytec.de> Date: Mon, 14 Dec 2015 13:06:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <1450093668-30879-1-git-send-email-sam.nelson@ti.com> X-MIMETrack: Itemize by SMTP Server on Idefix/Phytec(Release 9.0.1FP4|June 07, 2015) at 14.12.2015 13:06:43, Serialize by Router on Idefix/Phytec(Release 9.0.1FP4|June 07, 2015) at 14.12.2015 13:06:43, Serialize complete at 14.12.2015 13:06:43 X-TNEFEvaluated: 1 Subject: Re: [PATCH] linux-ti-staging: Work around to avoid race condition with external module X-BeenThere: meta-ti@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-ti layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Dec 2015 12:15:00 -0000 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=windows-1252; format=flowed 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 On 14.12.2015 12:47, Sam Nelson wrote: > - 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 > > Signed-off-by: Sam Nelson > --- > recipes-kernel/linux/linux-ti-staging_3.14.bb | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/recipes-kernel/linux/linux-ti-staging_3.14.bb b/recipes-kernel/linux/linux-ti-staging_3.14.bb > index 54530e4..88950ae 100644 > --- a/recipes-kernel/linux/linux-ti-staging_3.14.bb > +++ b/recipes-kernel/linux/linux-ti-staging_3.14.bb > @@ -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}/ > +} >