perf tools: Fix the cross compile build
Janne Hellsten [Wed, 21 May 2014 05:14:48 +0000 (14:14 +0900)]
Bug 200006243

Change-Id: Ic8974fccd175e44ee1c712bf5865791e26a88188
Signed-off-by: Janne Hellsten <jhellsten@nvidia.com>
Reviewed-on: http://git-master/r/412475
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

tools/perf/Makefile

index b0f164b..51ad66f 100644 (file)
@@ -64,8 +64,8 @@ ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
                                  -e s/sh[234].*/sh/ -e s/aarch64.*/arm64/ )
 NO_PERF_REGS := 1
 
-CC = $(CROSS_COMPILE)gcc
-AR = $(CROSS_COMPILE)ar
+export CC = $(CROSS_COMPILE)gcc
+export AR = $(CROSS_COMPILE)ar
 
 # Additional ARCH settings for x86
 ifeq ($(ARCH),i386)