summaryrefslogtreecommitdiffstats
path: root/scripts/mkgdbspec.in
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-18 20:38:27 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-18 20:38:27 +0000
commit1479c223de107623214b2df2fc3b2726784e909e (patch)
tree486653ca651b1dbd51074727a89b731210aa7a2d /scripts/mkgdbspec.in
parentAdded ";;" to correct syntactical error. (diff)
downloadrtems-1479c223de107623214b2df2fc3b2726784e909e.tar.bz2
Added code to set extra configure arguments for sparc and powerpc targets
such that the simulator is enabled. Also corrected a typo which prevented the simulator files from being included in the file list.
Diffstat (limited to 'scripts/mkgdbspec.in')
-rw-r--r--scripts/mkgdbspec.in23
1 files changed, 19 insertions, 4 deletions
diff --git a/scripts/mkgdbspec.in b/scripts/mkgdbspec.in
index 1f7d3c261f..89baee7d52 100644
--- a/scripts/mkgdbspec.in
+++ b/scripts/mkgdbspec.in
@@ -49,21 +49,36 @@ target_alias=$1
specfile=${dst}/$target_alias-gdb-${gdb_version}.spec
+case ${target_alias} in
+ powerpc*)
+ extra_configure_arguments="--enable-sim --enable-sim-powerpc --enable-sim-timebase --enable-sim-hardware"
+ # Enabling this causes the program image to be huge and causes
+ # some gcc/hosts combinations to run out of memory.
+ # --enable-sim-inline
+ ;;
+ sparc*)
+ extra_configure_arguments="--enable-sim"
+ ;;
+ *)
+ ;;
+esac
+
sed -e "s%@Release@%${gdb_rpm_release}%g" \
-e "s%@rpm_build_root@%${rpm_build_root}%g" \
-e "s%@target_alias@%${target_alias}%g" \
-e "s%@gdb_version@%${gdb_version}%g" \
-e "s%@gdb_patch_version@%${gdb_patch_version}%g" \
+ -e "s%@extra_configure_arguments@%${extra_configure_arguments}%g" \
< ${RTEMS_DIR}/gdb/gdb.spec.in \
> ${specfile}
-case ${target} in
+case ${target_alias} in
powerpc*)
- echo "/opt/rtems/bin/@target_alias@-run"
+ echo "/opt/rtems/bin/${target_alias}-run"
;;
sparc*)
- echo "/opt/rtems/bin/@target_alias@-run"
- echo "/opt/rtems/bin/@target_alias@-sis"
+ echo "/opt/rtems/bin/${target_alias}-run"
+ echo "/opt/rtems/bin/${target_alias}-sis"
;;
*) ;;
esac >> ${specfile}