debian/rules.d/Makefile: Override architecture detection when building userland headers

Martin Michlmayr found that userland builds fail if 'uname -m' reports
the native kernel architecture, and that's because we don't explicitly
set ARCH for the headers_install target.  That's fine for most cases
of a 32-bit chroot on a 64-bit kernel because a single source
architecture covers both, but arm/arm64 is an exception.

This doesn't make actual cross-builds of userland tools work.
This commit is contained in:
Ben Hutchings 2016-06-12 18:50:32 +01:00
parent ff5804f208
commit 7d8366f375
2 changed files with 3 additions and 1 deletions

2
debian/changelog vendored
View File

@ -12,6 +12,8 @@ linux (4.7~rc2-1~exp1) UNRELEASED; urgency=medium
later be signed
* [rt] Disable until it is updated for 4.7 or later
* cpupower: Bump soname version and rename library package accordingly
* debian/rules.d/Makefile: Override architecture detection when building
userland headers
-- Ben Hutchings <ben@decadent.org.uk> Tue, 07 Jun 2016 19:37:55 +0100

View File

@ -11,6 +11,6 @@ include $(top_rulesdir)/Makefile.inc
# Build userland headers first
unexport VERSION
all-local:
$(MAKE) -C $(top_srcdir) O=$(CURDIR) \
$(MAKE) -C $(top_srcdir) ARCH=$(KERNEL_ARCH) O=$(CURDIR) \
INSTALL_HDR_PATH=$(CURDIR) headers_install
all-recursive: all-local