From c220581c789a49e6e00e7125301bd23d1651224a Mon Sep 17 00:00:00 2001 From: Jan Drazil Date: Wed, 19 Mar 2014 13:01:05 +0100 Subject: [PATCH] Fix microblize little endian toolchain Buildroot toolchain creates big endian binaries instead of little endian ones for microblaze architecture. The reason is wrong BR2_ARCH string. KERNEL_ARCH must contain microblaze in both cases. Signed-off-by: Jan Drazil Signed-off-by: Jan Viktorin Acked-by: Gustavo Zacarias Tested-by: Gustavo Zacarias Signed-off-by: Peter Korsgaard --- Makefile | 3 ++- arch/Config.in.microblaze | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 011af57620..d49d7bf6b2 100644 --- a/Makefile +++ b/Makefile @@ -318,7 +318,8 @@ KERNEL_ARCH:=$(shell echo "$(ARCH)" | sed -e "s/-.*//" \ -e s/parisc64/parisc/ \ -e s/powerpc64/powerpc/ \ -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \ - -e s/sh.*/sh/) + -e s/sh.*/sh/ \ + -e s/microblazeel/microblaze/) ZCAT:=$(call qstrip,$(BR2_ZCAT)) BZCAT:=$(call qstrip,$(BR2_BZCAT)) diff --git a/arch/Config.in.microblaze b/arch/Config.in.microblaze index dbdd99a19b..2d4c1fec43 100644 --- a/arch/Config.in.microblaze +++ b/arch/Config.in.microblaze @@ -1,5 +1,6 @@ config BR2_ARCH - default "microblaze" + default "microblazeel" if BR2_microblazeel + default "microblaze" if BR2_microblazebe config BR2_ENDIAN default "LITTLE" if BR2_microblazeel -- 2.30.2