aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Bird <tim.bird@am.sony.com>2010-04-05 16:28:16 -0400
committerSteven Rostedt <rostedt@goodmis.org>2010-04-07 10:20:02 -0400
commit1f3dc4fdbdcea345828376f72738ee36b63f6c43 (patch)
treeda9e51aeab489dc43f3e701da40e80634001f5b8
parent18f85e38fb0687daa44d9c696c0df97edbab239f (diff)
build: Add CROSS_COMPILE for cross-compilation
Adjust Makefile to allow cross-compilation (using CROSS_COMPILE variable) To use, do something like: 'make CROSS_COMPILE=arm-eabi-linux-' and make sure 'arm-eabi-linux-gcc' and friends on on your PATH You can also just set CROSS_COMPILE in your environment variable before calling 'make'. Signed-off-by: Tim Bird <tim.bird@am.sony.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 121c101..d13edec 100644
--- a/Makefile
+++ b/Makefile
@@ -13,8 +13,8 @@ FILE_VERSION = 6
13 13
14MAKEFLAGS += --no-print-directory 14MAKEFLAGS += --no-print-directory
15 15
16CC = gcc 16CC = $(CROSS_COMPILE)gcc
17AR = ar 17AR = $(CROSS_COMPILE)ar
18EXT = -std=gnu99 18EXT = -std=gnu99
19INSTALL = install 19INSTALL = install
20 20