diff options
author | Tim Bird <tim.bird@am.sony.com> | 2010-04-05 16:28:16 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-04-07 10:20:02 -0400 |
commit | 1f3dc4fdbdcea345828376f72738ee36b63f6c43 (patch) | |
tree | da9e51aeab489dc43f3e701da40e80634001f5b8 | |
parent | 18f85e38fb0687daa44d9c696c0df97edbab239f (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-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -13,8 +13,8 @@ FILE_VERSION = 6 | |||
13 | 13 | ||
14 | MAKEFLAGS += --no-print-directory | 14 | MAKEFLAGS += --no-print-directory |
15 | 15 | ||
16 | CC = gcc | 16 | CC = $(CROSS_COMPILE)gcc |
17 | AR = ar | 17 | AR = $(CROSS_COMPILE)ar |
18 | EXT = -std=gnu99 | 18 | EXT = -std=gnu99 |
19 | INSTALL = install | 19 | INSTALL = install |
20 | 20 | ||