ARC64: Add support for arc64 target

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
This commit is contained in:
Alexey Brodkin 2019-12-26 11:53:54 +03:00 committed by Stephanos Ioannidis
parent ee3d85da49
commit bc1f47c603
2 changed files with 19 additions and 3 deletions

View File

@ -2,15 +2,20 @@
## no-package
## select ARCH_SUPPORTS_32
## select ARCH_SUPPORTS_64
## select ARCH_DEFAULT_32
## select ARCH_SUPPORTS_BOTH_MMU
## select ARCH_DEFAULT_HAS_MMU
## select ARCH_SUPPORTS_EITHER_ENDIAN
## select ARCH_SUPPORTS_EITHER_ENDIAN if ARCH_32
## select ARCH_DEFAULT_LE
## select ARCH_SUPPORTS_WITH_CPU
## select GCC_REQUIRE_7_or_later
## select BINUTILS_REQUIRE_2_30_or_later
## select LINUX_REQUIRE_4_8_or_later if KERNEL_LINUX
# Fixme: when ARC64 gets into upstream autotools package
# for now we need to use config.sub bundled in CT-NG
## select TARGET_SKIP_CONFIG_SUB
##
## help The Synopsys DesignWare ARC architecture, see more info here:
## help https://www.synopsys.com/designware-ip/processor-solutions/arc-processors.html

View File

@ -2,8 +2,19 @@
CT_DoArchTupleValues()
{
# The architecture part of the tuple:
CT_TARGET_ARCH="${CT_ARCH}${CT_ARCH_SUFFIX:-${target_endian_eb}}"
case "${CT_ARCH_BITNESS}" in
32)
CT_TARGET_ARCH="${CT_ARCH}${CT_ARCH_SUFFIX:-${target_endian_eb}}"
;;
64)
# arc64 is little-endian only for now
# and thus "-mlittle-endian" option in GCC is obsolete for arc64
CT_TARGET_ARCH="arc64${CT_ARCH_SUFFIX}"
CT_ARCH_ENDIAN_CFLAG=""
# The same goes to the linker - we only build for little-endian.
CT_ARCH_ENDIAN_LDFLAG=""
;;
esac
}
CT_DoArchUClibcConfig()