mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Stephan Linz <linz@li-pro.net>
To: ptxdist@pengutronix.de
Cc: m.olbrich@pengutronix.de
Subject: [ptxdist] [PATCH 2/2] microblaze: support little endian configuration
Date: Fri, 10 Feb 2012 19:09:45 +0100	[thread overview]
Message-ID: <9ec9077c4778c91e427fff3d71dcda7f9e30c53d.1328897322.git.linz@li-pro.net> (raw)
In-Reply-To: <9f37446532355a74751c8df5c01c8bce5cac0ba7.1328897322.git.linz@li-pro.net>
In-Reply-To: <9f37446532355a74751c8df5c01c8bce5cac0ba7.1328897322.git.linz@li-pro.net>

Since MicroBlaze in general supports big and little endian,
both is possible. The default is big endian.

Signed-off-by: Stephan Linz <linz@li-pro.net>
---
 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

  reply	other threads:[~2012-02-10 18:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-10 18:09 [ptxdist] [PATCH 1/2] host-xl-tools: version bump 1.0.1 -> 1.1.0 Stephan Linz
2012-02-10 18:09 ` Stephan Linz [this message]
2012-02-14 21:32 ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9ec9077c4778c91e427fff3d71dcda7f9e30c53d.1328897322.git.linz@li-pro.net \
    --to=linz@li-pro.net \
    --cc=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox