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

Subversion Repositories zipcpu

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 94 dgisselq
#!/bin/bash
2 200 dgisselq
################################################################################
3
##
4
## Filename:    gas-script.sh
5
##
6
## Project:     Zip CPU -- a small, lightweight, RISC CPU soft core
7
##
8
## Purpose:     To configure binutils to properly build the binutils portion of
9
##              the ZipCPU toolchain.
10
##
11
## Creator:     Dan Gisselquist, Ph.D.
12
##              Gisselquist Technology, LLC
13
##
14
################################################################################
15
##
16
## Copyright (C) 2016, Gisselquist Technology, LLC
17
##
18
## This program is free software (firmware): you can redistribute it and/or
19
## modify it under the terms of  the GNU General Public License as published
20
## by the Free Software Foundation, either version 3 of the License, or (at
21
## your option) any later version.
22
##
23
## This program is distributed in the hope that it will be useful, but WITHOUT
24
## ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
25
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
26
## for more details.
27
##
28
## License:     GPL, v3, as defined and found on www.gnu.org,
29
##              http://www.gnu.org/licenses/gpl.html
30
##
31
##
32
################################################################################
33
##
34
##
35 202 dgisselq
VERSION=binutils-2.27
36
if [[ ! -d $VERSION-zip/ ]]
37 94 dgisselq
then
38 202 dgisselq
  tar -xjf ./$VERSION.tar.bz2 --transform s,$VERSION,$VERSION-zip,
39
  if [[ -e gas-zippatch.patch ]]
40
  then
41 206 dgisselq
    cd $VERSION-zip
42 202 dgisselq
    patch -p1 <../gas-zippatch.patch
43
    cd ..
44
  else
45
    echo "ZipCPU binutils patch not found"
46
  fi
47 94 dgisselq
fi
48
 
49
set +h
50
set -e
51 202 dgisselq
CLFS_HOST=$MACHTYPE
52 94 dgisselq
CLFS_TARGET="zip"
53 209 dgisselq
if [[ -z "$INSTALLD" ]]
54
then
55
  INSTALLD=`pwd`/install
56
fi
57
INSTALL_BASE=${INSTALLD}
58 94 dgisselq
mkdir -p ${INSTALL_BASE}/cross-tools
59 103 dgisselq
mkdir -p build-gas
60 202 dgisselq
echo ../$VERSION-zip/configure
61 103 dgisselq
cd build-gas
62 94 dgisselq
AR=ar AS=as     \
63 202 dgisselq
../$VERSION-zip/configure --with-gas                            \
64 200 dgisselq
        --prefix=${INSTALL_BASE}/cross-tools                    \
65 202 dgisselq
        --target=${CLFS_TARGET}                                 \
66 200 dgisselq
        --disable-nls           --disable-multilib              \
67
        --enable-plugins        --enable-threads                \
68 94 dgisselq
        --disable-werror
69
 

powered by: WebSVN 2.1.0

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