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"
|