URL
https://opencores.org/ocsvn/zipcpu/zipcpu/trunk
[/] [zipcpu/] [trunk/] [sw/] [gas-script.sh] - Diff between revs 94 and 103
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 94 |
Rev 103 |
Line 1... |
Line 1... |
#!/bin/bash
|
#!/bin/bash
|
|
|
if [[ ! -d binutils-2.25 ]]
|
if [[ ! -d binutils-2.25 ]]
|
then
|
then
|
tar -xvjf ./binutils-2.25.tar.bz2
|
tar -xvjf ./binutils-2.25.tar.bz2
|
patch -p0 <./binutils-2.25.patch
|
|
cd binutils-2.25
|
cd binutils-2.25
|
|
patch -p1 <../binutils-2.25.patch
|
|
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
|
mkdir -p build-gas
|
cd build
|
cd build-gas
|
AR=ar AS=as \
|
AR=ar AS=as \
|
../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
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.