Changeset 1a768ef in rtems
- Timestamp:
- 08/04/06 09:49:35 (17 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 5adb73a
- Parents:
- 808db8e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/mingw/build-rpms.sh
r808db8e r1a768ef 1 #! /bin/sh 1 2 # 2 3 # $Id$ … … 40 41 mingw32_tool_list="w32api libs $base_tool_list" 41 42 43 cygwin_cc_name="pc" 44 freebsd_cc_name="pc" 45 mingw32_cc_name="pc" 46 42 47 cygwin_cpu_list="i686" 43 48 freebsd_cpu_list="i586" 44 49 mingw32_cpu_list="i686" 45 50 46 rpm_topdir=$(rpm build --showrc | grep "\?\?\: _topdir" | sed 's/.*:.*_topdir\t*//')51 rpm_topdir=$(rpm --eval "%{_topdir}") 47 52 48 53 prefix=/opt/rtems … … 196 201 rpm_installer() 197 202 { 198 local rpm_ bases=203 local rpm_common= 199 204 local rpm_libs= 200 205 local rpm_tools= … … 219 224 for r in $rpm_names 220 225 do 221 if [ $(echo $r | sed 's/.* base.*/yes/') = yes ]; then222 rpm_ bases="$rpm_bases$r"226 if [ $(echo $r | sed 's/.*common.*/yes/') = yes ]; then 227 rpm_common="$rpm_common $r" 223 228 elif [ $(echo $r | sed 's/.*lib.*/yes/') = yes ]; then 224 229 rpm_libs="$rpm_libs $r" … … 230 235 done 231 236 232 for r in $rpm_ bases$rpm_libs $rpm_tools237 for r in $rpm_common $rpm_libs $rpm_tools 233 238 do 234 239 echo "rpm $rpm_database --force" \ … … 334 339 335 340 if [ $canadian_cross = yes ]; then 341 ccl=${h}_cc_name 336 342 echo "rpmbuild --define '_build i686-redhat-linux' --define '_host $th' $rpm_database $rpmbuild_cmd" 337 343 $rpmbuild --define "_build i686-redhat-linux" \ 338 344 --define "_host $th" \ 345 --define "__cc $processor-${!ccl}-$h-gcc" \ 339 346 $rpm_database $rpmbuild_cmd 340 347 check "building host cross target: $rpm_prefix$t-rtems$version-$s"
Note: See TracChangeset
for help on using the changeset viewer.