Changeset 63cf252f in rtems
- Timestamp:
- 05/28/00 18:14:55 (23 years ago)
- Children:
- a3f5b6b
- Parents:
- 22095e22
- Location:
- scripts
- Files:
-
- 1 added
- 8 deleted
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/Makefile.am
r22095e22 r63cf252f 4 4 5 5 AUTOMAKE_OPTIONS = foreign 1.4 6 ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal7 6 8 7 SUBDIRS = . binutils gccnewlib gdb rtems -
scripts/binutils/Makefile.am
r22095e22 r63cf252f 6 6 7 7 MKBINUTILSSPEC = $(SHELL) $(top_builddir)/mkbinutilspec 8 9 SUBPACKAGES = binutils.add \ 10 base-binutils.add target-binutils.add 11 12 binutils.spec.in: $(SUBPACKAGES) 13 cat $^ > $@ 14 CLEANFILES += binutils.spec.in 8 15 9 16 MKBINUTILSSPEC_DEPS = $(top_builddir)/mkbinutilspec binutils.spec.in \ … … 40 47 $(MKBINUTILSSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems 41 48 42 TEMPLATES = binutils.spec.in43 44 49 RPM_SPECS_DATA = hppa1.1-rtems-$(BINUTILSVERS).spec \ 45 50 i386-rtems-$(BINUTILSVERS).spec i960-rtems-$(BINUTILSVERS).spec \ … … 48 53 powerpc-rtems-$(BINUTILSVERS).spec sh-rtems-$(BINUTILSVERS).spec \ 49 54 sh-rtemself-$(BINUTILSVERS).spec sparc-rtems-$(BINUTILSVERS).spec 55 CLEANFILES += $(RPM_SPECS_DATA) 50 56 51 noinst_DATA = $(TEMPLATES)57 EXTRA_DIST = $(SUBPACKAGES) 52 58 53 EXTRA_DIST = $(TEMPLATES)54 55 CLEANFILES = $(RPM_SPECS_DATA)56 59 include $(top_srcdir)/../automake/local.am -
scripts/binutils/base-binutils.add
r22095e22 r63cf252f 1 # ============================================================== 2 # rtems-base-binutils 3 # ============================================================== 4 %package -n rtems-base-binutils 5 Provides: rtems-base-binutils 6 Summary: base package for rtems binutils 7 Group: rtems 8 9 %description -n rtems-base-binutils 10 11 RTEMS is an open source operating system for embedded systems. 12 13 This is the base for binutils regardless of target CPU. 14 15 %post -n rtems-base-binutils 16 if test -d $RPM_INSTALL_PREFIX/rtems/info; 17 then 18 rm -f $RPM_INSTALL_PREFIX/rtems/info/dir 19 f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'` 20 test x"$f" != x"" && for i in $f; do 21 install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir 22 done 23 fi 24 25 %postun -n rtems-base-binutils 26 if test -d $RPM_INSTALL_PREFIX/rtems/info; 27 then 28 rm -f $RPM_INSTALL_PREFIX/rtems/info/dir 29 f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'` 30 test x"$f" != x"" && for i in $f; do 31 install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir 32 done 33 fi 34 35 %files -n rtems-base-binutils -f files 36 %dir /opt/rtems/info 37 %doc /opt/rtems/info/dir 38 %doc /opt/rtems/info/as.info.gz 39 %doc /opt/rtems/info/as.info-?.gz 40 %doc /opt/rtems/info/bfd.info.gz 41 %doc /opt/rtems/info/bfd.info-?.gz 42 %doc /opt/rtems/info/binutils.info.gz 43 %doc /opt/rtems/info/binutils.info-?.gz 44 %doc /opt/rtems/info/ld.info.gz 45 %doc /opt/rtems/info/ld.info-?.gz 46 %doc /opt/rtems/info/gasp.info.gz 47 %doc /opt/rtems/info/standards.info.gz 48 49 %dir /opt/rtems/man 50 %dir /opt/rtems/man/man1 51 52 %dir /opt/rtems/include 53 /opt/rtems/include/bfd.h 54 /opt/rtems/include/ansidecl.h 55 /opt/rtems/include/bfdlink.h 56 57 %dir /opt/rtems/lib 58 /opt/rtems/lib/libbfd* 59 /opt/rtems/lib/libiberty* 60 /opt/rtems/lib/libopcodes* 61 62 %dir /opt/rtems/share 63 %dir /opt/rtems/share/locale 64 -
scripts/binutils/binutils.add
r22095e22 r63cf252f 1 # 2 # spec file for binutils package targetting rtems 3 # 4 # Copyright (c) 1999,2000 OARCorp, Huntsville, AL 5 # 6 # please send bugfixes or comments to joel@OARcorp.com 7 # 8 9 Vendor: OAR Corporation 10 Distribution: Linux 11 Name: @target_alias@-binutils-collection 12 Summary: binutils for target @target_alias@ 13 Group: rtems 14 Release: @Release@ 15 License: GPL/LGPL 16 17 Autoreqprov: off 18 Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com 19 Prefix: /opt 20 BuildRoot: /tmp/@target_alias@-binutils 21 22 Version: @binutils_version@ 23 Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-@binutils_version@.tar.gz 24 Patch0: binutils-@binutils_version@-rtems-@binutils_patch_version@.diff 25 # 26 # The original sources are not included in the source RPM. 27 # If we included them, then the source RPMs for each target 28 # would duplicate MBs of source unnecessarily. This is 29 # a duplication of over 30 MBs of source for each of 30 # the more than 10 targets it is possible to build. 31 # 32 # You can get them yourself from the Internet and copy them to 33 # your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR). 34 # Or you can try the ftp options of rpm :-) 35 # 36 NoSource: 0 37 38 %description 39 40 RTEMS is an open source operating system for embedded systems. 41 42 This is binutils sources with patches for RTEMS. 43 44 %prep 45 # untar the sources inside @target_alias@-binutils 46 %setup -c -n @target_alias@-binutils -a 0 47 48 %patch0 -p0 49 test -d build || mkdir build 50 51 %build 52 cd build 53 ../binutils-@binutils_version@/configure --target=@target_alias@ \ 54 --verbose --prefix=/opt/rtems 55 56 make all 57 make info 58 59 60 %install 61 cd build 62 make prefix=$RPM_BUILD_ROOT/opt/rtems install 63 make prefix=$RPM_BUILD_ROOT/opt/rtems install-info 64 # A bug in binutils: binutils does not install share/locale 65 # however it uses it 66 ../binutils-@binutils_version@/mkinstalldirs \ 67 $RPM_BUILD_ROOT/opt/rtems/share/locale 68 69 # gzip info files 70 gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info 2>/dev/null 71 gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info-? 2>/dev/null 72 73 if test -f $RPM_BUILD_ROOT/opt/rtems/info/configure.info.gz; 74 then 75 # These are only present in binutils >= 2.9.5 76 find $RPM_BUILD_ROOT/opt/rtems/info -name 'configure.*' | \ 77 sed -e "s,^$RPM_BUILD_ROOT,,g" > ../files 78 else 79 touch ../files 80 fi 81 82 # We assume that info/dir exists when building the RPMs 83 rm -f $RPM_BUILD_ROOT/opt/rtems/info/dir 84 f=`find $RPM_BUILD_ROOT/opt/rtems/info -name '*.info.gz'` 85 test x"$f" != x"" && for i in $f; do 86 install-info $i $RPM_BUILD_ROOT/opt/rtems/info/dir 87 done 88 89 %clean 90 # let rpm --clean remove BuildRoot iif using the default BuildRoot 91 test "$RPM_BUILD_ROOT" = "/tmp/@target_alias@-binutils" && \ 92 rm -rf $RPM_BUILD_ROOT 93 -
scripts/binutils/target-binutils.add
r22095e22 r63cf252f 1 # ============================================================== 2 # @target_alias@-binutils 3 # ============================================================== 4 %package -n @target_alias@-binutils 5 Provides: @target_alias@-binutils 6 Summary: rtems binutils for @target_alias@ 7 Group: rtems 8 Requires: rtems-base-binutils 9 Autoreqprov: off 10 11 %description -n @target_alias@-binutils 12 13 RTEMS is an open source operating system for embedded systems. 14 15 This is the GNU binutils for RTEMS targetting @target_alias@. 16 17 %files -n @target_alias@-binutils 18 %doc /opt/rtems/man/man1/@target_alias@-*.1 19 20 %dir /opt/rtems/bin 21 /opt/rtems/bin/@target_alias@-addr2line@exe_ext@ 22 /opt/rtems/bin/@target_alias@-ar@exe_ext@ 23 /opt/rtems/bin/@target_alias@-as@exe_ext@ 24 /opt/rtems/bin/@target_alias@-c++filt@exe_ext@ 25 /opt/rtems/bin/@target_alias@-gasp@exe_ext@ 26 /opt/rtems/bin/@target_alias@-ld@exe_ext@ 27 /opt/rtems/bin/@target_alias@-nm@exe_ext@ 28 /opt/rtems/bin/@target_alias@-objcopy@exe_ext@ 29 /opt/rtems/bin/@target_alias@-objdump@exe_ext@ 30 /opt/rtems/bin/@target_alias@-ranlib@exe_ext@ 31 /opt/rtems/bin/@target_alias@-readelf@exe_ext@ 32 /opt/rtems/bin/@target_alias@-size@exe_ext@ 33 /opt/rtems/bin/@target_alias@-strings@exe_ext@ 34 /opt/rtems/bin/@target_alias@-strip@exe_ext@ 35 36 %dir /opt/rtems/@target_alias@ 37 %dir /opt/rtems/@target_alias@/bin 38 /opt/rtems/@target_alias@/bin/ar@exe_ext@ 39 /opt/rtems/@target_alias@/bin/as@exe_ext@ 40 /opt/rtems/@target_alias@/bin/ld@exe_ext@ 41 /opt/rtems/@target_alias@/bin/nm@exe_ext@ 42 /opt/rtems/@target_alias@/bin/ranlib@exe_ext@ 43 /opt/rtems/@target_alias@/bin/strip@exe_ext@ 44 45 %dir /opt/rtems/@target_alias@/lib 46 /opt/rtems/@target_alias@/lib/ldscripts -
scripts/gccnewlib/Makefile.am
r22095e22 r63cf252f 6 6 7 7 MKGCCNEWLIBSPEC = $(SHELL) $(top_builddir)/mkgccnewlibspec 8 9 SUBPACKAGES = gccnewlib.add \ 10 base-gcc.add target-gcc.add \ 11 base-chill.add target-chill.add \ 12 base-g77.add target-g77.add \ 13 base-gcj.add target-gcj.add \ 14 target-objc.add 15 16 gccnewlib.spec.in: $(SUBPACKAGES) 17 cat $^ \ 18 | sed -e 's%@GCCLANGS@%%g' > $@ 19 CLEANFILES += gccnewlib.spec.in 20 21 gccnewlib_c_only.spec.in: gccnewlib.add base-gcc.add target-gcc.add 22 cat $^ \ 23 | sed -e "s%@GCCLANGS@%\'--enable-languages=c,c++\'%g" > $@ 24 CLEANFILES += gccnewlib_c_only.spec.in 8 25 9 26 C_ONLY_ARG = -a $(top_builddir)/gccnewlib/gccnewlib_c_only.spec.in … … 44 61 $(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems 45 62 46 TEMPLATES = gccnewlib.spec.in gccnewlib_c_only.spec.in47 48 63 RPM_SPECS_DATA = hppa1.1-rtems-$(GCCNEWLIBVERS).spec \ 49 64 i386-rtems-$(GCCNEWLIBVERS).spec i960-rtems-$(GCCNEWLIBVERS).spec \ … … 52 67 powerpc-rtems-$(GCCNEWLIBVERS).spec sh-rtems-$(GCCNEWLIBVERS).spec \ 53 68 sh-rtemself-$(GCCNEWLIBVERS).spec sparc-rtems-$(GCCNEWLIBVERS).spec 69 CLEANFILES += $(RPM_SPECS_DATA) 54 70 55 noinst_DATA = $(TEMPLATES)71 EXTRA_DIST = $(SUBPACKAGES) 56 72 57 EXTRA_DIST = $(TEMPLATES)58 59 CLEANFILES = $(RPM_SPECS_DATA)60 73 include $(top_srcdir)/../automake/local.am -
scripts/gccnewlib/base-chill.add
r22095e22 r63cf252f 1 # ============================================================== 2 # rtems-base-chill 3 # ============================================================== 4 %package -n rtems-base-chill 5 Provides: rtems-base-chill 6 Summary: base package for rtems gcc/chill compiler. 7 Group: rtems 8 Requires: rtems-base-gcc 9 10 %description -n rtems-base-chill 11 RTEMS is an open source operating system for embedded systems. 12 13 This is the files for gcc/chill that are shared by all targets. 14 15 %files -n rtems-base-chill 16 %dir /opt/rtems/info 17 %doc /opt/rtems/info/chill.info*.gz 18 19 %post -n rtems-base-chill 20 if test -d $RPM_INSTALL_PREFIX/rtems/info; 21 then 22 rm -f $RPM_INSTALL_PREFIX/rtems/info/dir 23 f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'` 24 test -n "$f" && for i in $f; do 25 install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir 26 done 27 fi 28 29 %postun -n rtems-base-chill 30 if test -d $RPM_INSTALL_PREFIX/rtems/info; 31 then 32 rm -f $RPM_INSTALL_PREFIX/rtems/info/dir 33 f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'` 34 test -n "$f" && for i in $f; do 35 install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir 36 done 37 fi 38 -
scripts/gccnewlib/base-g77.add
r22095e22 r63cf252f 1 # ============================================================== 2 # rtems-base-g77 3 # ============================================================== 4 %package -n rtems-base-g77 5 Provides: rtems-base-g77 6 Summary: rtems base package for gcc/g77 compiler 7 Group: rtems 8 Requires: rtems-base-gcc 9 10 %description -n rtems-base-g77 11 RTEMS is an open source operating system for embedded systems. 12 13 This is the files for gcc/g77 that are shared by all targets. 14 15 %files -n rtems-base-g77 16 %dir /opt/rtems/info 17 %doc /opt/rtems/info/g77.info*.gz 18 19 %dir /opt/rtems/man 20 %dir /opt/rtems/man/man1 21 %doc /opt/rtems/man/man1/@target_alias@-g77.1 22 23 %post -n rtems-base-g77 24 if test -d $RPM_INSTALL_PREFIX/rtems/info; 25 then 26 rm -f $RPM_INSTALL_PREFIX/rtems/info/dir 27 f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'` 28 test -n "$f" && for i in $f; do 29 install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir 30 done 31 fi 32 33 %postun -n rtems-base-g77 34 if test -d $RPM_INSTALL_PREFIX/rtems/info; 35 then 36 rm -f $RPM_INSTALL_PREFIX/rtems/info/dir 37 f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'` 38 test -n "$f" && for i in $f; do 39 install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir 40 done 41 fi 42 -
scripts/gccnewlib/base-gcc.add
r22095e22 r63cf252f 1 # ============================================================== 2 # rtems-base-gcc 3 # ============================================================== 4 %package -n rtems-base-gcc 5 Provides: rtems-base-gcc 6 Summary: base package for rtems gcc and newlib C Library 7 Group: rtems 8 9 %description -n rtems-base-gcc 10 11 RTEMS is an open source operating system for embedded systems. 12 13 This is the files for gcc and newlib that are shared by all targets. 14 15 %files -n rtems-base-gcc 16 %dir /opt/rtems/info 17 %doc /opt/rtems/info/cpp.info*.gz 18 %doc /opt/rtems/info/gcc.info*.gz 19 %doc /opt/rtems/info/libc.info*.gz 20 %doc /opt/rtems/info/libm.info*.gz 21 22 %dir /opt/rtems/bin 23 /opt/rtems/bin/cpp@exe_ext@ 24 /opt/rtems/bin/gcov@exe_ext@ 25 26 %dir /opt/rtems/man 27 %dir /opt/rtems/man/man1 28 %doc /opt/rtems/man/man1/cccp.1 29 30 %dir /opt/rtems/include 31 /opt/rtems/include/g++-3 32 33 %post -n rtems-base-gcc 34 if test -d $RPM_INSTALL_PREFIX/rtems/info; 35 then 36 rm -f $RPM_INSTALL_PREFIX/rtems/info/dir 37 f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'` 38 test -n "$f" && for i in $f; do 39 install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir 40 done 41 fi 42 43 %postun -n rtems-base-gcc 44 if test -d $RPM_INSTALL_PREFIX/rtems/info; 45 then 46 rm -f $RPM_INSTALL_PREFIX/rtems/info/dir 47 f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info&gz'` 48 test -n "$f" && for i in $f; do 49 install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir 50 done 51 fi 52 -
scripts/gccnewlib/base-gcj.add
r22095e22 r63cf252f 1 # ============================================================== 2 # rtems-base-gcj 3 # ============================================================== 4 %package -n rtems-base-gcj 5 Provides: rtems-base-gcj 6 Summary: base package for rtems gcc/java compiler (gcj). 7 Group: rtems 8 Requires: rtems-base-gcc 9 10 %description -n rtems-base-gcj 11 RTEMS is an open source operating system for embedded systems. 12 13 This is the files for gcc/java (gcj) that are shared by all targets. 14 15 %files -n rtems-base-gcj 16 %dir /opt/rtems/bin 17 /opt/rtems/bin/jcf-dump@exe_ext@ 18 /opt/rtems/bin/jv-scan@exe_ext@ 19 /opt/rtems/bin/gcjh@exe_ext@ 20 -
scripts/gccnewlib/gccnewlib.add
r22095e22 r63cf252f 1 # 2 # spec file for building gcc for rtems 3 # 4 # Copyright (c) 1999,2000 OARCorp, Huntsville, AL 5 # 6 # please send bugfixes or comments to joel@OARcorp.com 7 # 8 9 Vendor: OAR Corporation 10 Distribution: Linux 11 Name: @target_alias@-gcc-newlib 12 Summary: gcc and newlib C Library for @target_alias@. 13 Group: rtems 14 Release: @Release@ 15 License: gcc is GPL/LGPL ; newlib no has restrictions on run-time usage 16 17 Autoreqprov: on 18 Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com 19 20 Version: gcc@gcc_version@newlib@newlib_version@ 21 Source0: ftp://ftp.gnu.org/pub/gnu/gcc/gcc-@gcc_version@.tar.gz 22 Source1: ftp://sourceware.cygnus/com/pub/newlib/newlib-@newlib_version@.tar.gz 23 Patch0: gcc-@gcc_version@-rtems-@gcc_patch_version@.diff 24 Patch1: newlib-@newlib_version@-rtems-@newlib_patch_version@.diff 25 Buildroot: /tmp/@target_alias@-gcc-newlib 26 27 # 28 # The original sources are not included in the source RPM. 29 # If we included them, then the source RPMs for each target 30 # would duplicate MBs of source unnecessarily. This is 31 # a duplication of over 30 MBs of source for each of 32 # the more than 10 targets it is possible to build. 33 # 34 # You can get them yourself from the Internet and copy them to 35 # your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR). 36 # Or you can try the ftp options of rpm :-) 37 # 38 NoSource: 0 39 NoSource: 1 40 41 %description 42 RTEMS is an open source operating system for embedded systems. 43 44 This is gcc's and newlib C Library's sources with patches for RTEMS. 45 46 The original sources are not included in the source RPM. 47 If we included them, then the source RPMs for each target 48 would duplicate MBs of source unnecessarily. This is 49 a duplication of over 30 MBs of source for each of 50 the more than 10 targets it is possible to build. 51 52 You can get them yourself from the Internet and copy them to 53 your /usr/src/[redhat|packages]/SOURCES directory ($RPM_SOURCE_DIR). 54 Or you can try the ftp options of rpm :-) 55 56 %prep 57 # untar the sources inside @target_alias@-gcc-newlib 58 %setup -c -n @target_alias@-gcc-newlib -a 0 -a 1 59 60 %patch0 -p0 61 %patch1 -p0 62 63 # Copy the C library into gcc's source tree 64 ln -s ../newlib-@newlib_version@/newlib gcc-@gcc_version@ 65 test -d build || mkdir build 66 67 %build 68 cd build 69 70 ../gcc-@gcc_version@/configure --target=@target_alias@ \ 71 --with-gnu-as --with-gnu-ld --with-newlib --verbose \ 72 --enable-threads --prefix=/opt/rtems @GCCLANGS@ 73 74 make all 75 make info 76 77 %install 78 cd build 79 # Bug in gcc-2.95.1: It doesn't build this installation directory 80 # If it doesn't find it, gcc doesn't install @target_alias@/bin/gcc 81 ../gcc-@gcc_version@/mkinstalldirs \ 82 $RPM_BUILD_ROOT/opt/rtems/@target_alias@/bin 83 84 make prefix=$RPM_BUILD_ROOT/opt/rtems install 85 cd @target_alias@/newlib 86 make prefix=$RPM_BUILD_ROOT/opt/rtems install-info 87 88 # cd back to build/ 89 cd ../.. 90 91 # gzip info files 92 gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info 2>/dev/null 93 gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info-? 2>/dev/null 94 gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info-?? 2>/dev/null 95 96 rm -f dirs ; 97 echo "%dir /opt/rtems/lib" >> dirs ; 98 echo "%dir /opt/rtems/lib/gcc-lib" >> dirs ; 99 echo "%dir /opt/rtems/lib/gcc-lib/@target_alias@" >> dirs ; 100 101 # Collect multilib subdirectories 102 TGTDIR="$RPM_BUILD_ROOT/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@" 103 find $TGTDIR \ 104 \( -type d -a ! -path "$TGTDIR/include*" \) -print | \ 105 sed -e "s,^$RPM_BUILD_ROOT,%dir ,g" >> dirs 106 107 # Collect files to go into different packages 108 cp dirs files.chill 109 cp dirs files.gcc 110 cp dirs files.g77 111 cp dirs files.objc 112 cp dirs files.gcj 113 114 f=`find $TGTDIR ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`; 115 for i in $f; do 116 case $i in 117 *chill*) echo "$i" >> files.chill ;; 118 *f771) ;; 119 *cc1obj) ;; 120 *libobjc*) echo "$i" >> files.objc ;; 121 *include/objc*) ;; 122 *jc1) ;; 123 *jvgenmain) ;; 124 *) echo "$i" >> files.gcc ;; 125 esac 126 done 127 128 %clean 129 # let rpm --clean remove BuildRoot iif using the default BuildRoot 130 test "$RPM_BUILD_ROOT" = "/tmp/@target_alias@-gcc-newlib" && \ 131 rm -rf $RPM_BUILD_ROOT 132 -
scripts/gccnewlib/target-chill.add
r22095e22 r63cf252f 1 # ============================================================== 2 # @target_alias@-chill 3 # ============================================================== 4 %package -n @target_alias@-chill 5 Provides: @target_alias@-chill 6 Summary: gcc/chill compiler for @target_alias@ 7 Group: rtems 8 Requires: rtems-base-chill @target_alias@-gcc 9 10 %description -n @target_alias@-chill 11 RTEMS is an open source operating system for embedded systems. 12 13 This is the gcc/chill compiler and support files for @target_alias@ 14 15 %files -n @target_alias@-chill -f build/files.chill 16 %dir /opt/rtems/bin 17 /opt/rtems/bin/@target_alias@-chill 18 -
scripts/gccnewlib/target-g77.add
r22095e22 r63cf252f 1 # ============================================================== 2 # @target_alias@-g77 3 # ============================================================== 4 %package -n @target_alias@-g77 5 Provides: @target_alias@-g77 6 Summary: gcc/g77 compiler for @target_alias@ 7 Group: rtems 8 Requires: rtems-base-g77 @target_alias@-gcc 9 10 %description -n @target_alias@-g77 11 RTEMS is an open source operating system for embedded systems. 12 13 This is the gcc/g77 compiler for @target_alias@ 14 15 %files -n @target_alias@-g77 -f build/files.g77 16 %dir /opt/rtems/bin 17 /opt/rtems/bin/@target_alias@-g77@exe_ext@ 18 19 /opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/f771@exe_ext@ -
scripts/gccnewlib/target-gcc.add
r22095e22 r63cf252f 1 # ============================================================== 2 # @target_alias@-gcc 3 # ============================================================== 4 %package -n @target_alias@-gcc 5 Provides: @target_alias@-gcc 6 Summary: rtems gcc and newlib C Library for @target_alias@ 7 Group: rtems 8 Requires: @target_alias@-binutils rtems-base-gcc 9 10 %description -n @target_alias@-gcc 11 RTEMS is an open source operating system for embedded systems. 12 13 This is gcc and newlib C Library for @target_alias@. 14 15 %files -n @target_alias@-gcc -f build/files.gcc 16 %doc /opt/rtems/man/man1/@target_alias@-gcc.1 17 %doc /opt/rtems/man/man1/@target_alias@-g++.1 18 19 /opt/rtems/bin/@target_alias@-c++@exe_ext@ 20 /opt/rtems/bin/@target_alias@-g++@exe_ext@ 21 /opt/rtems/bin/@target_alias@-gcc@exe_ext@ 22 /opt/rtems/bin/@target_alias@-protoize@exe_ext@ 23 /opt/rtems/bin/@target_alias@-unprotoize@exe_ext@ 24 25 %dir /opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/include 26 27 /opt/rtems/@target_alias@ 28 -
scripts/gccnewlib/target-gcj.add
r22095e22 r63cf252f 1 # ============================================================== 2 # @target_alias@-gcj 3 # ============================================================== 4 %package -n @target_alias@-gcj 5 Provides: @target_alias@-gcj 6 Summary: gcc/java compiler (gcj) for @target_alias@ 7 Group: rtems 8 Requires: rtems-base-gcj @target_alias@-gcc 9 10 %description -n @target_alias@-gcj 11 RTEMS is an open source operating system for embedded systems. 12 13 This is the gcc/java compiler for @target_alias@ 14 15 %files -n @target_alias@-gcj -f build/files.gcj 16 %dir /opt/rtems/bin 17 /opt/rtems/bin/@target_alias@-gcj@exe_ext@ 18 19 /opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/jc1@exe_ext@ 20 /opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/jvgenmain@exe_ext@ 21 -
scripts/gccnewlib/target-objc.add
r22095e22 r63cf252f 1 # ============================================================== 2 # @target_alias@-objc 3 # ============================================================== 4 %package -n @target_alias@-objc 5 Provides: @target_alias@-objc 6 Summary: gcc/objc compiler for @target_alias@ 7 Group: rtems 8 Requires: @target_alias@-gcc 9 10 %description -n @target_alias@-objc 11 RTEMS is an open source operating system for embedded systems. 12 13 This is the gcc/objc compiler for @target_alias@ 14 15 %files -n @target_alias@-objc -f build/files.objc 16 /opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/cc1obj@exe_ext@ 17 /opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/include/objc -
scripts/gdb/Makefile.am
r22095e22 r63cf252f 6 6 7 7 MKGDBSPEC = $(SHELL) $(top_builddir)/mkgdbspec 8 9 SUBPACKAGES = gdb.add base-gdb.add target-gdb.add 10 11 gdb.spec.in: $(SUBPACKAGES) 12 cat $^ > $@ 13 CLEANFILES += gdb.spec.in 8 14 9 15 MKGDBSPEC_DEPS = $(top_builddir)/mkgdbspec gdb.spec.in \ … … 40 46 $(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems 41 47 42 TEMPLATES = gdb.spec.in43 44 48 RPM_SPECS_DATA = hppa1.1-rtems-$(GDBVERS).spec i386-rtems-$(GDBVERS).spec \ 45 49 i960-rtems-$(GDBVERS).spec m68k-rtems-$(GDBVERS).spec \ … … 47 51 powerpc-rtems-$(GDBVERS).spec sh-rtems-$(GDBVERS).spec \ 48 52 sh-rtemself-$(GDBVERS).spec sparc-rtems-$(GDBVERS).spec 53 CLEANFILES += $(RPM_SPECS_DATA) 49 54 50 noinst_DATA = $(TEMPLATES)55 EXTRA_DIST = $(SUBPACKAGES) 51 56 52 EXTRA_DIST = $(TEMPLATES)53 54 CLEANFILES = $(RPM_SPECS_DATA)55 57 include $(top_srcdir)/../automake/local.am -
scripts/gdb/base-gdb.add
r22095e22 r63cf252f 1 # ===================================================================== 2 # rtems-base-gdb 3 # ===================================================================== 4 5 %package -n rtems-base-gdb 6 Provides: rtems-base-gdb 7 Summary: base package for rtems gdb 8 Group: rtems 9 10 %description -n rtems-base-gdb 11 12 RTEMS is an open source operating system for embedded systems. 13 14 This is the base for gdb regardless of target CPU. 15 16 %files -n rtems-base-gdb 17 18 %dir /opt/rtems/info 19 %doc /opt/rtems/info/gdb.info* 20 %doc /opt/rtems/info/mmalloc.info* 21 %doc /opt/rtems/info/readline.info* 22 23 %dir /opt/rtems/man 24 %dir /opt/rtems/man/man1 25 26 %dir /opt/rtems/include 27 # We install libbfd from binutils 28 # /opt/rtems/include/bfd.h 29 # /opt/rtems/include/bfdlink.h 30 31 %dir /opt/rtems/lib 32 # We install libbfd from binutils 33 # /opt/rtems/lib/libbfd* 34 # We use libiberty from gcc 35 # /opt/rtems/lib/libiberty* 36 37 %post -n rtems-base-gdb 38 if test -d $RPM_INSTALL_PREFIX/rtems/info; 39 then 40 rm -f $RPM_INSTALL_PREFIX/rtems/info/dir 41 f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'` 42 test -n "$f" && for i in $f; do 43 install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir 44 done 45 fi 46 47 %postun -n rtems-base-gdb 48 if test -d $RPM_INSTALL_PREFIX/rtems/info; 49 then 50 rm -f $RPM_INSTALL_PREFIX/rtems/info/dir 51 f=`find $RPM_INSTALL_PREFIX/rtems/info -name '*.info.gz'` 52 test -n "$f" && for i in $f; do 53 install-info $i $RPM_INSTALL_PREFIX/rtems/info/dir 54 done 55 fi -
scripts/gdb/gdb.add
r22095e22 r63cf252f 1 # 2 # spec file for package rtems 3 # 4 # Copyright (c) 1999 OARCorp, Huntsville, AL 5 # 6 # please send bugfixes or comments to joel@OARcorp.com 7 # 8 9 # neededforbuild -- nothing 10 11 Vendor: OAR Corporation 12 Distribution: Linux 13 Name: @target_alias@-gdb-collection 14 Release: @Release@ 15 License: GPL/LGPL 16 Group: rtems 17 18 Autoreqprov: on 19 Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com 20 21 Version: @gdb_version@ 22 Summary: gdb for target @target_alias@ 23 Source0: ftp://ftp.gnu.org/pub/gnu/gdb-@gdb_version@.tar.gz 24 Patch0: gdb-@gdb_version@-rtems-@gdb_patch_version@.diff 25 Buildroot: /tmp/@target_alias@-gdb 26 27 # 28 # The original sources are not included in the source RPM. 29 # If we included them, then the source RPMs for each target 30 # would duplicate MBs of source unnecessarily. This is 31 # a duplication of over 30 MBs of source for each of 32 # the more than 10 targets it is possible to build. 33 # 34 # You can get them yourself from the Internet and copy them to 35 # your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR). 36 # Or you can try the ftp options of rpm :-) 37 # 38 NoSource: 0 39 40 41 %description 42 RTEMS is an open source operating system for embedded systems. 43 44 This is the GNU gdb for RTEMS targetting @target_alias@. 45 46 %prep 47 echo RPM_BUILD_ROOT=${RPM_BUILD_ROOT} 48 # untar the sources inside @target_alias@-gdb 49 %setup -c -n @target_alias@-gdb -a 0 50 51 %patch0 -p0 52 53 %build 54 test -d build || mkdir build 55 cd build 56 ../gdb-@gdb_version@/configure --target=@target_alias@ \ 57 --verbose --prefix=/opt/rtems @extra_configure_arguments@ 58 59 make all 60 make info 61 62 %install 63 cd build 64 make prefix=$RPM_BUILD_ROOT/opt/rtems install 65 make prefix=$RPM_BUILD_ROOT/opt/rtems install-info 66 67 # gzip info files 68 gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info 2>/dev/null 69 gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info-? 2>/dev/null 70 gzip -f $RPM_BUILD_ROOT/opt/rtems/info/*.info-?? 2>/dev/null 71 72 %clean 73 # let rpm --clean remove BuildRoot iif using the default BuildRoot 74 test "$RPM_BUILD_ROOT" = "/tmp/@target_alias@-gdb" && \ 75 rm -rf $RPM_BUILD_ROOT -
scripts/gdb/target-gdb.add
r22095e22 r63cf252f 1 # ===================================================================== 2 # @target_alias@-gdb 3 # ===================================================================== 4 5 %package -n @target_alias@-gdb 6 Provides: @target_alias@-gdb 7 Summary: rtems gdb for @target_alias@ 8 Group: rtems 9 Requires: rtems-base-gdb 10 11 %description -n @target_alias@-gdb 12 13 RTEMS is an open source operating system for embedded systems. 14 15 This is the GNU gdb for RTEMS targetting @target_alias@. 16 17 %files -n @target_alias@-gdb 18 %doc /opt/rtems/man/man1/@target_alias@-gdb.1 19 20 %dir /opt/rtems/bin 21 /opt/rtems/bin/@target_alias@-gdb@exe_ext@
Note: See TracChangeset
for help on using the changeset viewer.