diff mbox

cross compilation of kernel does not need tools to be built

Message ID 4F639294.1030800@canonical.com
State New
Headers show

Commit Message

Tim Gardner March 16, 2012, 7:20 p.m. UTC
> 
> If you mean "do_tools=false dpkg-buildpackage -b -armhf" call then think
> how many people will know about it? Doing it automatically makes life
> easier - especially when we are not able to cross compile tools.
> 

How about this ?

Comments

Marcin Juszkiewicz March 16, 2012, 7:31 p.m. UTC | #1
W dniu 16.03.2012 20:20, Tim Gardner pisze:
>>
>> If you mean "do_tools=false dpkg-buildpackage -b -armhf" call then think
>> how many people will know about it? Doing it automatically makes life
>> easier - especially when we are not able to cross compile tools.
>>
> 
> How about this ?

Acked-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
diff mbox

Patch

From 062e6c5ac296b6ac53b2dc9191bf79fa8cd3391a Mon Sep 17 00:00:00 2001
From: Tim Gardner <tim.gardner@canonical.com>
Date: Fri, 16 Mar 2012 13:19:18 -0600
Subject: [PATCH 2/2] UBUNTU: [Config] correctly specify CROSS_COMPILE for
 tools build

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
---
 debian/rules.d/2-binary-arch.mk |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index 3ccac7c..52b2e57 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -397,10 +397,10 @@  endif
 $(stampdir)/stamp-build-perarch: $(stampdir)/stamp-prepare-perarch
 ifeq ($(do_tools),true)
 	cd $(builddir)/tools/tools/perf && \
-		make HAVE_CPLUS_DEMANGLE=1 $(CROSS_COMPILE) $(conc_level)
+		make HAVE_CPLUS_DEMANGLE=1 CROSS_COMPILE=$(CROSS_COMPILE) $(conc_level)
 	if [ "$(arch)" = "amd64" ] || [ "$(arch)" = "i386" ]; then \
-		cd $(builddir)/tools/tools/power/x86/x86_energy_perf_policy && make $(CROSS_COMPILE); \
-		cd $(builddir)/tools/tools/power/x86/turbostat && make $(CROSS_COMPILE); \
+		cd $(builddir)/tools/tools/power/x86/x86_energy_perf_policy && make CROSS_COMPILE=$(CROSS_COMPILE); \
+		cd $(builddir)/tools/tools/power/x86/turbostat && make CROSS_COMPILE=$(CROSS_COMPILE); \
 	fi
 endif
 	@touch $@
-- 
1.7.9.1