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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [scripts-ada/] [mkbinutilspec.in] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
#!/bin/sh
2
#
3
#  Usage: mkbinutilspec CPU
4
#
5
 
6
RTEMS_DIR=`dirname $0`/@top_srcdir@
7
 
8
CFG=setup.cache
9
dst=@RPM_SPECSdir@
10
exe_ext=@EXEEXT@
11
 
12
usage()
13
{
14
  echo "$0 [options] "
15
  echo "  options:"
16
  echo "    -cfg "
17
  echo "    -o "
18
  exit 1 ;
19
}
20
 
21
while test $# -ge 2; do
22
case $1 in
23
-cfg)
24
  shift
25
  CFG=$1
26
  shift
27
  ;;
28
-o)
29
  shift
30
  dst=$1
31
  shift
32
  ;;
33
-*)
34
  echo "invalid option $1";
35
  usage
36
  ;;
37
esac
38
done
39
 
40
if test ! $# -eq 1;
41
then
42
  echo "Invalid number of arguments"
43
  usage
44
fi
45
 
46
# target to build for
47
target_alias=$1
48
 
49
. ./$CFG
50
 
51
specfile=${dst}/${target_alias}-gnat-${gnat_version}-binutils-${binutils_version}.spec
52
 
53
sed -e "s%@Release@%${binutils_rpm_release}%g" \
54
    -e "s%@rpm_build_root@%${rpm_build_root}%g" \
55
    -e "s%@target_alias@%${target_alias}%g" \
56
    -e "s%@binutils_version@%${binutils_version}%g" \
57
    -e "s%@binutils_patch_version@%${binutils_patch_version}%g" \
58
    -e "s%@exe_ext@%${exe_ext}%g" \
59
< ${RTEMS_DIR}/binutils/binutils.spec.in \
60
> ${specfile}
61
 
62
echo Generated ${specfile}

powered by: WebSVN 2.1.0

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