mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
2003-01-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* binutils/mkspec.in: New. * binutils/.cvsignore: Add mkspec. * mkbinutilspec.in: Remove. * gdb/Makefile.am: Depend on mkspec. * binutils/binutils.add: Add @exe_ext@ to c++filt. Add %_defaultbuildroot. * configure.ac: Reflect changes above.
This commit is contained in:
@@ -1,3 +1,13 @@
|
|||||||
|
2003-01-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||||
|
|
||||||
|
* binutils/mkspec.in: New.
|
||||||
|
* binutils/.cvsignore: Add mkspec.
|
||||||
|
* mkbinutilspec.in: Remove.
|
||||||
|
* gdb/Makefile.am: Depend on mkspec.
|
||||||
|
* binutils/binutils.add: Add @exe_ext@ to c++filt.
|
||||||
|
Add %_defaultbuildroot.
|
||||||
|
* configure.ac: Reflect changes above.
|
||||||
|
|
||||||
2003-01-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
2003-01-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||||
|
|
||||||
* gdb/.cvsignore: Add mkspec.
|
* gdb/.cvsignore: Add mkspec.
|
||||||
|
|||||||
@@ -3,3 +3,4 @@ Makefile
|
|||||||
Makefile.in
|
Makefile.in
|
||||||
binutils.spec
|
binutils.spec
|
||||||
binutils.spec.in
|
binutils.spec.in
|
||||||
|
mkspec
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
%define _prefix @prefix@
|
%define _prefix @prefix@
|
||||||
|
%define _defaultbuildroot %{_tmppath}/%{name}-%{version}
|
||||||
|
|
||||||
Vendor: OAR Corporation
|
Vendor: OAR Corporation
|
||||||
Distribution: Linux
|
Distribution: Linux
|
||||||
@@ -16,10 +17,10 @@ Group: rtems
|
|||||||
Release: @Release@
|
Release: @Release@
|
||||||
License: GPL/LGPL
|
License: GPL/LGPL
|
||||||
|
|
||||||
Autoreqprov: off
|
Autoreqprov: on
|
||||||
Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com
|
Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com
|
||||||
Prefix: %{_prefix}
|
Prefix: %{_prefix}
|
||||||
BuildRoot: %{_tmppath}/@target_alias@-binutils
|
BuildRoot: %{_defaultbuildroot}
|
||||||
BuildPreReq: /sbin/install-info
|
BuildPreReq: /sbin/install-info
|
||||||
BuildPreReq: texinfo >= 4.2
|
BuildPreReq: texinfo >= 4.2
|
||||||
|
|
||||||
@@ -74,7 +75,7 @@ This is binutils sources with patches for RTEMS.
|
|||||||
../binutils-@binutils_version@/mkinstalldirs \
|
../binutils-@binutils_version@/mkinstalldirs \
|
||||||
$RPM_BUILD_ROOT%{_prefix}/share/locale
|
$RPM_BUILD_ROOT%{_prefix}/share/locale
|
||||||
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_prefix}/bin/@target_alias@-c++filt
|
rm -f $RPM_BUILD_ROOT%{_prefix}/bin/@target_alias@-c++filt@exe_ext@
|
||||||
# gzip info files
|
# gzip info files
|
||||||
gzip -9qf $RPM_BUILD_ROOT%{_prefix}/info/*.info 2>/dev/null
|
gzip -9qf $RPM_BUILD_ROOT%{_prefix}/info/*.info 2>/dev/null
|
||||||
gzip -9qf $RPM_BUILD_ROOT%{_prefix}/info/*.info-* 2>/dev/null
|
gzip -9qf $RPM_BUILD_ROOT%{_prefix}/info/*.info-* 2>/dev/null
|
||||||
@@ -97,6 +98,6 @@ This is binutils sources with patches for RTEMS.
|
|||||||
|
|
||||||
%clean
|
%clean
|
||||||
# let rpm --clean remove BuildRoot iif using the default BuildRoot
|
# let rpm --clean remove BuildRoot iif using the default BuildRoot
|
||||||
test "$RPM_BUILD_ROOT" = "%{_tmppath}/@target_alias@-binutils" && \
|
test "$RPM_BUILD_ROOT" = "%{_defaultbuildroot}" && \
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|||||||
@@ -1,20 +1,21 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# Usage: mkbinutilspec CPU
|
# Usage: mkspec CPU
|
||||||
#
|
#
|
||||||
|
|
||||||
RTEMS_DIR=`dirname $0`/@top_srcdir@
|
RTEMS_DIR=`dirname $0`/@top_srcdir@
|
||||||
|
|
||||||
CFG=setup.cache
|
CFG=../setup.cache
|
||||||
dst=@RPM_SPECSdir@
|
|
||||||
exe_ext=@EXEEXT@
|
exe_ext=@EXEEXT@
|
||||||
|
|
||||||
|
specsrc=${RTEMS_DIR}/binutils/binutils.spec.in
|
||||||
|
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
echo "$0 [options] <target_alias>"
|
echo "$0 [options] <target_alias>"
|
||||||
echo " options:"
|
echo " options:"
|
||||||
echo " -cfg <setup.cache>"
|
echo " -cfg <setup.cache>"
|
||||||
echo " -o <rpm-spec-dir>"
|
echo " -a <alternate specs.in>"
|
||||||
exit 1 ;
|
exit 1 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -25,9 +26,9 @@ case $1 in
|
|||||||
CFG=$1
|
CFG=$1
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-o)
|
-a)
|
||||||
shift
|
shift
|
||||||
dst=$1
|
specsrc=$1
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-*)
|
-*)
|
||||||
@@ -48,8 +49,6 @@ target_alias=$1
|
|||||||
|
|
||||||
. ./$CFG
|
. ./$CFG
|
||||||
|
|
||||||
specfile=${dst}/$target_alias-binutils-${binutils_version}.spec
|
|
||||||
|
|
||||||
if test -n "${binutils_patch_version}"; then
|
if test -n "${binutils_patch_version}"; then
|
||||||
PATCH1="Patch0: binutils-${binutils_version}-rtems-${binutils_patch_version}.diff"
|
PATCH1="Patch0: binutils-${binutils_version}-rtems-${binutils_patch_version}.diff"
|
||||||
PATCH2="%patch0 -p0"
|
PATCH2="%patch0 -p0"
|
||||||
@@ -58,13 +57,12 @@ fi
|
|||||||
sed -e "s%@Release\@%${binutils_rpm_release}%g" \
|
sed -e "s%@Release\@%${binutils_rpm_release}%g" \
|
||||||
-e "s,@rpm_build_root\@,${rpm_build_root},g" \
|
-e "s,@rpm_build_root\@,${rpm_build_root},g" \
|
||||||
-e "s%@target_alias\@%${target_alias}%g" \
|
-e "s%@target_alias\@%${target_alias}%g" \
|
||||||
|
-e "s%@build_alias\@%@build_alias@%g" \
|
||||||
|
-e "s%@host_alias\@%@host_alias@%g" \
|
||||||
-e "s%@prefix\@%@prefix@%g" \
|
-e "s%@prefix\@%@prefix@%g" \
|
||||||
-e "s%@binutils_version\@%${binutils_version}%g" \
|
-e "s%@binutils_version\@%${binutils_version}%g" \
|
||||||
-e "s%@binutils_patch_version\@%${binutils_patch_version}%g" \
|
-e "s%@binutils_patch_version\@%${binutils_patch_version}%g" \
|
||||||
-e "s%@exe_ext\@%${exe_ext}%g" \
|
-e "s%@exe_ext\@%${exe_ext}%g" \
|
||||||
-e "s,@PATCH1\@,${PATCH1}," \
|
-e "s,@PATCH1\@,${PATCH1}," \
|
||||||
-e "s,@PATCH2\@,${PATCH2}," \
|
-e "s,@PATCH2\@,${PATCH2}," \
|
||||||
< ${RTEMS_DIR}/binutils/binutils.spec.in \
|
< ${specsrc}
|
||||||
> ${specfile}
|
|
||||||
|
|
||||||
echo Generated ${specfile}
|
|
||||||
@@ -93,7 +93,7 @@ rtemsdoc/Makefile
|
|||||||
AC_CONFIG_FILES([buildalltar],[chmod +x buildalltar])
|
AC_CONFIG_FILES([buildalltar],[chmod +x buildalltar])
|
||||||
AC_CONFIG_FILES([buildall],[chmod +x buildall])
|
AC_CONFIG_FILES([buildall],[chmod +x buildall])
|
||||||
AC_CONFIG_FILES([gdb/mkspec],[chmod +x gdb/mkspec])
|
AC_CONFIG_FILES([gdb/mkspec],[chmod +x gdb/mkspec])
|
||||||
AC_CONFIG_FILES([mkbinutilspec],[chmod +x mkbinutilspec])
|
AC_CONFIG_FILES([binutils/mkspec],[chmod +x binutils/mkspec])
|
||||||
AC_CONFIG_FILES([mkgccnewlibspec],[chmod +x mkgccnewlibspec])
|
AC_CONFIG_FILES([mkgccnewlibspec],[chmod +x mkgccnewlibspec])
|
||||||
AC_CONFIG_FILES([mkbspspec],[chmod +x mkbspspec])
|
AC_CONFIG_FILES([mkbspspec],[chmod +x mkbspspec])
|
||||||
AC_CONFIG_FILES([gcc3newlib/mkspec],[chmod +x gcc3newlib/mkspec])
|
AC_CONFIG_FILES([gcc3newlib/mkspec],[chmod +x gcc3newlib/mkspec])
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ gdb.spec.in: $(SUBPACKAGES)
|
|||||||
cat $^ > $@
|
cat $^ > $@
|
||||||
CLEANFILES = gdb.spec.in
|
CLEANFILES = gdb.spec.in
|
||||||
|
|
||||||
MKGDBSPEC_DEPS = $(top_builddir)/mkspec gdb.spec.in \
|
MKGDBSPEC_DEPS = mkspec gdb.spec.in \
|
||||||
$(top_builddir)/setup.cache
|
$(top_builddir)/setup.cache
|
||||||
|
|
||||||
arm-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
arm-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
||||||
|
|||||||
Reference in New Issue
Block a user