Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18031 - modified linux-headers that can be used to build a cross compile tool chain
Summary: modified linux-headers that can be used to build a cross compile tool chain
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 17858 18034 18936
  Show dependency tree
 
Reported: 2003-03-23 04:21 UTC by James Boddington (RETIRED)
Modified: 2004-04-09 09:50 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
path for linux-headers-2.4.20 (linux-headers-2.4.20.diff,3.52 KB, patch)
2003-03-23 04:22 UTC, James Boddington (RETIRED)
Details | Diff
less radical modification to the ebuild (linux-headers-2.4.20.diff,1.55 KB, patch)
2003-03-23 23:22 UTC, James Boddington (RETIRED)
Details | Diff
linux-headers-2.4.20 (linux-headers-2.4.20.ebuild,5.37 KB, text/plain)
2003-04-05 20:51 UTC, James Boddington (RETIRED)
Details
kernel.eclass.patch (kernel.eclass.patch,1.32 KB, patch)
2003-04-20 02:28 UTC, Zach Welch (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Boddington (RETIRED) gentoo-dev 2003-03-23 04:21:06 UTC
This is a patch for linux-headers-2.4.20 that allows the headers to be installed as normal  
or in/usr/$CCHOST/include for a cross compiler tool chain. 
 

Reproducible: Always
Steps to Reproduce:
1. emerge linux-headers  
    Puts the kernel headers in /usr/include/{asm,linux} 
2. CCHOST=sparc-unknown-linux-headers emerge linux-headers 
    Puts the headers is /usr/$CCHOST/include/{asm,linux} 
    This is suitable for a cross tool chain prefix of /usr 



This was not intented for here but I could never get this ebuild to put the sparc asm  
files in include/asm, only in include/sparc or include/sparc64 so I redid a lot of src_install().  
When running make oldconfig it is possible to get the correct asm link put in place with 
 
yes "" | make ARCH=sparc oldconfig 
 
This saves guesing which asm directory to copy. Just copy include/asm/* to  
${D}/usr/include/asm.
Comment 1 James Boddington (RETIRED) gentoo-dev 2003-03-23 04:22:34 UTC
Created attachment 9714 [details, diff]
path for linux-headers-2.4.20
Comment 2 Zach Welch (RETIRED) gentoo-dev 2003-03-23 13:26:01 UTC
This ebuild has my full endorsement.  I had made a change to the kernel.eclass
to fix the headers source directory in the same fashion; it seems that such
a change is correct.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-23 13:34:45 UTC
Looks fine to me as well.  Commit a ~ version that can be tested.
Comment 4 James Boddington (RETIRED) gentoo-dev 2003-03-23 23:22:03 UTC
Created attachment 9747 [details, diff]
less radical modification to the ebuild

Changes have been made to the main linux-headers so that a less radical change
seems to be needed for me to get the appropriate headers for sparc.
Comment 5 James Boddington (RETIRED) gentoo-dev 2003-04-05 20:51:59 UTC
Created attachment 10242 [details]
linux-headers-2.4.20

This time I included the complete ebuild. I was based it on
linux-headers-2.4.20. The linux-headers-2.4.20.ebuild has since been removed.
Comment 6 Zach Welch (RETIRED) gentoo-dev 2003-04-20 02:28:29 UTC
Created attachment 10897 [details, diff]
kernel.eclass.patch

Here's a patch for the kernel.eclass, diff'd against current cvs.
Comment 7 James Boddington (RETIRED) gentoo-dev 2003-06-10 01:02:48 UTC
The kernel.eclass I have been using is very simillar. Any -headers ebuild that uses 
kernel.eclass does not need any modifications for the headers to be moved to the 
correct location when building a cross tool chain. Saves having to modify each 
-headers ebuilds. 
Comment 8 Jason Cox (RETIRED) gentoo-dev 2004-04-08 18:42:56 UTC
With the addition of kernel-2.eclass is this still necessary? Or have the changes been made already?
Comment 9 Jason Cox (RETIRED) gentoo-dev 2004-04-09 09:50:50 UTC
The kernel eclasses already take care of this. Marking as fixed.