2012-09-20 04:01:38 +00:00
|
|
|
# Compute microblaze specific values
|
|
|
|
|
|
|
|
CT_DoArchTupleValues () {
|
|
|
|
# The architecture part of the tuple:
|
2013-01-20 12:58:22 +00:00
|
|
|
CT_TARGET_ARCH="${CT_ARCH}${CT_ARCH_SUFFIX:-${target_endian_el}}"
|
2012-09-20 04:01:38 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
}
|
2016-05-21 20:16:52 +00:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# Get multilib architecture-specific target
|
|
|
|
# Usage: CT_DoArchMultilibTarget "multilib flags" "target tuple"
|
|
|
|
CT_DoArchMultilibTarget ()
|
|
|
|
{
|
|
|
|
local target="${1}"; shift
|
|
|
|
local -a multi_flags=( "$@" )
|
|
|
|
|
|
|
|
echo "${target}"
|
|
|
|
}
|