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

Subversion Repositories zipcpu

[/] [zipcpu/] [trunk/] [sw/] [nlib-script.sh] - Rev 202

Go to most recent revision | Compare with Previous | Blame | View Log

#!/bin/bash
 
VERSION="newlib-2.5.0"
INSTALL_BASE=`pwd`/install
if [[ ! -d $INSTALL_BASE ]]
then
  echo "I cant seem to find the install directory," $INSTALL_BASE
  exit;
fi
 
if [[ -d build-nlib ]]
then
  rm -rf build-nlib 
fi
 
cp -R $VERSION-zip/newlib/libc/include/* ${INSTALL_BASE}/usr/include
 
set +h
set -e
 
mkdir build-nlib
cd build-nlib
 
CLFS_HOST=$MACHTYPE
CLFS_TARGET="zip"
GCC_BASE=${INSTALL_BASE}/../build-gcc/
PATH=$PATH:${INSTALL_BASE}/cross-tools/bin:${GCC_BASE}/gcc
../$VERSION-zip/configure --prefix=${INSTALL_BASE}/cross-tools	\
        --target=${CLFS_TARGET}	--host=$MACHTYPE --without-fp
 
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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