aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Rigby <john.rigby@linaro.org>2011-03-02 20:03:02 -0700
committerJohn Rigby <john.rigby@linaro.org>2011-07-25 14:41:45 -0600
commit14236b76f468b7b775dd3d021e8c66d13265c9e5 (patch)
tree076b77e1009ba3b44bda13f5db2af175af7ebe15
parent9871e70349f5d3604242c16c20288387ca9f4107 (diff)
LINARO: Use KBUILD_SCRIPTROOT to cross build scripts
Signed-off-by: John Rigby <john.rigby@linaro.org>
-rw-r--r--debian/rules.d/2-binary-arch.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index 3eb67fef59c..8e0315d97f7 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -10,6 +10,8 @@ build_cd =
build_O = O=$(builddir)/build-$*
endif
+kbsr = $(builddir)/build-$*
+
prepare-%: $(stampdir)/stamp-prepare-%
@# Empty for make to be happy
$(stampdir)/stamp-prepare-%: $(stampdir)/stamp-prepare-tree-% prepare-checks-%
@@ -161,7 +163,7 @@ endif
sed -e 's/.*CONFIG_DEBUG_INFO=.*/# CONFIG_DEBUG_INFO is not set/g' > \
$(hdrdir)/.config
chmod 644 $(hdrdir)/.config
- $(kmake) O=$(hdrdir) silentoldconfig prepare scripts
+ $(kmake) HOSTCC=$(CROSS_COMPILE)gcc KBUILD_SCRIPTROOT=$(kbsr) O=$(hdrdir) silentoldconfig prepare scripts
# We'll symlink this stuff
rm -f $(hdrdir)/Makefile
rm -rf $(hdrdir)/include2