aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Rigby <john.rigby@linaro.org>2011-09-12 13:09:22 -0600
committerJohn Rigby <john.rigby@linaro.org>2011-11-16 15:00:27 -0700
commitcc6f48a18ff80802878d73a5598769524569dd4e (patch)
tree44bbc7c31a39ab8d652ec3d16635d367dd671675
parente8017edcedc50dd3520ddd7a1be7db4dc3e7beb2 (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 f4a2f44feda..8b53477811a 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-$*
+
$(stampdir)/stamp-prepare-%: config-prepare-check-%
@touch $@
$(stampdir)/stamp-prepare-tree-%: target_flavour = $*
@@ -175,7 +177,7 @@ endif
sed -e 's/.*CONFIG_DEBUG_INFO=.*/# CONFIG_DEBUG_INFO is not set/g' > \
$(hdrdir)/.config
chmod 644 $(hdrdir)/.config
- $(kmake) O=$(hdrdir) -j1 silentoldconfig prepare scripts
+ $(kmake) HOSTCC=$(CROSS_COMPILE)gcc KBUILD_SCRIPTROOT=$(kbsr) O=$(hdrdir) -j1 silentoldconfig prepare scripts
# We'll symlink this stuff
rm -f $(hdrdir)/Makefile
rm -rf $(hdrdir)/include2