summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-10-09 16:13:12 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-10-09 16:13:12 +0000
commite9e73bb4aeacc324e2dd98a92747fc3187760a2d (patch)
treefc4dffd0b3bfa9ffd94d3264baf67dc0159da560 /toolchain
parent7c24ceac532d6d77e30fa35d54c6b544c12b2b2a (diff)
- we need to pass ARCH to the kernel; The kernel does not have a table to
normalize the passed in ARCH, from the looks, so we have to normalize it manually. XXX: FIXME upstream via a simple shell script like the cc-checks! FIXME: flesh this out..
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/kernel-headers/kernel-headers.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/toolchain/kernel-headers/kernel-headers.mk b/toolchain/kernel-headers/kernel-headers.mk
index f999ebfd4..b49af2fb6 100644
--- a/toolchain/kernel-headers/kernel-headers.mk
+++ b/toolchain/kernel-headers/kernel-headers.mk
@@ -128,12 +128,15 @@ endif
ifeq ($(LINUX_HEADERS_IS_KERNEL),y)
# full kernel tarball >= 2.6.18
+
+KERNEL_ARCH:=$(shell $(SHELL) -c 'if test "$(ARCH)" = "i486" -o "$(ARCH)" = "i586"; then echo i386; else echo $(ARCH); fi')
+
$(LINUX_HEADERS_UNPACK_DIR)/.patched: $(LINUX_HEADERS_UNPACK_DIR)/.unpacked
toolchain/patch-kernel.sh $(LINUX_HEADERS_UNPACK_DIR) toolchain/kernel-headers linux-$(LINUX_HEADERS_VERSION)\*.patch
$(LINUX_HEADERS_DIR)/.configured: $(LINUX_HEADERS_UNPACK_DIR)/.patched
(cd $(LINUX_HEADERS_UNPACK_DIR) ; \
- $(MAKE) INSTALL_HDR_PATH=$(LINUX_HEADERS_DIR) headers_install)
+ $(MAKE) ARCH=$(KERNEL_ARCH) INSTALL_HDR_PATH=$(LINUX_HEADERS_DIR) headers_install)
touch $(LINUX_HEADERS_DIR)/.configured
else
# the sanitized kernel-headers