public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RE: Howto set kernel makefile to use particular gcc
@ 2005-12-30  7:04 Mukund JB.
  2005-12-30  7:24 ` Chris White
  2005-12-30  8:25 ` Jesper Juhl
  0 siblings, 2 replies; 17+ messages in thread
From: Mukund JB. @ 2005-12-30  7:04 UTC (permalink / raw)
  To: Alessandro Suardi; +Cc: linux-kernel


Dear Alessandro,

Thanks for the reply.
What does that the make CC=<path_to_your_gcc_3.3> do? 
Will it set my gcc default build configuration to gcc 3.3?

I mean the general procedure is make bzImage; make modules....
How do I do these:

Will I have to do it like:
	make bzImage cc=<gcc path>

Best Regards,
Mukund Jampala


> -----Original Message-----
> From: Alessandro Suardi [mailto:alessandro.suardi@gmail.com]
> Sent: Friday, December 30, 2005 12:29 PM
> To: Mukund JB.
> Cc: linux-kernel@vger.kernel.org
> Subject: Re: Howto set kernel makefile to use particular gcc
> 
> 
> On 12/30/05, Mukund JB. <mukundjb@esntechnologies.co.in> wrote:
> >
> > Dear Kernel mailers,
> >
> > I have specific requirement of building kernel 2.6.11.12 
> with gcc- 3.3 over the FC4 dist.
> > I have downloaded the gcc-3.3.
> > As FC4 comes with a default gcc-4.0, how do I set the 
> kernel Makefile to use the gcc-3.3 instead of gcc-4.0.
> >
> > How do I achieve it? I know it is a very small issue and 
> searched google and I am unable to find it.
> 
> Leave the kernel Makefile alone, and say
> 
> cd /usr/src/linux
> make CC=<path_to_your_gcc_3.3>
> 
> --alessandro
> 
>  "Somehow all you ever need is, never really quite enough, you know"
> 
>    (Bruce Springsteen - "Reno")
> 

^ permalink raw reply	[flat|nested] 17+ messages in thread
* RE: Howto set kernel makefile to use particular gcc
@ 2006-01-02  5:59 Mukund JB.
  2006-01-02  7:21 ` Kalin KOZHUHAROV
  0 siblings, 1 reply; 17+ messages in thread
From: Mukund JB. @ 2006-01-02  5:59 UTC (permalink / raw)
  To: Jesper Juhl; +Cc: Alessandro Suardi, linux-kernel

Jasper,

But I was doing it all that I was doing with 2.4 i.e. the follwoing steps to build the kernel.
I also found these steps are followed in the 2.6.x kernel build howto's too.

Do you mean, to rebuild the 2.6.x kernel,

	make CC=<path of gcc> would be enough?

I am just thinking whether I am doing something redundent.

Regards,
Mukund Jampala


> -----Original Message-----
> From: Jesper Juhl [mailto:jesper.juhl@gmail.com]
> Sent: Friday, December 30, 2005 1:55 PM
> To: Mukund JB.
> Cc: Alessandro Suardi; linux-kernel@vger.kernel.org
> Subject: Re: Howto set kernel makefile to use particular gcc
> 
> 
> On 12/30/05, Mukund JB. <mukundjb@esntechnologies.co.in> wrote:
> >
> > Dear Alessandro,
> >
> > Thanks for the reply.
> > What does that the make CC=<path_to_your_gcc_3.3> do?
> > Will it set my gcc default build configuration to gcc 3.3?
> >
> > I mean the general procedure is make bzImage; make modules....
> 
> That was the common way with 2.4.x kernels. Sure, you can still do
> that, but with 2.6.x the recommended thing is to just do "make" (or in
> your case "make CC=</path/to/gcc-3.3>") which will both build the
> kernel and the modules.
> 
> 
> --
> Jesper Juhl <jesper.juhl@gmail.com>
> Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
> Plain text mails only, please      http://www.expita.com/nomime.html
> 

^ permalink raw reply	[flat|nested] 17+ messages in thread
* RE: Howto set kernel makefile to use particular gcc
@ 2005-12-30  7:25 Mukund JB.
  2005-12-31  0:42 ` Jiri Slaby
  0 siblings, 1 reply; 17+ messages in thread
From: Mukund JB. @ 2005-12-30  7:25 UTC (permalink / raw)
  To: Chris White; +Cc: Alessandro Suardi, linux-kernel


Thanks for that.
I will test it

thanks,
Mukund Jampala

> -----Original Message-----
> From: Chris White [mailto:chriswhite@gentoo.org]
> Sent: Friday, December 30, 2005 12:54 PM
> To: Mukund JB.
> Cc: Alessandro Suardi; linux-kernel@vger.kernel.org
> Subject: Re: Howto set kernel makefile to use particular gcc
> 
> 
> On Friday 30 December 2005 16:04, Mukund JB. wrote:
> > Dear Alessandro,
> >
> > Thanks for the reply.
> > What does that the make CC=<path_to_your_gcc_3.3> do?
> > Will it set my gcc default build configuration to gcc 3.3?
> 
> Not Alessandro but,
> 
> CC sets the CC makefile variable.  When the kernel build 
> system goes to 
> compile something, it doesn't call on gcc directly, but 
> rather what the 
> variable CC is set to.  By setting it to your gcc 3.3 
> compiler, it will use 
> that instead.
> 
> > I mean the general procedure is make bzImage; make modules....
> > How do I do these:
> >
> > Will I have to do it like:
> > 	make bzImage cc=<gcc path>
> 
> make CC=<gcc path> bzImage
> 
> note the case sensitivity, which tends to be somewhat of a 
> pain for new *nix 
> users.
> 
> > Best Regards,
> > Mukund Jampala
> 
> Chris White
> 

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Howto set kernel makefile to use particular gcc
@ 2005-12-30  5:46 Mukund JB.
  2005-12-30  6:58 ` Alessandro Suardi
  0 siblings, 1 reply; 17+ messages in thread
From: Mukund JB. @ 2005-12-30  5:46 UTC (permalink / raw)
  To: linux-kernel


Dear Kernel mailers,

I have specific requirement of building kernel 2.6.11.12 with gcc- 3.3 over the FC4 dist. 
I have downloaded the gcc-3.3.
As FC4 comes with a default gcc-4.0, how do I set the kernel Makefile to use the gcc-3.3 instead of gcc-4.0.

How do I achieve it? I know it is a very small issue and searched google and I am unable to find it.
Please help.

Regards,
Mukund Jampala



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

end of thread, other threads:[~2006-01-02  7:30 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-30  7:04 Howto set kernel makefile to use particular gcc Mukund JB.
2005-12-30  7:24 ` Chris White
2006-01-01 10:03   ` Kalin KOZHUHAROV
2006-01-01 11:13     ` Marc Giger
2006-01-01 11:18       ` Keith Owens
2006-01-01 11:37         ` Marc Giger
2006-01-01 11:49           ` Kalin KOZHUHAROV
2006-01-01 13:09           ` Keith Owens
2006-01-01 12:00     ` Adrian Bunk
2006-01-02  7:19       ` Kalin KOZHUHAROV
2005-12-30  8:25 ` Jesper Juhl
  -- strict thread matches above, loose matches on Subject: below --
2006-01-02  5:59 Mukund JB.
2006-01-02  7:21 ` Kalin KOZHUHAROV
2005-12-30  7:25 Mukund JB.
2005-12-31  0:42 ` Jiri Slaby
2005-12-30  5:46 Mukund JB.
2005-12-30  6:58 ` Alessandro Suardi

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