[PATCH 1/2] make: Allow to use CROSS_COMPILE prefix
Cyrill Gorcunov
gorcunov at openvz.org
Thu May 30 05:41:17 EDT 2013
Note it can be overriden from command line.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
CC: Chanho Park <chanho61.park at samsung.com>
CC: Myungjoo Ham <myungjoo.ham at samsung.com>
---
Makefile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index 485537a..b418665 100644
--- a/Makefile
+++ b/Makefile
@@ -26,12 +26,12 @@ include Makefile.config
FIND := find
CSCOPE := cscope
RM := rm -f
-LD := ld
-CC ?= gcc
-NM := nm
+LD := $(CROSS_COMPILE)ld
+CC := $(CROSS_COMPILE)gcc
+NM := $(CROSS_COMPILE)nm
SH := bash
MAKE := make
-OBJCOPY := objcopy
+OBJCOPY := $(CROSS_COMPILE)objcopy
#
# Fetch ARCH from the uname if not yet set
--
1.8.1.4
--UoPmpPX/dBe4BELn--
More information about the CRIU
mailing list