diff options
author | John Rigby <john.rigby@linaro.org> | 2011-03-02 20:03:02 -0700 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2011-03-16 16:06:10 -0600 |
commit | 5c7a9e0c727bfb7190a1ec37d053ee0621fc81b5 (patch) | |
tree | 947cee076a97a286d8725e0b651123e73555f011 | |
parent | 2f48637396cc499d5f3630bfc398236d6caebe1f (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.mk | 4 |
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 627d52c5ab6..93114b2844f 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 |