changeset 1776:398efd71a43e

More fiddling with sh2 target and elf2flt.
author Rob Landley <rob@landley.net>
date Tue, 14 Jul 2015 19:38:54 -0500
parents c197b67b381a
children 6b138d2a7a49
files sources/sections/ccwrap.sh sources/sections/gcc.sh sources/targets/sh2eb
diffstat 3 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/sources/sections/ccwrap.sh	Tue Jul 14 19:36:46 2015 -0500
+++ b/sources/sections/ccwrap.sh	Tue Jul 14 19:38:54 2015 -0500
@@ -12,7 +12,8 @@
 mkdir -p "$STAGE_DIR/bin" &&
 "$TEMP" "$SOURCES/toys/ccwrap.c" -Os $CFLAGS \
   -o "$STAGE_DIR/bin/${TOOLCHAIN_PREFIX}cc" $STATIC_FLAGS \
-  -DDYNAMIC_LINKER=\"/lib/ld-${LIBC_TYPE}.so.0\" ${ELF2FLT:+-DELF2FLT} &&
+  -DDYNAMIC_LINKER=\"/lib/ld-${LIBC_TYPE}.so.0\" \
+  ${HOST_ARCH:+${ELF2FLT:+-DELF2FLT}} &&
 echo -e "#!/bin/bash\n\n${TOOLCHAIN_PREFIX}cc -E "'"$@"' \
   > "$STAGE_DIR/bin/${TOOLCHAIN_PREFIX}cpp" &&
 chmod +x "$STAGE_DIR/bin/${TOOLCHAIN_PREFIX}cpp" || dienow
--- a/sources/sections/gcc.sh	Tue Jul 14 19:36:46 2015 -0500
+++ b/sources/sections/gcc.sh	Tue Jul 14 19:38:54 2015 -0500
@@ -68,7 +68,7 @@
     ac_cv_path_AS_FOR_TARGET="${ARCH}-as" \
     ac_cv_path_LD_FOR_TARGET="${ARCH}-ld" \
     configure_gcc --enable-threads=posix --enable-shared \
-      --build="$CROSS_HOST" --host="$CROSS_TARGET"
+      --build="$CROSS_HOST" --host="${CROSS_TARGET/unknown/walrus}"
 fi
 
 # Now that it's configured, build and install gcc
--- a/sources/targets/sh2eb	Tue Jul 14 19:36:46 2015 -0500
+++ b/sources/targets/sh2eb	Tue Jul 14 19:38:54 2015 -0500
@@ -6,8 +6,10 @@
 KERNEL_PATH=arch/${KARCH}/boot/zImage
 GCC_FLAGS= #"--with-cpu=m4-nofpu"
 BINUTILS_FLAGS=
+QEMU_TEST=$KARCH
+
 ELF2FLT=sh-unknown-linux
-QEMU_TEST=$KARCH
+BUILD_STATIC=all
 
 CONSOLE="ttySC1 noiotrap"