diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-10-11 11:36:57 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-10-11 11:36:57 +0000 |
commit | 994d447436207f3ff579754b65b5f5bf3ff9d215 (patch) | |
tree | 64e5fcc1e6c2e510bdee7e7c8a693d6b643724cf /toolchain/kernel-headers | |
parent | 867e0beb045cbdb8b6a8f5608ac60db5d076f884 (diff) |
- normalize KERNEL_ARCH via sed
Diffstat (limited to 'toolchain/kernel-headers')
-rw-r--r-- | toolchain/kernel-headers/kernel-headers.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/toolchain/kernel-headers/kernel-headers.mk b/toolchain/kernel-headers/kernel-headers.mk index b49af2fb6..afad596eb 100644 --- a/toolchain/kernel-headers/kernel-headers.mk +++ b/toolchain/kernel-headers/kernel-headers.mk @@ -129,10 +129,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') +KERNEL_ARCH:=$(shell $(SHELL) -c "echo \"$(ARCH)\" | sed -e \"s/-.*//\" \ + -e s/i.86/i386/ -e s/sun4u/sparc64/ \ + -e s/arm.*/arm/ -e s/sa110/arm/ \ + -e s/s390x/s390/ -e s/parisc64/parisc/ \ + -e s/ppc.*/powerpc/ -e s/mips.*/mips/") $(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 + touch $(LINUX_HEADERS_UNPACK_DIR)/.patched $(LINUX_HEADERS_DIR)/.configured: $(LINUX_HEADERS_UNPACK_DIR)/.patched (cd $(LINUX_HEADERS_UNPACK_DIR) ; \ |