diff options
author | Xavier Boudet <x-boudet@ti.com> | 2012-02-22 14:20:22 +0100 |
---|---|---|
committer | Xavier Boudet <x-boudet@ti.com> | 2012-07-10 17:26:58 +0200 |
commit | 86161a2abc45d342aac501842b594a3f93c9b2c0 (patch) | |
tree | 96bc9140cafca407f76613186c2e64ebcbf3c7b6 | |
parent | f154fe8dcfe3035b0b9aca368a11f7f970902120 (diff) |
LINARO: Use KBUILD_SCRIPTROOT to cross build scripts
Signed-off-by: Xavier Boudet <x-boudet@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 1b26a39c45ce..c8fd73b51241 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 |