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

Subversion Repositories zipcpu

[/] [zipcpu/] [trunk/] [sw/] [gas-script.sh] - Blame information for rev 106

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

Line No. Rev Author Line
1 94 dgisselq
#!/bin/bash
2
 
3
if [[ ! -d binutils-2.25 ]]
4
then
5
  tar -xvjf ./binutils-2.25.tar.bz2
6
  cd binutils-2.25
7 103 dgisselq
  patch -p1 <../binutils-2.25.patch
8
  cd ..
9 94 dgisselq
fi
10
 
11
set +h
12
set -e
13
CLFS_HOST="x86_64-cross-linux-gnu"
14
CLFS_TARGET="zip"
15 103 dgisselq
INSTALL_BASE=`pwd`/install
16 94 dgisselq
mkdir -p ${INSTALL_BASE}/cross-tools
17
mkdir -p ${INSTALL_BASE}/tools/lib
18 103 dgisselq
mkdir -p build-gas
19
cd build-gas
20 94 dgisselq
AR=ar AS=as     \
21 103 dgisselq
../binutils-2.25/configure --with-gas --prefix=${INSTALL_BASE}/cross-tools \
22 94 dgisselq
        --host=${CLFS_HOST}     --target=${CLFS_TARGET}         \
23
        --with-sysroot=${INSTALL_BASE}                          \
24
        --with-lib-path=${INSTALL_BASE}/tools/lib               \
25
        --disable-nls --disable-static --disable-multilib       \
26
        --enable-gold=yes --enable-plugins --enable-threads     \
27
        --disable-werror
28
 
29 103 dgisselq
make
30
make install

powered by: WebSVN 2.1.0

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