FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 03-16-2012, 05:57 PM
Tim Gardner
 
Default Auto-detect do_tools setting

Cross compiles likely don't need do_tools=true.

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
---
debian/rules.d/0-common-vars.mk | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/debian/rules.d/0-common-vars.mk b/debian/rules.d/0-common-vars.mk
index 9022d53..17eed6a 100644
--- a/debian/rules.d/0-common-vars.mk
+++ b/debian/rules.d/0-common-vars.mk
@@ -166,9 +166,14 @@ do_full_source=false

# build tools
ifneq ($(wildcard $(CURDIR)/tools),)
-do_tools?=true
+ ifeq ($(do_tools),)
+ ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+ do_tools=false
+ endif
+ endif
+ do_tools?=true
else
-do_tools?=false
+ do_tools?=false
endif
tools_pkg_name=$(src_pkg_name)-tools-$(abi_release)
tools_common_pkg_name=$(src_pkg_name)-tools-common
--
1.7.9.1


--------------030007070207080808080406
Content-Type: text/x-patch;
name="0002-UBUNTU-Config-correctly-specify-CROSS_COMPILE-for-to.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename*0="0002-UBUNTU-Config-correctly-specify-CROSS_COMPILE-for-to.pa";
filename*1="tch"
 

Thread Tools




All times are GMT. The time now is 03:57 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org