linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [i2c-tools][PATCH] honor CROSS_COMPILE
@ 2011-01-07 19:01 Nishanth Menon
       [not found] ` <1294426874-24973-1-git-send-email-nm-l0cyMroinI0@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Nishanth Menon @ 2011-01-07 19:01 UTC (permalink / raw)
  To: linux-i2c; +Cc: Nishanth Menon

Honor CROSS_COMPILE for builds. useful for folks using
building for platforms like ARM using cross compiler
toolchain. CC could be reused as well, but usage of
CROSS_COMPILE seems more similar to what we have
for u-boot, kernel etc..

Signed-off-by: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org>
---
against svn:
r5894 | khali | 2010-12-12 07:22:29 -0600 (Sun, 12 Dec 2010) | 3 lines

Make value arrays const for block write functions. Patch from Roman
Fietze.

 Makefile |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index b98a4c3..49e07fe 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,20 @@ INSTALL_DIR	:= $(INSTALL) -m 755 -d
 INSTALL_PROGRAM	:= $(INSTALL) -m 755
 RM		:= rm -f
 
+# Acknowledge if CROSS_COMPILE is used
+ifeq ($(CROSS_COMPILE),)
 CC	?= gcc
+else
+AS	= $(CROSS_COMPILE)as
+LD	= $(CROSS_COMPILE)ld
+CC	= $(CROSS_COMPILE)gcc
+AR	= $(CROSS_COMPILE)ar
+NM	= $(CROSS_COMPILE)nm
+LDR	= $(CROSS_COMPILE)ldr
+STRIP	= $(CROSS_COMPILE)strip
+OBJCOPY	= $(CROSS_COMPILE)objcopy
+OBJDUMP	= $(CROSS_COMPILE)objdump
+endif
 
 CFLAGS	?= -O2
 # When debugging, use the following instead
-- 
1.6.3.3

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

end of thread, other threads:[~2011-12-04 19:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-07 19:01 [i2c-tools][PATCH] honor CROSS_COMPILE Nishanth Menon
     [not found] ` <1294426874-24973-1-git-send-email-nm-l0cyMroinI0@public.gmane.org>
2011-01-08 19:23   ` Wolfram Sang
     [not found]     ` <20110108192345.GB4045-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2011-01-08 20:32       ` Nishanth Menon
     [not found]         ` <4D28C9D5.8050401-l0cyMroinI0@public.gmane.org>
2011-01-08 21:01           ` Wolfram Sang
     [not found]             ` <20110108210130.GC4045-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2011-01-10 14:26               ` Jean Delvare
     [not found]                 ` <20110110152608.536de8e7-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2011-01-10 14:27                   ` Nishanth Menon
     [not found]                     ` <4D2B1768.5030303-l0cyMroinI0@public.gmane.org>
2011-01-10 14:44                       ` Jean Delvare
     [not found]                         ` <20110110154435.640c528b-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2011-01-10 14:46                           ` Nishanth Menon
     [not found]                             ` <4D2B1BDD.9070601-l0cyMroinI0@public.gmane.org>
2011-12-04 19:49                               ` Jean Delvare

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