Changeset c86d8e7f in rtems
- Timestamp:
- 01/29/03 14:06:02 (20 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 00b8107
- Parents:
- b36cca28
- Location:
- scripts
- Files:
-
- 9 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
scripts/ChangeLog
rb36cca28 rc86d8e7f 1 2003-01-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 3 * ChangeLog: Fix yesterday's entry. 4 * gdb/target-gdb.add: %defattr(-,root,root). 5 Use %{_prefix} instead of /opt/rtems. 6 Misc. minor changes. 7 * gdb/gdb.add: Use %{_prefix} instead of /opt/rtems. 8 Remove stray unpackaged files. 9 Use %{_defaultbuildroot} instead of hard-coded values. 10 configure --disable-nls. 11 Misc. minor changes. 12 Add BuildPreReq: ncurses-devel. 13 * gdb/base-gdb.add: %defattr(-,root,root). 14 Use %{_prefix} instead of /opt/rtems. 15 Misc. minor changes. 16 * gdb/mkspec.in: New. 17 * gdb/Makefile.am: Reflect addition of gdb/mkspec.in. 18 * gcc3newlib/mkspec.in: Fix usage. 19 * gcc3newlib/gccnewlib.add: Use %{_defaultbuildroot} instead of 20 hard-coded values. Update copyright notice. 21 * mkgdbspec.in: Removed. 22 * Makefile.am: Remove mkgdbspec. 23 * configure.ac: Remove mkgdbspec. 24 Add gdb/mkspec. 25 1 26 2003-01-28 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 27 3 * gcc newlib.add: Add various BuildPreReq.28 * gcc3newlib/gccnewlib.add: Add various BuildPreReq. 4 29 Add %defattr(-,root,root) to "dir". 5 * base-g77.add: %defattr(-,root,root).6 * base-gcc.add %defattr(-,root,root).7 * base-gcj.add %defattr(-,root,root).8 * base-gnat.add %defattr(-,root,root).9 * target-c++.add %defattr(-,root,root).10 * target-g77.add %defattr(-,root,root).11 * target-gcc.add %defattr(-,root,root).12 * target-gcj.add %defattr(-,root,root).13 * target-gnat.add %defattr(-,root,root).14 * target-objc.add %defattr(-,root,root).30 * gcc3newlib/base-g77.add: %defattr(-,root,root). 31 * gcc3newlib/base-gcc.add %defattr(-,root,root). 32 * gcc3newlib/base-gcj.add %defattr(-,root,root). 33 * gcc3newlib/base-gnat.add %defattr(-,root,root). 34 * gcc3newlib/target-c++.add %defattr(-,root,root). 35 * gcc3newlib/target-g77.add %defattr(-,root,root). 36 * gcc3newlib/target-gcc.add %defattr(-,root,root). 37 * gcc3newlib/target-gcj.add %defattr(-,root,root). 38 * gcc3newlib/target-gnat.add %defattr(-,root,root). 39 * gcc3newlib/target-objc.add %defattr(-,root,root). 15 40 16 41 2003-01-28 Ralf Corsepius <corsepiu@faw.uni-ulm.de> -
scripts/Makefile.am
rb36cca28 rc86d8e7f 9 9 10 10 noinst_SCRIPTS = setup buildall buildalltar mkbinutilspec mkbspspec \ 11 mkgccnewlibspec mk gdbspec mkrpms mkspec11 mkgccnewlibspec mkrpms mkspec 12 12 13 13 TEMPLATES = -
scripts/configure.ac
rb36cca28 rc86d8e7f 93 93 AC_CONFIG_FILES([buildalltar],[chmod +x buildalltar]) 94 94 AC_CONFIG_FILES([buildall],[chmod +x buildall]) 95 AC_CONFIG_FILES([ mkgdbspec],[chmod +x mkgdbspec])95 AC_CONFIG_FILES([gdb/mkspec],[chmod +x gdb/mkspec]) 96 96 AC_CONFIG_FILES([mkbinutilspec],[chmod +x mkbinutilspec]) 97 97 AC_CONFIG_FILES([mkgccnewlibspec],[chmod +x mkgccnewlibspec]) -
scripts/gcc3newlib/gccnewlib.add
rb36cca28 rc86d8e7f 2 2 # spec file for building gcc for rtems 3 3 # 4 # Copyright (c) 1999,2000,2001 OARCorp, Huntsville, AL4 # Copyright (c) 1999,2000,2001,2002,2003 OARCorp, Huntsville, AL 5 5 # 6 6 # please send bugfixes or comments to joel@OARcorp.com … … 8 8 9 9 %define _prefix @prefix@ 10 %define _defaultbuildroot %{_tmppath}/%{name}-%{version} 10 11 11 12 Vendor: OAR Corporation … … 29 30 @PATCH1@ 30 31 @PATCH3@ 31 Buildroot: %{_ tmppath}/%{name}32 Buildroot: %{_defaultbuildroot} 32 33 BuildPreReq: texinfo >= 4.2 33 34 BuildPreReq: @target_alias@-binutils … … 331 332 %clean 332 333 # let rpm --clean remove BuildRoot iif using the default BuildRoot 333 test "$RPM_BUILD_ROOT" = "%{_ tmppath}/%{name}" && \334 test "$RPM_BUILD_ROOT" = "%{_defaultbuildroot}" && \ 334 335 rm -rf $RPM_BUILD_ROOT -
scripts/gcc3newlib/mkspec.in
rb36cca28 rc86d8e7f 1 1 #!/bin/sh 2 2 # 3 # Usage: mk toolspec CPU3 # Usage: mkspec CPU 4 4 # 5 5 … … 14 14 echo " options:" 15 15 echo " -cfg <setup.cache>" 16 echo " - o <rpm-spec-dir>"16 echo " -a <alternate specs.in>" 17 17 exit 1 ; 18 18 } -
scripts/gdb/Makefile.am
rb36cca28 rc86d8e7f 3 3 ## 4 4 5 6 MKGDBSPEC = $(SHELL) $(top_builddir)/mkgdbspec 5 MKSPEC = $(SHELL) ./mkspec 7 6 8 7 SUBPACKAGES = gdb.add base-gdb.add target-gdb.add 8 9 noinst_DATA = gdb.spec.in 9 10 10 11 gdb.spec.in: $(SUBPACKAGES) … … 12 13 CLEANFILES = gdb.spec.in 13 14 14 MKGDBSPEC_DEPS = $(top_builddir)/mk gdbspec gdb.spec.in \15 MKGDBSPEC_DEPS = $(top_builddir)/mkspec gdb.spec.in \ 15 16 $(top_builddir)/setup.cache 16 17 17 18 arm-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) 18 $(MK GDBSPEC) -cfg $(top_builddir)/setup.cache -o . arm-rtems19 $(MKSPEC) -cfg $(top_builddir)/setup.cache arm-rtems > $@ 19 20 20 21 c4x-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) 21 $(MK GDBSPEC) -cfg $(top_builddir)/setup.cache -o . c4x-rtems22 $(MKSPEC) -cfg $(top_builddir)/setup.cache c4x-rtems > $@ 22 23 23 24 h8300-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) 24 $(MK GDBSPEC) -cfg $(top_builddir)/setup.cache -o . h8300-rtems25 $(MKSPEC) -cfg $(top_builddir)/setup.cache h8300-rtems > $@ 25 26 26 27 hppa1.1-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) 27 $(MK GDBSPEC) -cfg $(top_builddir)/setup.cache -o . hppa1.1-rtems28 $(MKSPEC) -cfg $(top_builddir)/setup.cache hppa1.1-rtems > $@ 28 29 29 30 i386-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) 30 $(MK GDBSPEC) -cfg $(top_builddir)/setup.cache -o . i386-rtems31 $(MKSPEC) -cfg $(top_builddir)/setup.cache i386-rtems > $@ 31 32 32 33 i386-RTEMS-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) 33 $(MK GDBSPEC) -cfg $(top_builddir)/setup.cache -o . i386-RTEMS34 $(MKSPEC) -cfg $(top_builddir)/setup.cache i386-RTEMS > $@ 34 35 35 36 i960-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) 36 $(MK GDBSPEC) -cfg $(top_builddir)/setup.cache -o . i960-rtems37 $(MKSPEC) -cfg $(top_builddir)/setup.cache i960-rtems > $@ 37 38 38 39 m68k-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) 39 $(MK GDBSPEC) -cfg $(top_builddir)/setup.cache -o . m68k-rtems40 $(MKSPEC) -cfg $(top_builddir)/setup.cache m68k-rtems > $@ 40 41 41 42 mips64orion-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) 42 $(MK GDBSPEC) -cfg $(top_builddir)/setup.cache -o . mips64orion-rtems43 $(MKSPEC) -cfg $(top_builddir)/setup.cache mips64orion-rtems > $@ 43 44 44 45 mips-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) 45 $(MK GDBSPEC) -cfg $(top_builddir)/setup.cache -o . mips-rtems46 $(MKSPEC) -cfg $(top_builddir)/setup.cache mips-rtems > $@ 46 47 47 48 mipstx39-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) 48 $(MK GDBSPEC) -cfg $(top_builddir)/setup.cache -o . mipstx39-rtems49 $(MKSPEC) -cfg $(top_builddir)/setup.cache mipstx39-rtems > $@ 49 50 50 51 powerpc-RTEMS-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) 51 $(MK GDBSPEC) -cfg $(top_builddir)/setup.cache -o . powerpc-RTEMS52 $(MKSPEC) -cfg $(top_builddir)/setup.cache powerpc-RTEMS > $@ 52 53 53 54 powerpc-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) 54 $(MK GDBSPEC) -cfg $(top_builddir)/setup.cache -o . powerpc-rtems55 $(MKSPEC) -cfg $(top_builddir)/setup.cache powerpc-rtems > $@ 55 56 56 57 sh-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) 57 $(MK GDBSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtems58 $(MKSPEC) -cfg $(top_builddir)/setup.cache sh-rtems > $@ 58 59 59 60 sh-rtemself-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) 60 $(MK GDBSPEC) -cfg $(top_builddir)/setup.cache -o . sh-rtemself61 $(MKSPEC) -cfg $(top_builddir)/setup.cache sh-rtemself > $@ 61 62 62 63 sparc-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) 63 $(MK GDBSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems64 $(MKSPEC) -cfg $(top_builddir)/setup.cache sparc-rtems > $@ 64 65 65 66 RPM_SPECS_DATA = \ -
scripts/gdb/base-gdb.add
rb36cca28 rc86d8e7f 15 15 16 16 %files -n rtems-base-gdb 17 %defattr(-,root,root) 17 18 18 %dir /opt/rtems/info 19 %doc /opt/rtems/info/gdb.info* 20 %doc /opt/rtems/info/mmalloc.info* 19 %dir %{_prefix}/info 20 %doc %{_prefix}/info/gdb.info* 21 %doc %{_prefix}/info/mmalloc.info* 22 # FIXME: When had gdbint and stabs been introduced? 23 %if "@gdb_version@" >= "5.0" 24 %doc %{_prefix}/info/gdbint.info* 25 %doc %{_prefix}/info/stabs.info* 26 %endif 21 27 # gdb 4.18 installed this, gdb 5.0 does not 22 # %doc /opt/rtems/info/readline.info* 28 %if "@gdb_version@" < "5.0" 29 %doc %{_prefix}/info/readline.info* 30 %endif 23 31 24 %dir /opt/rtems/man25 %dir /opt/rtems/man/man132 %dir %{_prefix}/man 33 %dir %{_prefix}/man/man1 26 34 27 %dir /opt/rtems/include35 %dir %{_prefix}/include 28 36 # We install libbfd from binutils 29 # /opt/rtems/include/bfd.h30 # /opt/rtems/include/bfdlink.h37 # %{_prefix}/include/bfd.h 38 # %{_prefix}/include/bfdlink.h 31 39 32 %dir /opt/rtems/lib40 %dir %{_prefix}/lib 33 41 # We install libbfd from binutils 34 # /opt/rtems/lib/libbfd*42 # %{_prefix}/lib/libbfd* 35 43 # We use libiberty from gcc 36 # /opt/rtems/lib/libiberty*44 # %{_prefix}/lib/libiberty* 37 45 38 46 %post -n rtems-base-gdb -
scripts/gdb/gdb.add
rb36cca28 rc86d8e7f 7 7 # 8 8 9 # neededforbuild -- nothing 9 %define _prefix @prefix@ 10 %define _defaultbuildroot %{_tmppath}/%{name}-%{version} 10 11 11 12 Vendor: OAR Corporation … … 25 26 Patch1: gdb-@gdb_version@-rtems-cg-@gdb_patch_version@.diff 26 27 Patch2: gdb-@gdb_version@-rtems-rdbg-@gdb_patch_version@.diff 27 Buildroot: /tmp/@target_alias@-gdb 28 Buildroot: %{_defaultbuildroot} 29 30 %if "%{_vendor}" == "redhat" 31 BuildPreReq: ncurses-devel 32 %endif 28 33 29 34 # … … 47 52 48 53 %prep 49 echo RPM_BUILD_ROOT=${RPM_BUILD_ROOT}50 54 # untar the sources inside @target_alias@-gdb 51 55 %setup -c -n @target_alias@-gdb -a 0 … … 60 64 cd build 61 65 ../gdb-@gdb_version@/configure --target=@target_alias@ \ 62 --verbose --prefix=/opt/rtems @extra_configure_arguments@ 66 --verbose --prefix=%{_prefix} @extra_configure_arguments@ \ 67 --disable-nls 63 68 64 69 make all … … 67 72 %install 68 73 cd build 69 make prefix=$RPM_BUILD_ROOT /opt/rtemsinstall70 make prefix=$RPM_BUILD_ROOT /opt/rtemsinstall-info74 make prefix=$RPM_BUILD_ROOT%{_prefix} install 75 make prefix=$RPM_BUILD_ROOT%{_prefix} install-info 71 76 77 # host files 78 rm -rf $RPM_BUILD_ROOT%{_prefix}/include/*.h 79 rm -rf $RPM_BUILD_ROOT%{_prefix}/lib/lib*a 80 81 # These come from other packages 82 rm -rf $RPM_BUILD_ROOT%{_prefix}/info/bfd* 83 rm -rf $RPM_BUILD_ROOT%{_prefix}/info/configure* 84 rm -rf $RPM_BUILD_ROOT%{_prefix}/info/standards* 85 72 86 # gzip info files 73 gzip -f $RPM_BUILD_ROOT /opt/rtems/info/*.info 2>/dev/null74 gzip -f $RPM_BUILD_ROOT /opt/rtems/info/*.info-? 2>/dev/null75 gzip -f $RPM_BUILD_ROOT /opt/rtems/info/*.info-?? 2>/dev/null87 gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info 2>/dev/null 88 gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info-? 2>/dev/null 89 gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info-?? 2>/dev/null 76 90 77 91 %clean 78 92 # let rpm --clean remove BuildRoot iif using the default BuildRoot 79 test "$RPM_BUILD_ROOT" = " /tmp/@target_alias@-gdb" && \93 test "$RPM_BUILD_ROOT" = "%{_defaultbuildroot}" && \ 80 94 rm -rf $RPM_BUILD_ROOT -
scripts/gdb/mkspec.in
rb36cca28 rc86d8e7f 1 1 #!/bin/sh 2 2 # 3 # Usage: mk gdbspec CPU3 # Usage: mkspec CPU 4 4 # 5 5 6 6 RTEMS_DIR=`dirname $0`/@top_srcdir@ 7 7 8 CFG=setup.cache 9 dst=@RPM_SPECSdir@ 8 CFG=../setup.cache 10 9 exe_ext=@EXEEXT@ 10 11 specsrc=${RTEMS_DIR}/gdb/gdb.spec.in 11 12 12 13 usage() … … 15 16 echo " options:" 16 17 echo " -cfg <setup.cache>" 17 echo " - o <rpm-spec-dir>"18 echo " -a <alternate specs.in>" 18 19 exit 1 ; 19 20 } … … 26 27 shift 27 28 ;; 28 - o)29 -a) # alternate specs file 29 30 shift 30 dst=$131 specsrc=$1 31 32 shift 32 33 ;; … … 49 50 . ./$CFG 50 51 51 specfile=${dst}/$target_alias-gdb-${gdb_version}.spec52 53 52 case ${target_alias} in 54 53 arm* | d10v* | d30v* | erc32* | fr30* | h8300* | h8500* | hppa1.1* | \ … … 69 68 sed -e "s%@Release\@%${gdb_rpm_release}%g" \ 70 69 -e "s,@rpm_build_root\@,${rpm_build_root},g" \ 70 -e "s%@prefix\@%@prefix@%g" \ 71 71 -e "s%@target_alias\@%${target_alias}%g" \ 72 72 -e "s%@gdb_version\@%${gdb_version}%g" \ … … 74 74 -e "s%@extra_configure_arguments\@%${extra_configure_arguments}%g" \ 75 75 -e "s%@exe_ext\@%${exe_ext}%g" \ 76 < ${RTEMS_DIR}/gdb/gdb.spec.in \ 77 > ${specfile} 78 79 case ${target_alias} in 80 arm* | d10v* | d30v* | erc32* | fr30* | h8300* | h8500* | i960* | m32r* | \ 81 mcore* | mips* | mn10200* | mn10300* | powerpc* | sh* | v850* | w65* | z8k*) 82 echo "/opt/rtems/bin/${target_alias}-run${exe_ext}" 83 ;; 84 sparc*) 85 echo "/opt/rtems/bin/${target_alias}-run${exe_ext}" 86 echo "/opt/rtems/bin/${target_alias}-sis${exe_ext}" 87 ;; 88 *) ;; 89 esac >> ${specfile} 90 91 echo Generated ${specfile} 76 < ${specsrc} -
scripts/gdb/target-gdb.add
rb36cca28 rc86d8e7f 16 16 17 17 %files -n @target_alias@-gdb 18 %doc /opt/rtems/man/man1/@target_alias@-gdb.1 18 %defattr(-,attr,attr) 19 %doc %{_prefix}/man/man1/@target_alias@-gdb.1* 20 %doc %{_prefix}/man/man1/@target_alias@-run.1* 19 21 20 %dir /opt/rtems/bin 21 /opt/rtems/bin/@target_alias@-gdb@exe_ext@ 22 %dir %{_prefix}/bin 23 %{_prefix}/bin/@target_alias@-gdb@exe_ext@ 24 %{_prefix}/bin/@target_alias@-run@exe_ext@ 25 %if "@target_alias@" == "sparc-rtems" 26 %{_prefix}/bin/@target_alias@-sis@exe_ext@ 27 %endif
Note: See TracChangeset
for help on using the changeset viewer.