UBUNTU: [Config] Auto-detect do_tools setting
authorTim Gardner <tim.gardner@canonical.com>
Fri, 16 Mar 2012 18:57:06 +0000 (12:57 -0600)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Mon, 2 Apr 2012 20:22:41 +0000 (13:22 -0700)
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

index 9022d53..17eed6a 100644 (file)
@@ -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