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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-binutils/] [binutils-2.19.1/] [cgen/] [gen-all-sid] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 jlechner
#! /bin/sh
2
# Utility script to generate the generated sid files.
3
# This is useful for verifying changes to the generated files.
4
#
5
# Run this script in the src/cgen directory.
6
#
7
# Usage: gen-all-sid /path/to/sid/src
8
 
9
# Exit on any error.
10
set -e
11
 
12
# For debugging.
13
set -x
14
 
15
if [ ! -f sim.scm ]
16
then
17
    echo "Not in the src/cgen directory." >& 2
18
    exit 1
19
fi
20
 
21
if [ $# != 1 ]
22
then
23
    echo "Usage: gen-all-sid /path/to/sid/src" >& 2
24
    exit 1
25
fi
26
 
27
siddir=$1
28
if [ ! -f $siddir/sid/COPYING.SID ]
29
then
30
    echo "unable to find sid sources in $siddir" >& 2
31
    exit 1
32
fi
33
 
34
builddir=tmp-sid
35
 
36
rm -rf $builddir
37
mkdir $builddir
38
 
39
cd $builddir
40
$siddir/configure --prefix /tmp/junk --enable-ltdl-install
41
make configure-sid
42
cd sid/component/cgen-cpu
43
make cgen-all

powered by: WebSVN 2.1.0

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