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

Subversion Repositories zipcpu

[/] [zipcpu/] [trunk/] [sw/] [nlib-script.sh] - Blame information for rev 202

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

Line No. Rev Author Line
1 202 dgisselq
#!/bin/bash
2
 
3
VERSION="newlib-2.5.0"
4
INSTALL_BASE=`pwd`/install
5
if [[ ! -d $INSTALL_BASE ]]
6
then
7
  echo "I cant seem to find the install directory," $INSTALL_BASE
8
  exit;
9
fi
10
 
11
if [[ -d build-nlib ]]
12
then
13
  rm -rf build-nlib
14
fi
15
 
16
cp -R $VERSION-zip/newlib/libc/include/* ${INSTALL_BASE}/usr/include
17
 
18
set +h
19
set -e
20
 
21
mkdir build-nlib
22
cd build-nlib
23
 
24
CLFS_HOST=$MACHTYPE
25
CLFS_TARGET="zip"
26
GCC_BASE=${INSTALL_BASE}/../build-gcc/
27
PATH=$PATH:${INSTALL_BASE}/cross-tools/bin:${GCC_BASE}/gcc
28
../$VERSION-zip/configure --prefix=${INSTALL_BASE}/cross-tools  \
29
        --target=${CLFS_TARGET} --host=$MACHTYPE --without-fp
30
 

powered by: WebSVN 2.1.0

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