public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
* [BUG] make headers_install install system headers instead the ones from kernel source
@ 2012-02-19 21:32 Stephan Raue
  2012-02-19 21:57 ` Sam Ravnborg
  0 siblings, 1 reply; 3+ messages in thread
From: Stephan Raue @ 2012-02-19 21:32 UTC (permalink / raw)
  To: linux-kbuild

Hi all,

"make headers_install INSTALL_HDR_PATH=<dest> ARCH=<arch>" should copy 
the headers from kernel source to <dest> (the toolchain) but it copys 
the headers from my system here.
i have tested this command now with kernel 2.6.39 to 3.3-rc4 its same on 
every tested kernel version.

i have compared the filesize, for example /usr/include/linux/types.h 
with <dest>/include/linux/types.h and <kernel_src>/include/linux/types.h 
and the destination file is the same as the one in /usr/include.

I think its a big problem, because many embe


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG] make headers_install install system headers instead the ones from kernel source
  2012-02-19 21:32 [BUG] make headers_install install system headers instead the ones from kernel source Stephan Raue
@ 2012-02-19 21:57 ` Sam Ravnborg
  2012-02-19 22:49   ` Stephan Raue
  0 siblings, 1 reply; 3+ messages in thread
From: Sam Ravnborg @ 2012-02-19 21:57 UTC (permalink / raw)
  To: Stephan Raue; +Cc: linux-kbuild

On Sun, Feb 19, 2012 at 10:32:30PM +0100, Stephan Raue wrote:
> Hi all,
>
> "make headers_install INSTALL_HDR_PATH=<dest> ARCH=<arch>" should copy  
> the headers from kernel source to <dest> (the toolchain) but it copys  
> the headers from my system here.
> i have tested this command now with kernel 2.6.39 to 3.3-rc4 its same on  
> every tested kernel version.
>
> i have compared the filesize, for example /usr/include/linux/types.h  
> with <dest>/include/linux/types.h and <kernel_src>/include/linux/types.h  
> and the destination file is the same as the one in /usr/include.

Hi Stephan.

during the process of preparign the headers for use in user-space they undergo
a processing.

On my system:

types.h in the kernel is 5733 bytes
The exported variant is 1430 bytes.

I think that in your case the reason why they match in size is because
your distro uses a kernel exported types.h.

It should be simple to check. Just add a few lines to types.h in the kernel,
around a line you know will be present in the user-space version.
Export and see if the line is present.

	Sam

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG] make headers_install install system headers instead the ones from kernel source
  2012-02-19 21:57 ` Sam Ravnborg
@ 2012-02-19 22:49   ` Stephan Raue
  0 siblings, 0 replies; 3+ messages in thread
From: Stephan Raue @ 2012-02-19 22:49 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: linux-kbuild

thanks is working :-) sorry for the noise.

Stephan

Am 19.02.2012 22:57, schrieb Sam Ravnborg:
>
> Hi Stephan.
>
> during the process of preparign the headers for use in user-space they undergo
> a processing.
>
> On my system:
>
> types.h in the kernel is 5733 bytes
> The exported variant is 1430 bytes.
>
> I think that in your case the reason why they match in size is because
> your distro uses a kernel exported types.h.
>
> It should be simple to check. Just add a few lines to types.h in the kernel,
> around a line you know will be present in the user-space version.
> Export and see if the line is present.
>
> 	Sam


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-19 22:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-19 21:32 [BUG] make headers_install install system headers instead the ones from kernel source Stephan Raue
2012-02-19 21:57 ` Sam Ravnborg
2012-02-19 22:49   ` Stephan Raue

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox