Merge pull request #1112 from stilor/moxie-fix

Moxie fix
This commit is contained in:
Alexey Neyman 2018-12-07 17:45:11 -08:00 committed by GitHub
commit 1f65837c01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 8 deletions

View File

@ -4,6 +4,7 @@
# autoconfig and automake.
## depends on ARCH_MOXIE
## depends on ARCH_LE
## depends on BARE_METAL
## select LIBC_NEWLIB_SHOW
## select LIBC_SUPPORT_THREADS_NONE

View File

@ -142,10 +142,12 @@ config ARCH_LE
config ARCH_BE_LE
bool
prompt "Both, default big endian"
depends on ARCH_SUPPORTS_BOTH_ENDIAN
config ARCH_LE_BE
bool
prompt "Both, default little endian"
depends on ARCH_SUPPORTS_BOTH_ENDIAN
endchoice

View File

@ -1,5 +1,6 @@
CT_EXPERIMENTAL=y
CT_ARCH_MOXIE=y
CT_ARCH_LE=y
CT_DEBUG_GDB=y
CT_GDB_CROSS_SIM=y
# CT_GDB_CROSS_PYTHON is not set

View File

@ -3,6 +3,11 @@
# No arch-specific overrides yet
CT_DoArchTupleValues()
{
case "${CT_ARCH_ENDIAN}" in
big) CT_ARCH_ENDIAN_CFLAG=-meb;;
little) CT_ARCH_ENDIAN_CFLAG=-mel;;
esac
case "${CT_LIBC}" in
moxiebox)
CT_TARGET_SYS=moxiebox

View File

@ -23,14 +23,6 @@ moxiebox_main()
{
newlib_main
# newlib installs the linker script, moxiebox.ld, to the
# PREFIX/moxie-unknown-moxiebox/lib, but ld searches PREFIX/lib when
# configured for that target. ld does find scripts in PREFIX/TARGET/lib
# for other targets, so this seems to be moxie architecture's quirk.
# Move it to PREFIX/lib.
# TBD CT_DoExecLog ALL mv -v "${CT_SYSROOT_DIR}/lib/"*.ld "${CT_PREFIX_DIR}/lib"
# TBD what about moxie-*-elf? Does it need the same?
CT_DoStep INFO "Installing moxiebox runtime and VM"
CT_mkdir_pushd "${CT_BUILD_DIR}/build-libc-moxiebox"