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

Subversion Repositories zipcpu

[/] [zipcpu/] [trunk/] [sw/] [gas-script.sh] - Diff between revs 103 and 111

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 103 Rev 111
#!/bin/bash
#!/bin/bash
 
 
if [[ ! -d binutils-2.25 ]]
if [[ ! -d binutils-2.25 ]]
then
then
  tar -xvjf ./binutils-2.25.tar.bz2
  tar -xjf ./binutils-2.25.tar.bz2
  cd binutils-2.25
  cd binutils-2.25
  patch -p1 <../binutils-2.25.patch
  patch -p1 <../binutils-2.25.patch
  cd ..
  cd ..
fi
fi
 
 
set +h
set +h
set -e
set -e
CLFS_HOST="x86_64-cross-linux-gnu"
CLFS_HOST="x86_64-cross-linux-gnu"
CLFS_TARGET="zip"
CLFS_TARGET="zip"
INSTALL_BASE=`pwd`/install
INSTALL_BASE=`pwd`/install
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 build-gas
mkdir -p build-gas
cd build-gas
cd build-gas
AR=ar AS=as     \
AR=ar AS=as     \
../binutils-2.25/configure --with-gas --prefix=${INSTALL_BASE}/cross-tools \
../binutils-2.25/configure --with-gas --prefix=${INSTALL_BASE}/cross-tools \
        --host=${CLFS_HOST}     --target=${CLFS_TARGET}         \
        --host=${CLFS_HOST}     --target=${CLFS_TARGET}         \
        --with-sysroot=${INSTALL_BASE}                          \
        --with-sysroot=${INSTALL_BASE}                          \
        --with-lib-path=${INSTALL_BASE}/tools/lib               \
        --with-lib-path=${INSTALL_BASE}/tools/lib               \
        --disable-nls --disable-static --disable-multilib       \
        --disable-nls --disable-static --disable-multilib       \
        --enable-gold=yes --enable-plugins --enable-threads     \
        --enable-gold=yes --enable-plugins --enable-threads     \
        --disable-werror
        --disable-werror
 
 
make
 
make install
 
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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