This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Changing the destination Linux Kernel version


Hi Yann and Clément,

On Sun, Mar 24, 2013 at 06:09:10PM +0100, Yann E. MORIN wrote:
> On Sunday 24 March 2013 Clément VERMOT-DESROCHES wrote:
> > On Wed, Mar 13, 2013 at 8:49 PM, Johannes Stezenbach <js@sig21.net> wrote:
> > >
> > > The "for GNU/Linux 2.6.24" is determined by the glibc of your
> > > build machine, you cannot change it by any compile
> > > or link options.
> > >
> > Ok for this point.
> 
> You have to tell at build-time (the toolchain build-time) what your oldest
> running kernel will be:
>     C-library  -->
>         Minimum supported kernel version  -->
>             (Specific kernel version)
>         (2.6.9) Minimum kernel version to support
> 
> Change '2.6.9' with the oldest kernel you'll be running on the target.

We're talking about about the "host" (where the toolchain should
run) not about the target, and not about the "build" machine
(where the toolchain is built).

I also had to build a toolchain to run on old RHEL release.
Sorry I can't post my build script (but it is very specific
the the environment anyway), but I needed to build
bash, xz, tar, flex, bison, gperf, texinfo, zlib, binutils and gcc-4.1.2
before I could run install and run ct-ng. (gcc-4.1.2 is sufficient
to build cross gcc-4.7, and can be built using the old gcc in the old RHEL).
However, I used the RHEL glibc, so all the tools can be installed
using simple unpack/configure/make/make install.


HTH
Johannes

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]