OpenCores
URL https://opencores.org/ocsvn/zipcpu/zipcpu/trunk

Subversion Repositories zipcpu

[/] [zipcpu/] [trunk/] [sw/] [gcc-script.sh] - Diff between revs 202 and 209

Show entire file | Details | Blame | View Log

Rev 202 Rev 209
Line 4... Line 4...
## Filename:    gcc-script.sh
## Filename:    gcc-script.sh
##
##
## Project:     Zip CPU -- a small, lightweight, RISC CPU soft core
## Project:     Zip CPU -- a small, lightweight, RISC CPU soft core
##
##
## Purpose:     To handle all of the GCC configuration options properly.  This
## Purpose:     To handle all of the GCC configuration options properly.  This
##              both runs the GCC configure script, as well as initially running
##              runs the GCC configure script, using options known to work
##      make on the resulting configured directory.
##      with the ZipCPU.
##
##
##
##
## Creator:     Dan Gisselquist, Ph.D.
## Creator:     Dan Gisselquist, Ph.D.
##              Gisselquist Technology, LLC
##              Gisselquist Technology, LLC
##
##
Line 58... Line 58...
 
 
set +h
set +h
set -e
set -e
CLFS_HOST=$MACHTYPE
CLFS_HOST=$MACHTYPE
CLFS_TARGET="zip"
CLFS_TARGET="zip"
INSTALL_BASE=`pwd`/install
if [[ -z "$INSTALLD" ]]
 
then
 
  INSTALLD=`pwd`/install
 
fi
 
if [[ ! $(which zip-as) ]]
 
then
 
  echo "GCC-script ERROR: Unable to find zip-as, the ZipCPU assembler, in your path"
 
  exit -1
 
fi
 
INSTALL_BASE=${INSTALLD}
mkdir -p ${INSTALL_BASE}/cross-tools
mkdir -p ${INSTALL_BASE}/cross-tools
mkdir -p ${INSTALL_BASE}/tools/lib
mkdir -p ${INSTALL_BASE}/tools/lib
mkdir -p ${INSTALL_BASE}/usr/include
mkdir -p ${INSTALL_BASE}/usr/include
mkdir -p build-gcc
mkdir -p build-gcc
cd build-gcc
cd build-gcc
Line 77... Line 86...
        --target=${CLFS_TARGET}                         \
        --target=${CLFS_TARGET}                         \
        --with-pkgversion=zip-gcc-`date +%y%m%d`        \
        --with-pkgversion=zip-gcc-`date +%y%m%d`        \
        --disable-multilib                              \
        --disable-multilib                              \
        --disable-threads --disable-tls                 \
        --disable-threads --disable-tls                 \
        --enable-checking --disable-nls                 \
        --enable-checking --disable-nls                 \
        --without-fp --with-newlib
        --with-newlib
 
 
echo $PATH | grep ${INSTALL_BASE}/cross-tools/bin \
echo $PATH | grep ${INSTALL_BASE}/cross-tools/bin \
        || export PATH=$PATH:${INSTALL_BASE}/cross-tools/bin
        || export PATH=$PATH:${INSTALL_BASE}/cross-tools/bin
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.