Patchwork cross compilation of kernel does not need tools to be built

login
register
mail settings
Submitter Tim Gardner
Date March 16, 2012, 7:20 p.m.
Message ID <4F639294.1030800@canonical.com>
Download mbox | patch
Permalink /patch/147245/
State New
Headers show

Comments

Tim Gardner - March 16, 2012, 7:20 p.m.
> 
> 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 ?
Marcin Juszkiewicz - March 16, 2012, 7:31 p.m.
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>

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