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

Subversion Repositories zipcpu

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

Go to most recent revision | 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
    patch -p1 <../gas-zippatch.patch
42
    cd ..
43
  else
44
    echo "ZipCPU binutils patch not found"
45
  fi
46 94 dgisselq
fi
47
 
48
set +h
49
set -e
50 202 dgisselq
CLFS_HOST=$MACHTYPE
51 94 dgisselq
CLFS_TARGET="zip"
52 103 dgisselq
INSTALL_BASE=`pwd`/install
53 94 dgisselq
mkdir -p ${INSTALL_BASE}/cross-tools
54 103 dgisselq
mkdir -p build-gas
55 202 dgisselq
echo ../$VERSION-zip/configure
56 103 dgisselq
cd build-gas
57 94 dgisselq
AR=ar AS=as     \
58 202 dgisselq
../$VERSION-zip/configure --with-gas                            \
59 200 dgisselq
        --prefix=${INSTALL_BASE}/cross-tools                    \
60 202 dgisselq
        --target=${CLFS_TARGET}                                 \
61 200 dgisselq
        --disable-nls           --disable-multilib              \
62
        --enable-plugins        --enable-threads                \
63 94 dgisselq
        --disable-werror
64
 

powered by: WebSVN 2.1.0

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