From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Stephan Linz Date: Fri, 10 Feb 2012 19:09:45 +0100 Message-Id: <9ec9077c4778c91e427fff3d71dcda7f9e30c53d.1328897322.git.linz@li-pro.net> In-Reply-To: <9f37446532355a74751c8df5c01c8bce5cac0ba7.1328897322.git.linz@li-pro.net> References: <9f37446532355a74751c8df5c01c8bce5cac0ba7.1328897322.git.linz@li-pro.net> In-Reply-To: <9f37446532355a74751c8df5c01c8bce5cac0ba7.1328897322.git.linz@li-pro.net> References: <9f37446532355a74751c8df5c01c8bce5cac0ba7.1328897322.git.linz@li-pro.net> Subject: [ptxdist] [PATCH 2/2] microblaze: support little endian configuration Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: m.olbrich@pengutronix.de Since MicroBlaze in general supports big and little endian, both is possible. The default is big endian. Signed-off-by: Stephan Linz --- platforms/architecture.in | 4 +++- scripts/lib/ptxd_make_00-init.sh | 14 +++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/platforms/architecture.in b/platforms/architecture.in index e725ca3..ed36e8a 100644 --- a/platforms/architecture.in +++ b/platforms/architecture.in @@ -83,6 +83,7 @@ choice config ARCH_MICROBLAZE bool "microblaze " select HAS_MMU + select ARCH_SUPPORTS_ENDIAN_LITTLE select ARCH_SUPPORTS_ENDIAN_BIG help This is support for the Xilinx MicroBlaze architecture (with MMU). @@ -192,7 +193,8 @@ config ARCH_SUPPORTS_ENDIAN_LITTLE choice prompt "endianess " - default ENDIAN_LITTLE + default ENDIAN_LITTLE if !ARCH_MICROBLAZE + default ENDIAN_BIG if ARCH_MICROBLAZE config ENDIAN_BIG bool "big " diff --git a/scripts/lib/ptxd_make_00-init.sh b/scripts/lib/ptxd_make_00-init.sh index 526dbae..da72d29 100644 --- a/scripts/lib/ptxd_make_00-init.sh +++ b/scripts/lib/ptxd_make_00-init.sh @@ -35,7 +35,19 @@ ptxd_init_arch() { ;; microblaze) - ipkg_arch=mb + local target="$(ptxd_get_ptxconf PTXCONF_GNU_TARGET)" + + case "${target}" in + microblaze-*gnu) + ipkg_arch=mbeb + ;; + microblazeel-*gnu) + ipkg_arch=mbel + ;; + *) + ipkg_arch=mb + ;; + esac ;; esac -- 1.7.0.4 -- ptxdist mailing list ptxdist@pengutronix.de