From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by arago-project.org (Postfix) with ESMTPS id CE56C529D3 for ; Tue, 9 Jul 2013 16:07:11 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id r69G7BSK017023 for ; Tue, 9 Jul 2013 11:07:11 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id r69G7B6H008892 for ; Tue, 9 Jul 2013 11:07:11 -0500 Received: from dlelxv22.itg.ti.com (172.17.1.197) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.2.342.3; Tue, 9 Jul 2013 11:07:10 -0500 Received: from localhost (gtudedge.gt.design.ti.com [158.218.102.158]) by dlelxv22.itg.ti.com (8.13.8/8.13.8) with ESMTP id r69G7Aui010195; Tue, 9 Jul 2013 11:07:10 -0500 Date: Tue, 9 Jul 2013 12:07:10 -0400 From: Denys Dmytriyenko To: "Nelson, Sam" Message-ID: <20130709160710.GF14185@edge> References: <4F9216F96E5DF9428610502835A9F49054937C49@DLEE11.ent.ti.com> <20130709154017.GD14185@edge> <4F9216F96E5DF9428610502835A9F49054937C6E@DLEE11.ent.ti.com> MIME-Version: 1.0 In-Reply-To: <4F9216F96E5DF9428610502835A9F49054937C6E@DLEE11.ent.ti.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: "meta-arago@arago-project.org" , "Karicheri, Muralidharan" , "Shilimkar, Santosh" Subject: Re: Help needed: Devkit header files not upto date with kernel headers X-BeenThere: meta-arago@arago-project.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Arago metadata layer for TI SDKs - OE-Core/Yocto compatible List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jul 2013 16:07:12 -0000 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Sam, Please see my last comment - there's a separate recipe for user-space kernel headers. The headers need to be properly exported, you cannot just use the ones from the kernel directly. Hence they are detached - updating the header in the kernel tree does not automatically update exported headers for the user space in linux-libc-headers. -- Denys On Tue, Jul 09, 2013 at 12:00:34PM -0400, Nelson, Sam wrote: > Understand the user space headers and kernel space headers are different in > general. But in this case, I am comparing the files under "uapi" directory. > Which I assume is actually meant for user space api. Am I wrong on this? > Given that , I expected the header file will be updated in building the > devkit. > > For example if we have update on an "uapi" header file , as part of a kernel > patch, Don't we expect the corresponding header file in devkit to be > updated? Appreciate your comments. > > With regards, > Sam > > > -----Original Message----- > From: Dmytriyenko, Denys > Sent: Tuesday, July 09, 2013 11:40 AM > To: Nelson, Sam > Cc: meta-arago@arago-project.org; Karicheri, Muralidharan; Shilimkar, Santosh > Subject: Re: Help needed: Devkit header files not upto date with kernel headers > > On Tue, Jul 09, 2013 at 11:30:35AM -0400, Nelson, Sam wrote: > > Hello all, > > > > The header files under sysroots/armv7ahf-vfp-neon-oe-linux-gnueabi does > > not match the same file from the kernel tree. > > That's normal. There's a difference between kernel and user-space facing headers. > > http://kernelnewbies.org/KernelHeaders > > > > For example > > > > Comparing the following 2 files, they are different. > > > > > > sysroots/armv7ahf-vfp-neon-oe-linux-gnueabi/usr/include/linux/ethtool. > > h > > > > and > > > > > > sysroots/armv7ahf-vfp-neon-oe-linux-gnueabi/usr/src/kernel/include/uap > > i/linux/ethtool.h > > > > > > > > Looking into some details, the /usr/include/linux/ethtool.h, seems to come > > from the libc package. > > Yes, those are different even on my host machine. The first is marked as _LINUX_ETHTOOL_H and the second one as _UAPI_LINUX_ETHTOOL_H > > http://lwn.net/Articles/113349/ > http://lwn.net/Articles/507794/ > > > > Any ideas on what can be wrong in the recipes will be helpful. Is there > > any way to update the user space header files to match the kernel header > > files? > > There is a special recipe for that - linux-libc-headers. > > -- > Denys