aboutsummaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorJohn Rigby <john.rigby@linaro.org>2011-09-12 15:09:22 -0400
committerPaolo Pisati <paolo.pisati@canonical.com>2012-08-17 04:19:34 -0400
commit5d205bb3fb3d396558e1be1ec8a1fa2f24118914 (patch)
tree5aa472d4c3cdc53d23c7f875b6e90d7af712c899 /debian
parent71cbf2c542a85c3531cabd7fa2ad0ac080e5a3c0 (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> Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Diffstat (limited to 'debian')
-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 9cae834c79a..fded5c144be 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -10,6 +10,8 @@ build_cd =
10build_O = O=$(builddir)/build-$* 10build_O = O=$(builddir)/build-$*
11endif 11endif
12 12
13kbsr = $(builddir)/build-$*
14
13$(stampdir)/stamp-prepare-%: config-prepare-check-% 15$(stampdir)/stamp-prepare-%: config-prepare-check-%
14 @touch $@ 16 @touch $@
15$(stampdir)/stamp-prepare-tree-%: target_flavour = $* 17$(stampdir)/stamp-prepare-tree-%: target_flavour = $*
@@ -178,7 +180,7 @@ endif
178 sed -e 's/.*CONFIG_DEBUG_INFO=.*/# CONFIG_DEBUG_INFO is not set/g' > \ 180 sed -e 's/.*CONFIG_DEBUG_INFO=.*/# CONFIG_DEBUG_INFO is not set/g' > \
179 $(hdrdir)/.config 181 $(hdrdir)/.config
180 chmod 644 $(hdrdir)/.config 182 chmod 644 $(hdrdir)/.config
181 $(kmake) O=$(hdrdir) -j1 silentoldconfig prepare scripts 183 $(kmake) HOSTCC=$(CROSS_COMPILE)gcc KBUILD_SCRIPTROOT=$(kbsr) O=$(hdrdir) -j1 silentoldconfig prepare scripts
182 # We'll symlink this stuff 184 # We'll symlink this stuff
183 rm -f $(hdrdir)/Makefile 185 rm -f $(hdrdir)/Makefile
184 rm -rf $(hdrdir)/include2 186 rm -rf $(hdrdir)/include2