From 8bee41d7344df7f91c9812411fff4c89e6ddd5db Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Fri, 7 Dec 2018 14:46:00 -0800 Subject: Remove a TBD It only applied to core-pass-2 compiler; final compiler can locate the linker script just fine. Signed-off-by: Alexey Neyman --- scripts/build/libc/moxiebox.sh | 8 -------- 1 file changed, 8 deletions(-) (limited to 'scripts/build') diff --git a/scripts/build/libc/moxiebox.sh b/scripts/build/libc/moxiebox.sh index 96a63ff4..f5421878 100644 --- a/scripts/build/libc/moxiebox.sh +++ b/scripts/build/libc/moxiebox.sh @@ -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" -- cgit v1.2.3 From e85ec884ade523c1aa332d7819c539934f1c860a Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Fri, 7 Dec 2018 14:49:03 -0800 Subject: Use -mel/-meb for moxie Signed-off-by: Alexey Neyman --- scripts/build/arch/moxie.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts/build') diff --git a/scripts/build/arch/moxie.sh b/scripts/build/arch/moxie.sh index 72c82c93..9545d194 100644 --- a/scripts/build/arch/moxie.sh +++ b/scripts/build/arch/moxie.sh @@ -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 -- cgit v1.2.3