• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Script to build cross-compiling toolchain suitable for kernel compile  (Read 1773 times)
cbxbiker61
Global Moderator
Sr. Member
*****

Karma: 38
Posts: 497


View Profile
« on: January 25, 2010, 10:14:45 AM »

I wanted a native x86_64 toolchain for kernel compiles so I downloaded the CodeSourcery src packages.  They had a script that was good but it is really written for their internal use.  I modified the script so it works, added variables to control the build process and stripped out the "internal" parts.

Most people should be able to download the script and just run it (It take about 3Gigs of available disk space in /var/tmp to run).  It would be interesting to know if Apple users can get it to work (of course gcc and binutils have to be installed).

I've built the tools on i686 and x86_64 and have compiled a working kernel with x86_64.  It seems to work fine.

http://sheeva.with-linux.com/sheeva/tools/BuildCodeSourcery-Arm2009Q3-68.sh
Logged

kroonen
Newbie
*

Karma: 0
Posts: 9


View Profile
« Reply #1 on: October 30, 2010, 05:41:10 AM »

Hi,

I want to compile also kernels for the sheevaplug, and the first start is to get this I think? On my debian lenny laptop (x86)

If I run

 ./BuildCodeSourcery-Arm2009Q3-68.sh
./BuildCodeSourcery-Arm2009Q3-68.sh: line 43: arch: command not found

I solved this with

uname -m in file /bin/arch

Now i get error on sed and grep that I have installed on my system

./BuildCodeSourcery-Arm2009Q3-68.sh: line 166: grep: command not found
./BuildCodeSourcery-Arm2009Q3-68.sh: line 166: sed: command not found


regards Richard


Logged

Pages: [1]
Print
Jump to: