Working on being able to cut RPMs. It now appears that the process

is working mostly for sparc at least.

There is one major problem -- the current process generates a unique
source file per RPM when in fact all of the source files are nearly
the same -- it is only the spec part of the rpm which differs.
The new file mkbinutils_subpackage_version is an attempt to
address this.  It does part of the job right -- one source file
produces multiple binary RPMs.  BUT the end user can not produce
the resulting RPMS themselves from SRPMS unless they also
build all targets.
This commit is contained in:
Joel Sherrill
1999-10-18 19:10:03 +00:00
parent 18408afbc7
commit 8c5e54b1af
12 changed files with 788 additions and 27 deletions

45
scripts/mkgdbspec Normal file
View File

@@ -0,0 +1,45 @@
#!/bin/sh
#
# Usage: mktoolspec CPU
#
RTEMS_DIR=`dirname $0`
RTEMS_VERSION=`grep Version ${RTEMS_DIR}/../VERSION | \
sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'`
target_alias=$1
release=0
# Some linux distributions use /usr/src/packages
# redhat uses /usr/src/redhat
# others might use /usr/src
if test -d /usr/src/packages/SPECS;
then
dst=/usr/src/packages/SPECS;
elif test -d /usr/src/redhat/SPECS;
then
dst=/usr/src/redhat/SPECS;
elif test -d /usr/src/SPECS/;
then
dst=/usr/src/SPECS;
fi
sed -e "s%@Version@%${RTEMS_VERSION}%g" \
-e "s%@bsp@%${bsp}%g" \
-e "s%@Release@%${release}%g" \
-e "s%@target_alias@%${target_alias}%g" \
< ${RTEMS_DIR}/gdb.spec.in \
> ${dst}/$target_alias-gdb.spec
case ${target} in
powerpc*)
echo "/opt/rtems/bin/@target_alias@-run"
;;
sparc*)
echo "/opt/rtems/bin/@target_alias@-run"
echo "/opt/rtems/bin/@target_alias@-sis"
;;
*) ;;
esac >> ${dst}/$target_alias-gdb.spec
echo Generated ${dst}/rtems-$target_alias-gdb.spec.