[Buildroot] svn commit: trunk/buildroot/toolchain/kernel-headers

Erik Andersen andersen at codepoet.org
Mon Oct 9 17:56:26 UTC 2006


On Mon Oct 09, 2006 at 09:13:13AM -0700, aldot at uclibc.org wrote:
> --- trunk/buildroot/toolchain/kernel-headers/kernel-headers.mk	2006-10-09 11:53:10 UTC (rev 16346)
> +++ trunk/buildroot/toolchain/kernel-headers/kernel-headers.mk	2006-10-09 16:13:12 UTC (rev 16347)
> @@ -128,12 +128,15 @@
>  
>  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')
> +

How about something like this:

KERNEL_ARCH := $(shell $(CC) -dumpmachine | 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/)

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the buildroot mailing list