From patchwork Fri Mar 16 19:20:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Gardner X-Patchwork-Id: 147245 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 8CA16B7011 for ; Sat, 17 Mar 2012 06:21:21 +1100 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1S8ci7-0004i3-RL; Fri, 16 Mar 2012 19:21:11 +0000 Received: from mail.tpi.com ([70.99.223.143]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1S8ci5-0004h0-Bl for kernel-team@lists.ubuntu.com; Fri, 16 Mar 2012 19:21:09 +0000 Received: from [10.0.2.6] (host-174-45-43-11.hln-mt.client.bresnan.net [174.45.43.11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mail.tpi.com (Postfix) with ESMTP id E96768AEF0; Fri, 16 Mar 2012 12:20:39 -0700 (PDT) Message-ID: <4F639294.1030800@canonical.com> Date: Fri, 16 Mar 2012 13:20:52 -0600 From: Tim Gardner User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120313 Thunderbird/11.0 MIME-Version: 1.0 To: Marcin Juszkiewicz Subject: Re: cross compilation of kernel does not need tools to be built References: <4F624282.3010906@linaro.org> <20120316110602.GB3391@shadowen.org> <4F63269F.9090808@linaro.org> In-Reply-To: <4F63269F.9090808@linaro.org> X-Enigmail-Version: 1.4 Cc: kernel-team@lists.ubuntu.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list Reply-To: tim.gardner@canonical.com List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kernel-team-bounces@lists.ubuntu.com Errors-To: kernel-team-bounces@lists.ubuntu.com > > 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 From 062e6c5ac296b6ac53b2dc9191bf79fa8cd3391a Mon Sep 17 00:00:00 2001 From: Tim Gardner 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 --- 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