diff options
author | John Rigby <john.rigby@linaro.org> | 2011-09-12 13:09:22 -0600 |
---|---|---|
committer | Sebastien Jan <s-jan@ti.com> | 2011-09-28 14:38:06 +0200 |
commit | 63510cffdc89a52388fccee98130a6303be4b52e (patch) | |
tree | 84f20aaeb8aa13ad125d9c1feee1defdb6a63a89 | |
parent | 00d56e6764ebd3e95f9a994494d5643bd8763ebb (diff) |
LINARO: Use KBUILD_SCRIPTROOT to cross build scripts
Signed-off-by: John Rigby <john.rigby@linaro.org>
Signed-off-by: Sebastien Jan <s-jan@ti.com>
-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 64ce2b895212..3d7fd086cccb 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) -j1 silentoldconfig prepare scripts # We'll symlink this stuff rm -f $(hdrdir)/Makefile rm -rf $(hdrdir)/include2 |