diff options
author | John Rigby <john.rigby@linaro.org> | 2011-03-02 20:03:02 -0700 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2011-08-21 23:21:21 -0600 |
commit | ced1f69714117f9c07ee28a3e4cd3d81623d55dc (patch) | |
tree | 226e65ba240e4ffe51fb5dabdced8c090cdcea82 | |
parent | f4aa2e33ca35d121cc7137a92b3c1a2b418ee37d (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 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 |