linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Define CROSS_COMPILE in .config (kernel 2.6.35)
@ 2010-08-04 10:55 Yegor Yefremov
  2010-08-04 11:05 ` tommy.hong
  2010-08-04 11:53 ` Russell King - ARM Linux
  0 siblings, 2 replies; 3+ messages in thread
From: Yegor Yefremov @ 2010-08-04 10:55 UTC (permalink / raw)
  To: linux-arm-kernel

Has anyone tried this option? If I define my CROSS_COMPILE prefix in .config and then call

make ARCH=arm

then I get following errors:

  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: ?include/generated/mach-types.h? ist bereits aktualisiert.
  CC      kernel/bounds.s
cc1: error: unrecognized command line option "-mlittle-endian"
cc1: error: unrecognized command line option "-mabi=aapcs-linux"
cc1: error: unrecognized command line option "-mno-thumb-interwork"
kernel/bounds.c:1: error: bad value (armv4t) for -march= switch
kernel/bounds.c:1: error: bad value (arm9tdmi) for -mtune= switch

the CROSS_COMPILE seems to be ignored. But if I comment the empty CROSS_COMPILE entry in Makefile

#CROSS_COMPILE   ?=
CROSS_COMPILE   ?= $(CONFIG_CROSS_COMPILE:"%"=%)

everything is working like a charm. Am I missing something?

Regards,
Yegor

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

* Define CROSS_COMPILE in .config (kernel 2.6.35)
  2010-08-04 10:55 Define CROSS_COMPILE in .config (kernel 2.6.35) Yegor Yefremov
@ 2010-08-04 11:05 ` tommy.hong
  2010-08-04 11:53 ` Russell King - ARM Linux
  1 sibling, 0 replies; 3+ messages in thread
From: tommy.hong @ 2010-08-04 11:05 UTC (permalink / raw)
  To: linux-arm-kernel

Hi:
##Linux-src/Makefile:
ARCH            := arm
CROSS_COMPILE   := $(shell if [ -f .cross_compile ]; then \
                                cat .cross_compile; \
                                fi)
#.cross_compile
arm-poky-linux-gnueabi-

B.R
Tommy
--

our psychological growth is the movement from dependence to independence  to
interdependence!



At 2010-08-04?"Yegor Yefremov" <yegor_sub1@visionsystems.de> wrote:

>Has anyone tried this option? If I define my CROSS_COMPILE prefix in .config and then call
>
>make ARCH=arm
>
>then I get following errors:
>
>  CHK     include/linux/version.h
>  CHK     include/generated/utsrelease.h
>make[1]: ?include/generated/mach-types.h? ist bereits aktualisiert.
>  CC      kernel/bounds.s
>cc1: error: unrecognized command line option "-mlittle-endian"
>cc1: error: unrecognized command line option "-mabi=aapcs-linux"
>cc1: error: unrecognized command line option "-mno-thumb-interwork"
>kernel/bounds.c:1: error: bad value (armv4t) for -march= switch
>kernel/bounds.c:1: error: bad value (arm9tdmi) for -mtune= switch
>
>the CROSS_COMPILE seems to be ignored. But if I comment the empty CROSS_COMPILE entry in Makefile
>
>#CROSS_COMPILE   ?=
>CROSS_COMPILE   ?= $(CONFIG_CROSS_COMPILE:"%"=%)
>
>everything is working like a charm. Am I missing something?
>
>Regards,
>Yegor
>
>_______________________________________________
>linux-arm-kernel mailing list
>linux-arm-kernel at lists.infradead.org
>http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100804/48297454/attachment-0001.html>

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

* Define CROSS_COMPILE in .config (kernel 2.6.35)
  2010-08-04 10:55 Define CROSS_COMPILE in .config (kernel 2.6.35) Yegor Yefremov
  2010-08-04 11:05 ` tommy.hong
@ 2010-08-04 11:53 ` Russell King - ARM Linux
  1 sibling, 0 replies; 3+ messages in thread
From: Russell King - ARM Linux @ 2010-08-04 11:53 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Aug 04, 2010 at 12:55:36PM +0200, Yegor Yefremov wrote:
> Has anyone tried this option? If I define my CROSS_COMPILE prefix in .config and then call

Suggest you report this to the kbuild folk.

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

end of thread, other threads:[~2010-08-04 11:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-04 10:55 Define CROSS_COMPILE in .config (kernel 2.6.35) Yegor Yefremov
2010-08-04 11:05 ` tommy.hong
2010-08-04 11:53 ` Russell King - ARM Linux

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).