* Predefined Compiler Flag for CROSS_COMPILE in ELDK
@ 2008-04-28 11:27 rodolfo
2008-04-30 16:59 ` Detlev Zundel
0 siblings, 1 reply; 4+ messages in thread
From: rodolfo @ 2008-04-28 11:27 UTC (permalink / raw)
To: Linuxppc embedded, Rodolfo
Hi,
I using ppc_4xx- cross-compiler for build linux in xup virtex II pro.
How can I change -mpcu compiler flag for a specific vallue for my
board/processor?
Thanks,
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Predefined Compiler Flag for CROSS_COMPILE in ELDK
2008-04-28 11:27 Predefined Compiler Flag for CROSS_COMPILE in ELDK rodolfo
@ 2008-04-30 16:59 ` Detlev Zundel
2008-05-08 11:46 ` rodolfo
0 siblings, 1 reply; 4+ messages in thread
From: Detlev Zundel @ 2008-04-30 16:59 UTC (permalink / raw)
To: linuxppc-embedded
Hi Rodolfo,
> I using ppc_4xx- cross-compiler for build linux in xup virtex II pro.
> How can I change -mpcu compiler flag for a specific vallue for my
> board/processor?
Do the obvious thing - specify it on every command line.
Cheers
Detlev
--
"Oh, didn't you know, the Lord did the original programming of the universe in
COBOL." - "That's why the world is the evil work of Satan. A true divine being
would have used Scheme." - "And, if so, Jesus would have been crucified on a
big lambda symbol." -- K. Chafin, K. Schilling & D. Hanley, on comp.lang.lisp
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu@denx.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Predefined Compiler Flag for CROSS_COMPILE in ELDK
2008-04-30 16:59 ` Detlev Zundel
@ 2008-05-08 11:46 ` rodolfo
2008-05-08 16:38 ` Detlev Zundel
0 siblings, 1 reply; 4+ messages in thread
From: rodolfo @ 2008-05-08 11:46 UTC (permalink / raw)
To: Detlev Zundel; +Cc: linuxppc-embedded
Detlev,
-mcpu is deprecated:
HOSTCC scripts/basic/fixdep
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
scripts/basic/fixdep.c:1: error: bad value (405) for -mtune= switch
make[1]: ** [scripts/basic/fixdep] Erro 1
make: ** [scripts_basic] Erro 2
then I put -march=405 and give this errors:
scripts/basic/fixdep.c:1: error: bad value (405) for -march= switch
scripts/basic/fixdep.c:1: error: bad value (405) for -mtune= switch
make[1]: ** [scripts/basic/fixdep] Erro 1
make: ** [scripts_basic] Erro 2
See a piece of my Makefile:
HOSTCC = gcc
HOSTCXX = g++
HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
-march=405
HOSTCXXFLAGS = -O2
How can I do this?
Thanks,
On Wed, 30 Apr 2008 18:59:05 +0200, Detlev Zundel <dzu@denx.de> wrote:
> Hi Rodolfo,
>
>> I using ppc_4xx- cross-compiler for build linux in xup virtex II pro.
>> How can I change -mpcu compiler flag for a specific vallue for my
>> board/processor?
>
> Do the obvious thing - specify it on every command line.
>
> Cheers
> Detlev
>
> --
> "Oh, didn't you know, the Lord did the original programming of the
> universe in
> COBOL." - "That's why the world is the evil work of Satan. A true divine
> being
> would have used Scheme." - "And, if so, Jesus would have been crucified
> on a
> big lambda symbol." -- K. Chafin, K. Schilling & D. Hanley, on
> comp.lang.lisp
> --
> DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu@denx.de
>
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Predefined Compiler Flag for CROSS_COMPILE in ELDK
2008-05-08 11:46 ` rodolfo
@ 2008-05-08 16:38 ` Detlev Zundel
0 siblings, 0 replies; 4+ messages in thread
From: Detlev Zundel @ 2008-05-08 16:38 UTC (permalink / raw)
To: rodolfo; +Cc: linuxppc-embedded
Hi Rodolfo,
> -mcpu is deprecated:
>
> HOSTCC scripts/basic/fixdep
> `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
> scripts/basic/fixdep.c:1: error: bad value (405) for -mtune= switch
> make[1]: ** [scripts/basic/fixdep] Erro 1
> make: ** [scripts_basic] Erro 2
Uhu - HOSTCC is the native compiler, which very likely does not know
anything about 405 cpus...
> then I put -march=405 and give this errors:
>
> scripts/basic/fixdep.c:1: error: bad value (405) for -march= switch
> scripts/basic/fixdep.c:1: error: bad value (405) for -mtune= switch
> make[1]: ** [scripts/basic/fixdep] Erro 1
> make: ** [scripts_basic] Erro 2
Still, same problem - you want to use the flag for the cross compiler.
> See a piece of my Makefile:
>
> HOSTCC = gcc
> HOSTCXX = g++
> HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
> -march=405
> HOSTCXXFLAGS = -O2
Again, this is the host compiler.
> How can I do this?
If we are only talking about compiling a recent linux kernel, then the
easiest way is to simply override CFLAGS_KERNEL from the commandline,
i.e.:
make CFLAGS_KERNEL=-mcpu=405 uImage
If you want to check that this works, do a
make CFLAGS_KERNEL=-mcpu=405 V=1 uImage
and check the generated command lines.
Cheers
Detlev
--
Alisa Sherer (AMD) suggested that consumer demand will not follow
faster clock speeds. Marketing might help with this problem, she
added. -- 2004/02/20
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu@denx.de
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-05-08 16:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-28 11:27 Predefined Compiler Flag for CROSS_COMPILE in ELDK rodolfo
2008-04-30 16:59 ` Detlev Zundel
2008-05-08 11:46 ` rodolfo
2008-05-08 16:38 ` Detlev Zundel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).