Changeset df1f734 in rtems
- Timestamp:
- 04/03/02 17:58:26 (22 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 75db5285
- Parents:
- 47f7dc5
- Location:
- scripts
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/ChangeLog
r47f7dc5 rdf1f734 1 2002-04-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 3 * mkbinutilspec.in: Add support for empty patch-version (no patch). 4 * mkgcc3newlibspec.in: Ditto. 5 * setup: Fix gcc3*_versions handling. 6 * setup.def: binutils_patch_version=. 7 * binutils/binutils.add: Reflect changes to mkbinutilspec.in, 8 Use "%{_target_os}" != "%{_build_os}" to detect cross-building. 9 * binutils/target-binutils.add: Comment out c++filt. 10 * gcc3newlib/base-gcc.add: Remove duplicate libm.info. 11 * gcc3newlib/gccnewlib.add: Reflect changes to mkgcc3newlibspec.in. 12 Use "%{_target_os}" != "%{_build_os}" to detect cross-building. 13 Comment out gcc-2.95.x hacks. 14 Remove *.la from installed files. 15 * gcc3newlib/gccnewlib_c_only.spec.in: Remove. 16 1 17 2001-04-02 Joel Sherrill <joel@OARcorp.com> 2 18 -
scripts/binutils/binutils.add
r47f7dc5 rdf1f734 23 23 24 24 Version: @binutils_version@ 25 Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-@binutils_version@.tar.bz2 26 # Patch0: binutils-@binutils_version@-rtems-@binutils_patch_version@.diff 25 Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-@binutils_version@.tar.bz2 26 @PATCH1@ 27 27 28 # 28 29 # The original sources are not included in the source RPM. … … 47 48 # untar the sources inside @target_alias@-binutils 48 49 %setup -c -n @target_alias@-binutils 49 50 # %patch0 -p0 50 @PATCH2@ 51 51 test -d build || mkdir build 52 52 53 53 %build 54 54 # HACK: This should be %{target} != %{build}, but SuSE's rpm screws it. 55 %if "%{ target_os}" != "%{build_os}"55 %if "%{_target_os}" != "%{_build_os}" 56 56 CONFIGURE_ARGS="--build=%{_build} --host=%{_target}" 57 57 %endif -
scripts/binutils/target-binutils.add
r47f7dc5 rdf1f734 22 22 %{_prefix}/bin/@target_alias@-ar@exe_ext@ 23 23 %{_prefix}/bin/@target_alias@-as@exe_ext@ 24 %{_prefix}/bin/@target_alias@-c++filt@exe_ext@ 24 # c++filt now comes from gcc 25 # %{_prefix}/bin/@target_alias@-c++filt@exe_ext@ 25 26 %{_prefix}/bin/@target_alias@-gasp@exe_ext@ 26 27 %{_prefix}/bin/@target_alias@-ld@exe_ext@ -
scripts/gcc3newlib/base-gcc.add
r47f7dc5 rdf1f734 19 19 %doc %{_prefix}/info/gcc.info*.gz 20 20 %doc %{_prefix}/info/libc.info*.gz 21 %doc %{_prefix}/info/libm.info*.gz22 21 %doc %{_prefix}/info/libm.info*.gz 23 22 -
scripts/gcc3newlib/gccnewlib.add
r47f7dc5 rdf1f734 26 26 Source0: ftp://ftp.gnu.org/pub/gnu/gcc/gcc-@gcc_version@.tar.gz 27 27 Source1: ftp://sources.redhat.com/pub/newlib/newlib-@newlib_version@.tar.gz 28 Patch0: gcc-@gcc_version@-rtems-@gcc_patch_version@.diff 29 Patch1: newlib-@newlib_version@-rtems-@newlib_patch_version@.diff 28 @PATCH1@ 29 @PATCH3@ 30 30 Buildroot: %{_tmppath}/%{name} 31 31 … … 61 61 %prep 62 62 # untar the sources inside @target_alias@-gcc-newlib 63 %setup -c -n %{name} -a 0 -a 163 %setup -c -n %{name} @SETUP@ 64 64 65 %patch0 -p0 66 %patch1 -p0 65 @PATCH2@ 66 @PATCH4@ 67 67 68 68 # Copy the C library into gcc's source tree … … 74 74 75 75 # HACK: This should be %{target} != %{build}, but SuSE's rpm screws it. 76 # %if "%{target_os}" != "%{build_os}"77 #CONFIGURE_ARGS="--build=%{_build} --host=%{_target}"78 #%endif76 %if "%{_target_os}" != "%{_build_os}" 77 CONFIGURE_ARGS="--build=%{_build} --host=%{_target}" 78 %endif 79 79 80 80 ../gcc-@gcc_version@/configure $CONFIGURE_ARGS --target=@target_alias@ \ … … 87 87 %install 88 88 cd build 89 # Bug in gcc-2.95.1: It doesn't build this installation directory 90 # If it doesn't find it, gcc doesn't install @target_alias@/bin/gcc 91 ../gcc-@gcc_version@/mkinstalldirs \ 92 $RPM_BUILD_ROOT%{_prefix}/@target_alias@/bin 93 89 # # Bug in gcc-2.95.1: It doesn't build this installation directory 90 # # If it doesn't find it, gcc doesn't install @target_alias@/bin/gcc 91 # ../gcc-@gcc_version@/mkinstalldirs \ 92 # $RPM_BUILD_ROOT%{_prefix}/@target_alias@/bin 93 # 94 94 95 make prefix=$RPM_BUILD_ROOT%{_prefix} install 95 96 cd @target_alias@/newlib 96 97 make prefix=$RPM_BUILD_ROOT%{_prefix} install-info 98 99 # Bug in gcc-3.0.x: It puts the build dirs into *.la files 100 files=`find ${RPM_BUILD_ROOT}%{_prefix}/@target_alias@/lib -name '*.la'` 101 for i in $files; do 102 rm -f $i 103 done 97 104 98 105 # cd back to build/ … … 101 108 # Bug in gcc-2.95.x: It bogusly tries to share cpp for all targets. 102 109 # Rename it to target_alias-cpp 103 if test -f $RPM_BUILD_ROOT%{_prefix}/bin/cpp@exe_ext@;104 then105 mv $RPM_BUILD_ROOT%{_prefix}/bin/cpp@exe_ext@ \106 $RPM_BUILD_ROOT%{_prefix}/bin/@target_alias@-cpp@exe_ext@107 fi110 # if test -f $RPM_BUILD_ROOT%{_prefix}/bin/cpp@exe_ext@; 111 # then 112 # mv $RPM_BUILD_ROOT%{_prefix}/bin/cpp@exe_ext@ \ 113 # $RPM_BUILD_ROOT%{_prefix}/bin/@target_alias@-cpp@exe_ext@ 114 # fi 108 115 109 116 # gzip info files -
scripts/gcc3newlib/gccnewlib_c_only.spec.in
r47f7dc5 rdf1f734 1 #2 # spec file for building gcc for rtems3 #4 # Copyright (c) 1999,2000,2001 OARCorp, Huntsville, AL5 #6 # please send bugfixes or comments to joel@OARcorp.com7 #8 9 %define _prefix @prefix@10 11 Vendor: OAR Corporation12 Distribution: Linux13 Name: @target_alias@-gcc-newlib14 Summary: gcc and newlib C Library for @target_alias@.15 Group: rtems16 Release: @Release@17 License: gcc is GPL/LGPL ; newlib no has restrictions on run-time usage18 19 Autoreqprov: on20 Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com21 22 Version: gcc@gcc_version@newlib@newlib_version@23 # gcc 3.x and gcc 2.924 # Source0: ftp://ftp.gnu.org/pub/gnu/gcc/gcc-@gcc_version@.tar.bz225 # gcc 2.95.x26 Source0: ftp://ftp.gnu.org/pub/gnu/gcc/gcc-@gcc_version@.tar.gz27 Source1: ftp://sources.redhat.com/pub/newlib/newlib-@newlib_version@.tar.gz28 Patch0: gcc-@gcc_version@-rtems-@gcc_patch_version@.diff29 Patch1: newlib-@newlib_version@-rtems-@newlib_patch_version@.diff30 Buildroot: %{_tmppath}/%{name}31 32 #33 # The original sources are not included in the source RPM.34 # If we included them, then the source RPMs for each target35 # would duplicate MBs of source unnecessarily. This is36 # a duplication of over 30 MBs of source for each of37 # the more than 10 targets it is possible to build.38 #39 # You can get them yourself from the Internet and copy them to40 # your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR).41 # Or you can try the ftp options of rpm :-)42 #43 NoSource: 044 NoSource: 145 46 %description47 RTEMS is an open source operating system for embedded systems.48 49 This is gcc's and newlib C Library's sources with patches for RTEMS.50 51 The original sources are not included in the source RPM.52 If we included them, then the source RPMs for each target53 would duplicate MBs of source unnecessarily. This is54 a duplication of over 30 MBs of source for each of55 the more than 10 targets it is possible to build.56 57 You can get them yourself from the Internet and copy them to58 your /usr/src/[redhat|packages]/SOURCES directory ($RPM_SOURCE_DIR).59 Or you can try the ftp options of rpm :-)60 61 %prep62 # untar the sources inside @target_alias@-gcc-newlib63 %setup -c -n %{name} -a 0 -a 164 65 %patch0 -p066 %patch1 -p067 68 # Copy the C library into gcc's source tree69 ln -s ../newlib-@newlib_version@/newlib gcc-@gcc_version@70 test -d build || mkdir build71 72 %build73 cd build74 75 # HACK: This should be %{target} != %{build}, but SuSE's rpm screws it.76 # %if "%{target_os}" != "%{build_os}"77 # CONFIGURE_ARGS="--build=%{_build} --host=%{_target}"78 # %endif79 80 ../gcc-@gcc_version@/configure $CONFIGURE_ARGS --target=@target_alias@ \81 --with-gnu-as --with-gnu-ld --with-newlib --verbose \82 --enable-threads=rtems --prefix=%{_prefix} '--enable-languages=c,c++'83 84 make all85 make info86 87 %install88 cd build89 # Bug in gcc-2.95.1: It doesn't build this installation directory90 # If it doesn't find it, gcc doesn't install @target_alias@/bin/gcc91 ../gcc-@gcc_version@/mkinstalldirs \92 $RPM_BUILD_ROOT%{_prefix}/@target_alias@/bin93 94 make prefix=$RPM_BUILD_ROOT%{_prefix} install95 cd @target_alias@/newlib96 make prefix=$RPM_BUILD_ROOT%{_prefix} install-info97 98 # cd back to build/99 cd ../..100 101 # Bug in gcc-2.95.x: It bogusly tries to share cpp for all targets.102 # Rename it to target_alias-cpp103 if test -f $RPM_BUILD_ROOT%{_prefix}/bin/cpp@exe_ext@;104 then105 mv $RPM_BUILD_ROOT%{_prefix}/bin/cpp@exe_ext@ \106 $RPM_BUILD_ROOT%{_prefix}/bin/@target_alias@-cpp@exe_ext@107 fi108 109 # gzip info files110 gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info 2>/dev/null111 gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info-? 2>/dev/null112 gzip -f $RPM_BUILD_ROOT%{_prefix}/info/*.info-?? 2>/dev/null113 114 rm -f dirs ;115 echo "%dir %{_prefix}/lib" >> dirs ;116 echo "%dir %{_prefix}/lib/gcc-lib" >> dirs ;117 echo "%dir %{_prefix}/lib/gcc-lib/@target_alias@" >> dirs ;118 119 # Collect multilib subdirectories120 TGTDIR="%{_prefix}/lib/gcc-lib/@target_alias@/@gcc_version@"121 f=`gcc/xgcc --print-multi-lib | sed -e 's,;.*$,,'`122 for i in $f; do123 case $i in124 \.) echo "%dir ${TGTDIR}" >> dirs125 ;;126 *) echo "%dir ${TGTDIR}/$i" >> dirs127 ;;128 esac129 done130 131 # Collect files to go into different packages132 cp dirs files.gcc133 cp dirs files.g77134 cp dirs files.objc135 cp dirs files.gcj136 137 f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;138 for i in $f; do139 case $i in140 *f771) ;;141 *cc1obj) ;;142 *libobjc*) echo "$i" >> files.objc ;;143 *include/objc*) ;;144 *jc1) ;;145 *jvgenmain) ;;146 *) echo "$i" >> files.gcc ;;147 esac148 done149 150 %clean151 # let rpm --clean remove BuildRoot iif using the default BuildRoot152 test "$RPM_BUILD_ROOT" = "%{_tmppath}/%{name}" && \153 rm -rf $RPM_BUILD_ROOT154 155 # ==============================================================156 # rtems-base-gcc157 # ==============================================================158 %package -n rtems-base-gcc159 Provides: rtems-base-gcc160 Summary: base package for rtems gcc and newlib C Library161 Group: rtems162 163 %description -n rtems-base-gcc164 165 RTEMS is an open source operating system for embedded systems.166 167 This is the files for gcc and newlib that are shared by all targets.168 169 %files -n rtems-base-gcc170 %dir %{_prefix}/info171 %doc %{_prefix}/info/cpp.info*.gz172 %doc %{_prefix}/info/cppinternals.info*.gz173 %doc %{_prefix}/info/gcc.info*.gz174 %doc %{_prefix}/info/libc.info*.gz175 %doc %{_prefix}/info/libm.info*.gz176 %doc %{_prefix}/info/libm.info*.gz177 178 %dir %{_prefix}/bin179 %{_prefix}/bin/gcov@exe_ext@180 %{_prefix}/bin/gccbug@exe_ext@181 182 %dir %{_prefix}/man183 %dir %{_prefix}/man/man1184 %doc %{_prefix}/man/man1/cpp.1185 %doc %{_prefix}/man/man1/gcov.1186 # %doc %{_prefix}/man/man1/cccp.1187 %dir %{_prefix}/man/man7188 %doc %{_prefix}/man/man7/fsf-funding.7189 %doc %{_prefix}/man/man7/gfdl.7190 %doc %{_prefix}/man/man7/gpl.7191 192 %dir %{_prefix}/include193 %{_prefix}/include/g++-v3194 195 %post -n rtems-base-gcc196 if test -d $RPM_INSTALL_PREFIX%{_prefix}/info;197 then198 rm -f $RPM_INSTALL_PREFIX%{_prefix}/info/dir199 f=`find $RPM_INSTALL_PREFIX%{_prefix}/info -name '*.info.gz'`200 test -n "$f" && for i in $f; do201 install-info $i $RPM_INSTALL_PREFIX%{_prefix}/info/dir202 done203 fi204 205 %postun -n rtems-base-gcc206 if test -d $RPM_INSTALL_PREFIX%{_prefix}/info;207 then208 rm -f $RPM_INSTALL_PREFIX%{_prefix}/info/dir209 f=`find $RPM_INSTALL_PREFIX%{_prefix}/info -name '*.info.gz'`210 test -n "$f" && for i in $f; do211 install-info $i $RPM_INSTALL_PREFIX%{_prefix}/info/dir212 done213 fi214 215 # ==============================================================216 # @target_alias@-gcc217 # ==============================================================218 %package -n @target_alias@-gcc219 Provides: @target_alias@-gcc220 Summary: rtems gcc and newlib C Library for @target_alias@221 Group: rtems222 Requires: @target_alias@-binutils rtems-base-gcc223 224 %description -n @target_alias@-gcc225 RTEMS is an open source operating system for embedded systems.226 227 This is gcc and newlib C Library for @target_alias@.228 229 %files -n @target_alias@-gcc -f build/files.gcc230 %doc %{_prefix}/man/man1/@target_alias@-gcc.1231 %doc %{_prefix}/man/man1/@target_alias@-g++.1232 233 %{_prefix}/bin/@target_alias@-cpp@exe_ext@234 %{_prefix}/bin/@target_alias@-c++@exe_ext@235 %{_prefix}/bin/@target_alias@-g++@exe_ext@236 %{_prefix}/bin/@target_alias@-gcc@exe_ext@237 %{_prefix}/bin/@target_alias@-c++filt@exe_ext@238 # %{_prefix}/bin/@target_alias@-protoize@exe_ext@239 # %{_prefix}/bin/@target_alias@-unprotoize@exe_ext@240 241 %dir %{_prefix}/lib/gcc-lib/@target_alias@/@gcc_version@/include242 243 %{_prefix}/@target_alias@244 -
scripts/mkbinutilspec.in
r47f7dc5 rdf1f734 51 51 specfile=${dst}/$target_alias-binutils-${binutils_version}.spec 52 52 53 if test -n "${binutils_patch_version}"; then 54 PATCH1="Patch0: binutils-${binutils_version}-rtems-${binutils_patch_version}.diff" 55 PATCH2="%patch -p0 -P0" 56 fi 57 53 58 sed -e "s%@Release\@%${binutils_rpm_release}%g" \ 54 59 -e "s%@rpm_build_root\@%${rpm_build_root}%g" \ … … 58 63 -e "s%@binutils_patch_version\@%${binutils_patch_version}%g" \ 59 64 -e "s%@exe_ext\@%${exe_ext}%g" \ 65 -e "s,@PATCH1\@,${PATCH1}," \ 66 -e "s,@PATCH2\@,${PATCH2}," \ 60 67 < ${RTEMS_DIR}/binutils/binutils.spec.in \ 61 68 > ${specfile} -
scripts/mkgcc3newlibspec.in
r47f7dc5 rdf1f734 58 58 specfile=${dst}/${target_alias}-gcc-${gcc3_version}-newlib-${gcc3newlib_version}.spec 59 59 60 patchn=-1 61 if test -n "${gcc3_patch_version}"; then 62 patchn=`expr $patchn + 1` 63 PATCH1="Patch${patchn}: gcc-${gcc3_version}-rtems-${gcc3_patch_version}.diff" 64 PATCH2="%patch${patchn} -p0" 65 SETUP="${SETUP} -a${patchn}" 66 fi 67 68 if test -n "${gcc3newlib_patch_version}"; then 69 patchn=`expr $patchn + 1` 70 PATCH3="Patch${patchn}: newlib-${gcc3newlib_version}-rtems-${gcc3newlib_patch_version}.diff" 71 PATCH4="%patch${patchn} -p0" 72 SETUP="${SETUP} -a${patchn}" 73 fi 74 60 75 # note that the variables in the gcc3newlib directory are actually the same 61 sed -e "s%@Release\@%${gcc3newlib_rpm_release}%g" \ 76 sed -e "s,@PATCH1\@,${PATCH1}," \ 77 -e "s,@PATCH2\@,${PATCH2}," \ 78 -e "s,@PATCH3\@,${PATCH3}," \ 79 -e "s,@PATCH4\@,${PATCH4}," \ 80 -e "s,@SETUP\@,${SETUP}," \ 81 -e "s%@Release\@%${gcc3newlib_rpm_release}%g" \ 62 82 -e "s%@target_alias\@%${target_alias}%g" \ 63 83 -e "s%@prefix\@%@prefix@%g" \ -
scripts/setup
r47f7dc5 rdf1f734 81 81 read gcc3_patch_version ;; 82 82 g) echo -n "NEWLIB source >" 83 read newlib_version ;;83 read gcc3newlib_version ;; 84 84 h) echo -n "NEWLIB patch version>" 85 read newlib_patch_version ;;85 read gcc3newlib_patch_version ;; 86 86 i) echo -n "GCC3/NEWLIB RPM release >" 87 87 read gcc3newlib_rpm_release ;; -
scripts/setup.def
r47f7dc5 rdf1f734 5 5 # 6 6 binutils_version=2.12 7 binutils_patch_version= none7 binutils_patch_version= 8 8 binutils_rpm_release=1 9 9 newlib_version=1.10.0
Note: See TracChangeset
for help on using the changeset viewer.