Line 77... |
Line 77... |
# 030609 - Fixed odd problem with uClibc build on latest Cygwin where it tried
|
# 030609 - Fixed odd problem with uClibc build on latest Cygwin where it tried
|
# to run the INSTALL script file instead of the systems install binary
|
# to run the INSTALL script file instead of the systems install binary
|
# by adding a suffix to the text file.
|
# by adding a suffix to the text file.
|
# 290609 - Changed linux patch to 2.3 - is a patch derived from revision 42 of
|
# 290609 - Changed linux patch to 2.3 - is a patch derived from revision 42 of
|
# OpenRISC repository's kernel.
|
# OpenRISC repository's kernel.
|
|
# 301109 - Changed GCC patch to one with single precision floating point as
|
|
# default
|
|
# 021209 - Added --disable-werror flag to gdb-6.8 configure line to fix issue
|
|
# with gcc-4.4.1
|
|
|
# TODO: OS X build things - need an "elf.h" from some Linux machine's
|
# TODO: OS X build things - need an "elf.h" from some Linux machine's
|
# /usr/local/include dir and put in Mac's /usr/local/include dir -
|
# /usr/local/include dir and put in Mac's /usr/local/include dir -
|
# this solves issue with Linux compilation
|
# this solves issue with Linux compilation
|
# TODO: OS X build things - add HOST_LOADLIBES="lintl" to make line of uClibc
|
# TODO: OS X build things - add HOST_LOADLIBES="lintl" to make line of uClibc
|
# TODO: OS X build things - must remove the -Werror line in $GDB_VER/gdb/Makefile,
|
# TODO: OS X build things - must remove the -Werror line in $GDB_VER/gdb/Makefile,
|
Line 212... |
Line 217... |
BUSY_VER=busybox-1.7.5
|
BUSY_VER=busybox-1.7.5
|
SIM_VER=or1ksim-0.3.0
|
SIM_VER=or1ksim-0.3.0
|
|
|
## Patches ##
|
## Patches ##
|
BINUTILS_PATCH="$BINUTILS_VER.or32_fixed_patch-v2.1.bz2"
|
BINUTILS_PATCH="$BINUTILS_VER.or32_fixed_patch-v2.1.bz2"
|
GCC_PATCH=$GCC_VER.or32patch.bz2
|
GCC_PATCH=$GCC_VER-or32-fp.patch.bz2
|
LINUX_PATCH="linux_2.6.24_or32_unified_v2.3.bz2"
|
LINUX_PATCH="linux_2.6.24_or32_unified_v2.3.bz2"
|
UCLIBC_PATCH="uClibc-0.9.29-or32-patch-1.1.bz2"
|
UCLIBC_PATCH="uClibc-0.9.29-or32-patch-1.1.bz2"
|
GDB_PATCH="or32-gdb-6.8-patch-2.4.bz2"
|
GDB_PATCH="or32-gdb-6.8-patch-2.4.bz2"
|
|
|
## MD5sum file ##
|
## MD5sum file ##
|
Line 986... |
Line 991... |
|
|
tar xjf $DOWNLOAD_DIR/$ZBALL8
|
tar xjf $DOWNLOAD_DIR/$ZBALL8
|
|
|
echo
|
echo
|
echo "Patching $GDB_VER with $GDB_PATCH"
|
echo "Patching $GDB_VER with $GDB_PATCH"
|
|
echo "Logging output to $GDB_VER-patch.log"
|
cd $GDB_VER
|
cd $GDB_VER
|
|
|
bzcat -dc $DOWNLOAD_DIR/$GDB_PATCH | patch -p1 > $GDB_VER-patch.log 2>&1
|
bzcat -dc $DOWNLOAD_DIR/$GDB_PATCH | patch -p1 > $GDB_VER-patch.log 2>&1
|
|
|
## Make sure that patched ok ##
|
## Make sure that patched ok ##
|
check_exit_code
|
check_exit_code
|
|
|
echo
|
echo
|
echo "Configuring $GDB_VER: --target=$TARGET --prefix=$INSTALL_DIR/$TARGET"
|
echo "Configuring $GDB_VER: --target=$TARGET --prefix=$INSTALL_DIR/$TARGET --disable-werror"
|
|
echo "Logging output to $GDB_VER-configure.log"
|
|
|
./configure --target=$TARGET --prefix=$INSTALL_DIR/$TARGET > $GDB_VER-configure.log 2>&1
|
./configure --target=$TARGET --prefix=$INSTALL_DIR/$TARGET --disable-werror > $GDB_VER-configure.log 2>&1
|
|
|
echo
|
echo
|
echo "Making and installing $GDB_VER"
|
echo "Making and installing $GDB_VER"
|
|
echo "Logging output to $GDB_VER-make.log"
|
make all install > $GDB_VER-make.log 2>&1
|
make all install > $GDB_VER-make.log 2>&1
|
|
|
## Make sure that built ok ##
|
## Make sure that built ok ##
|
check_exit_code
|
check_exit_code
|
|
|