[CRIU] [PATCH] Makefile: add CROSS_COMPILE directive
Chanho Park
chanho61.park at samsung.com
Thu May 30 04:56:12 EDT 2013
This patch adds CROSS_COMPILE directive. We can use it like below:
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
Signed-off-by: Chanho Park <chanho61.park at samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham at samsung.com>
---
Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 485537a..3a46a58 100644
--- a/Makefile
+++ b/Makefile
@@ -26,12 +26,12 @@ include Makefile.config
FIND := find
CSCOPE := cscope
RM := rm -f
-LD := ld
-CC ?= gcc
+LD := $(CROSS_COMPILE)ld
+CC := $(CROSS_COMPILE)gcc
NM := nm
SH := bash
MAKE := make
-OBJCOPY := objcopy
+OBJCOPY := $(CROSS_COMPILE)objcopy
#
# Fetch ARCH from the uname if not yet set
--
1.7.9.5
More information about the CRIU
mailing list