scripts/build/arch/x86.sh
author David Holsgrove <david.holsgrove@xilinx.com>
Thu Sep 20 14:01:38 2012 +1000 (2012-09-20)
changeset 3053 7e41a188bd7c
parent 1635 5d1936ad5ba8
child 3169 9d0b37f08a10
permissions -rw-r--r--
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
     1 # Compute x86-specific values
     2 
     3 # This one really needs a little love! :-(
     4 
     5 CT_DoArchTupleValues() {
     6 
     7     # Override the architecture part of the tuple:
     8     if [ "${CT_ARCH_64}" = "y" ]; then
     9         CT_TARGET_ARCH=x86_64
    10     else
    11         arch="${CT_ARCH_ARCH}"
    12         [ -z "${arch}" ] && arch="${CT_ARCH_TUNE}"
    13         case "${arch}" in
    14             "")                           CT_TARGET_ARCH=i386;;
    15             i386|i486|i586|i686)          CT_TARGET_ARCH="${arch}";;
    16             winchip*)                     CT_TARGET_ARCH=i486;;
    17             pentium|pentium-mmx|c3*)      CT_TARGET_ARCH=i586;;
    18             pentiumpro|pentium*|athlon*)  CT_TARGET_ARCH=i686;;
    19             prescott)                     CT_TARGET_ARCH=i686;;
    20             *)                            CT_TARGET_ARCH=i586;;
    21         esac
    22     fi
    23 }