source: rtems/scripts/mkgnatnewlibspec.in @ 5eac93c7

4.104.114.84.9
Last change on this file since 5eac93c7 was 5eac93c7, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 25, 2000 at 7:47:32 PM

Now binutils, gcc, and gdb build into a "base" package that is shared
by all targets and one or more target specific RPMs. This significantly
reduces the conflicts between the RPMs whether installing one or multiple
targets.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#!/bin/sh
2#
3#  Usage: mktoolspec CPU
4#
5
6RTEMS_DIR=`dirname $0`/@top_srcdir@
7
8CFG=setup.cache
9dst=@RPM_SPECSdir@
10exe_ext=@EXEEXT@
11
12usage()
13{
14  echo "$0 [options] <target_alias>"
15  echo "  options:"
16  echo "    -cfg <setup.cache>"
17  echo "    -o <rpm-spec-dir>"
18  exit 1 ;
19}
20
21while test $# -ge 2; do
22case $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  ;;
37esac
38done
39
40if test ! $# -eq 1;
41then
42  echo "Invalid number of arguments"
43  usage
44fi
45
46# target to build for
47target_alias=$1
48
49. ./$CFG
50
51specfile=${dst}/$target_alias-gcc-${gcc_version}-newlib-${newlib_version}.spec
52
53sed -e "s%@Release@%${gccnewlib_rpm_release}%g" \
54    -e "s%@target_alias@%${target_alias}%g" \
55    -e "s%@rpm_build_root@%${rpm_build_root}%g" \
56    -e "s%@gcc_version@%${gcc_version}%g" \
57    -e "s%@gcc_patch_version@%${gcc_patch_version}%g" \
58    -e "s%@newlib_version@%${newlib_version}%g" \
59    -e "s%@newlib_patch_version@%${newlib_patch_version}%g" \
60    -e "s%@exe_ext@%${exe_ext}%g" \
61< ${RTEMS_DIR}/gccnewlib/gccnewlib.spec.in \
62> ${specfile}
63
64echo Generated ${specfile}.
Note: See TracBrowser for help on using the repository browser.