diff options
author | David Holsgrove <david.holsgrove@xilinx.com> | 2012-09-20 14:01:38 +1000 |
---|---|---|
committer | David Holsgrove <david.holsgrove@xilinx.com> | 2012-09-20 14:01:38 +1000 |
commit | 395dca5ea86a34df73ccdaee61b6516df06070f4 (patch) | |
tree | 23aa60f588246859597eafb71ba111d8b76ae905 | |
parent | 64d2647b5abb72012178b6e0c350ea8c6c598e93 (diff) | |
download | crosstool-ng-395dca5ea86a34df73ccdaee61b6516df06070f4.tar.gz crosstool-ng-395dca5ea86a34df73ccdaee61b6516df06070f4.tar.bz2 crosstool-ng-395dca5ea86a34df73ccdaee61b6516df06070f4.zip |
arch/microblaze: add new architecture
Add Microblaze architecture support.
This depends on EXPERIMENTAL, as upstream projects do not yet
include full support to build a modern microblaze compiler.
This is in the process of being updated, but is not currently
publicly accessible.
Signed-off-by: "David Holsgrove" <david.holsgrove@xilinx.com>
Message-Id: <9c93e18b3d68b19303f3.1348113870@localhost.localdomain>
PatchWork-ID: 185305
-rw-r--r-- | config/arch/microblaze.in | 22 | ||||
-rw-r--r-- | scripts/build/arch/microblaze.sh | 21 |
2 files changed, 43 insertions, 0 deletions
diff --git a/config/arch/microblaze.in b/config/arch/microblaze.in new file mode 100644 index 00000000..fb38e1fe --- /dev/null +++ b/config/arch/microblaze.in @@ -0,0 +1,22 @@ +# MicroBlaze specific config options + +## depends on EXPERIMENTAL +## +## select ARCH_SUPPORT_ARCH +## select ARCH_FLOAT_SW +## select ARCH_SUPPORTS_BOTH_ENDIAN +## select ARCH_DEFAULT_BE +## select ARCH_SUPPORTS_BOTH_MMU +## select ARCH_DEFAULT_HAS_MMU +## +## help The MicroBlaze architecture, as defined by: +## help http://www.xilinx.com/ +## help +## help Upstream projects do not currently provide +## help full support for the microblaze architecture +## help and as such, this is marked as EXPERIMENTAL +## help for CT-NG. +## help +## help Support is being added for a modern gcc, +## help binutils and gdb along with nptl threading +## help in eglibc for microblaze. diff --git a/scripts/build/arch/microblaze.sh b/scripts/build/arch/microblaze.sh new file mode 100644 index 00000000..2dc810a6 --- /dev/null +++ b/scripts/build/arch/microblaze.sh @@ -0,0 +1,21 @@ +# Compute microblaze specific values + +CT_DoArchTupleValues () { + # The architecture part of the tuple: + CT_TARGET_ARCH="${CT_ARCH}${target_endian_el}" + + # gcc ./configure flags + CT_ARCH_WITH_ARCH= + CT_ARCH_WITH_ABI= + CT_ARCH_WITH_CPU= + CT_ARCH_WITH_TUNE= + CT_ARCH_WITH_FPU= + CT_ARCH_WITH_FLOAT= + + # CFLAGS + case "${CT_ARCH_FLOAT_HW},${CT_ARCH_FLOAT_SW}" in + y,) CT_ARCH_FLOAT_CFLAG="-mhard-float" ;; + ,y) CT_ARCH_FLOAT_CFLAG="-msoft-float" ;; + esac + +} |