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:
parent
ff5804f208
commit
7d8366f375
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue