ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] Copying kernel headers fails in new kernel source trees


From: Stuart Hughes
Subject: Re: [Ltib] Copying kernel headers fails in new kernel source trees
Date: Tue, 27 Jan 2009 12:02:00 +0000

Hi Kevin,

I've checked in the attached patch to CVS.  This will do the equivalent
of earlier kernels with regard to these headers.  However I'm not sure
if this is the right thing to do as if you look you'll see that the
asm/arch headers are no longer in the KBOUT (built output) area and so
I've made the copy from the kernel source tree.  My worry is whether
these headers are supposed to be exported out of the kernel? I think
this needs confirmation by some ARM experts.

Regards, Stuart

On Thu, 2009-01-22 at 16:26 +0000, Stuart Hughes wrote:
> Hi Kevin,
> 
> I see the problem, I will think about this and get back to you.  In the
> mean time do you know how this gets handled by other projects? is it
> included as part of the userspace 'make headers_install' target?
> 
> Regards, Stuart
> 
> On Wed, 2009-01-21 at 22:27 +0100, Kevin Wells wrote:
> > Somewhere between kernel 2.6.25 and 2.6.27.8, the architecture/board
> > specific header files in the kernel source tree were moved from
> > 
> > include/asm-arm/arch/mach-<board>/
> > 
> > to
> > 
> > arch/arm/mach-<chip>/include/mach/
> > 
> >  
> > 
> > It seems that the symbolic link at include/asm/arch was also removed
> > when all the platform header files were moved to the arch/arm area (I
> > can't find the equivalent of this link in the newer kernel source
> > trees).
> > 
> >  
> > 
> > In the PKG_KERNEL_WANT_HEADERS option is enabled, the arm architecture
> > specific copy of the platform files now fails in these newer kernel
> > sources as the include/asm/arch link is no longer there.
> > 
> >  
> > 
> > So the current copy command of (sorry about any typos, I'm hand typing
> > this…):
> > 
> >                 cp -a $KBOUT/include/asm/arch/*
> > $RPM_BUILD_ROOT/%{pfx}/usr/src/linx/include/asm/arch
> > 
> > needs to be replaced with
> > 
> >                 cp -a
> > $KBOUT/include/arch/arch/mach-<chip>/include/mach/*
> > $RPM_BUILD_ROOT/%{pfx}/usr/src/linx/include/asm/arch
> > 
> > on these newer source trees.
> > 
> >  
> > 
> > Short of creating a few new flags in main.lkc to handle this and
> > adding a new case in the kernel spec template, is there any other way
> > to get this change handled in the spec file?
> > 
> >  
> > 
> > Thanks,
> > 
> > Kevin Wells
> > 
> > NXP
> > 
> >  
> > 
> > 
> > _______________________________________________
> > LTIB home page: http://bitshrine.org
> > 
> > Ltib mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/ltib
> 
> 
> 
> _______________________________________________
> LTIB home page: http://bitshrine.org
> 
> Ltib mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ltib
> 

Attachment: arm_header_fix.txt
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]