Changeset 0c602f0 in rtems


Ignore:
Timestamp:
Jan 23, 2000, 7:20:02 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
9ce64148
Parents:
8d37343
Message:

Patch from David Fiddes <D.J@…> which adds basic
Cygwin support to the RPM scripts. The patch from David did not
apply cleanly and Joel ended up making all the modifications
plus some it should have included for consistency by hand. His comments:

I've included a diff against the last (19991203) snapshot RPM scripts that
adds what I think is required for Cygwin support. Basically all this boils
down to is adding EXE extension support. I've added the AC_EXEEXT rule to
conifgure.in (requires a valid 'cc' to work - this is not available in the
standard Cygwin distro). Each of the *.spec.in have @exe_ext@ includes in
them for each program that results in an EXE. The only odity here is that
the chill driver program is a shell script and thus does not require .exe to
be added... The mk*.in have all been updated to process the new exe_ext
rule.

Location:
scripts
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • scripts/binutils/binutils.spec.in

    r8d37343 r0c602f0  
    122122
    123123%dir /opt/rtems/bin
    124 /opt/rtems/bin/@target_alias@-addr2line
    125 /opt/rtems/bin/@target_alias@-ar
    126 /opt/rtems/bin/@target_alias@-as
    127 /opt/rtems/bin/@target_alias@-c++filt
    128 /opt/rtems/bin/@target_alias@-gasp
    129 /opt/rtems/bin/@target_alias@-ld
    130 /opt/rtems/bin/@target_alias@-nm
    131 /opt/rtems/bin/@target_alias@-objcopy
    132 /opt/rtems/bin/@target_alias@-objdump
    133 /opt/rtems/bin/@target_alias@-ranlib
    134 /opt/rtems/bin/@target_alias@-readelf
    135 /opt/rtems/bin/@target_alias@-size
    136 /opt/rtems/bin/@target_alias@-strings
    137 /opt/rtems/bin/@target_alias@-strip
     124/opt/rtems/bin/@target_alias@-addr2line@exe_ext@
     125/opt/rtems/bin/@target_alias@-ar@exe_ext@
     126/opt/rtems/bin/@target_alias@-as@exe_ext@
     127/opt/rtems/bin/@target_alias@-c++filt@exe_ext@
     128/opt/rtems/bin/@target_alias@-gasp@exe_ext@
     129/opt/rtems/bin/@target_alias@-ld@exe_ext@
     130/opt/rtems/bin/@target_alias@-nm@exe_ext@
     131/opt/rtems/bin/@target_alias@-objcopy@exe_ext@
     132/opt/rtems/bin/@target_alias@-objdump@exe_ext@
     133/opt/rtems/bin/@target_alias@-ranlib@exe_ext@
     134/opt/rtems/bin/@target_alias@-readelf@exe_ext@
     135/opt/rtems/bin/@target_alias@-size@exe_ext@
     136/opt/rtems/bin/@target_alias@-strings@exe_ext@
     137/opt/rtems/bin/@target_alias@-strip@exe_ext@
    138138
    139139%dir /opt/rtems/include
     
    152152%dir /opt/rtems/@target_alias@
    153153%dir /opt/rtems/@target_alias@/bin
    154 /opt/rtems/@target_alias@/bin/ar
    155 /opt/rtems/@target_alias@/bin/as
    156 /opt/rtems/@target_alias@/bin/ld
    157 /opt/rtems/@target_alias@/bin/nm
    158 /opt/rtems/@target_alias@/bin/ranlib
    159 /opt/rtems/@target_alias@/bin/strip
     154/opt/rtems/@target_alias@/bin/ar@exe_ext@
     155/opt/rtems/@target_alias@/bin/as@exe_ext@
     156/opt/rtems/@target_alias@/bin/ld@exe_ext@
     157/opt/rtems/@target_alias@/bin/nm@exe_ext@
     158/opt/rtems/@target_alias@/bin/ranlib@exe_ext@
     159/opt/rtems/@target_alias@/bin/strip@exe_ext@
    160160
    161161%dir /opt/rtems/@target_alias@/lib
  • scripts/configure.in

    r8d37343 r0c602f0  
    33AC_INIT(binutils)
    44AM_INIT_AUTOMAKE(scripts,19991025-0,no)
     5
     6AC_EXEEXT
    57
    68test -f ./setup.cache || cp ${srcdir}/setup.def ./setup.cache
  • scripts/gccnewlib/gccnewlib.spec.in

    r8d37343 r0c602f0  
    204204
    205205%dir /opt/rtems/bin
    206 /opt/rtems/bin/cpp
    207 /opt/rtems/bin/gcov
    208 /opt/rtems/bin/@target_alias@-c++
    209 /opt/rtems/bin/@target_alias@-g++
    210 /opt/rtems/bin/@target_alias@-gcc
    211 /opt/rtems/bin/@target_alias@-protoize
    212 /opt/rtems/bin/@target_alias@-unprotoize
     206/opt/rtems/bin/cpp@exe_ext@
     207/opt/rtems/bin/gcov@exe_ext@
     208/opt/rtems/bin/@target_alias@-c++@exe_ext@
     209/opt/rtems/bin/@target_alias@-g++@exe_ext@
     210/opt/rtems/bin/@target_alias@-gcc@exe_ext@
     211/opt/rtems/bin/@target_alias@-protoize@exe_ext@
     212/opt/rtems/bin/@target_alias@-unprotoize@exe_ext@
    213213
    214214%dir /opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/include
     
    270270%files -n @target_alias@-gcj -f build/files.gcj
    271271%dir /opt/rtems/bin
    272 /opt/rtems/bin/jcf-dump
    273 /opt/rtems/bin/jv-scan
    274 /opt/rtems/bin/gcjh
    275 /opt/rtems/bin/@target_alias@-gcj
     272/opt/rtems/bin/jcf-dump@exe_ext@
     273/opt/rtems/bin/jv-scan@exe_ext@
     274/opt/rtems/bin/gcjh@exe_ext@
     275/opt/rtems/bin/@target_alias@-gcj@exe_ext@
    276276
    277277/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/jc1
     
    281281%files -n @target_alias@-g77 -f build/files.g77
    282282%dir /opt/rtems/bin
    283 /opt/rtems/bin/@target_alias@-g77
     283/opt/rtems/bin/@target_alias@-g77@exe_ext@
    284284
    285285%dir /opt/rtems/info
     
    290290%doc /opt/rtems/man/man1/@target_alias@-g77.1
    291291
    292 /opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/f771
     292/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/f771@exe_ext@
    293293
    294294%post -n @target_alias@-g77
     
    314314
    315315%files -n @target_alias@-objc -f build/files.objc
    316 /opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/cc1obj
     316/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/cc1obj@exe_ext@
    317317/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/include/objc
  • scripts/gccnewlib/gccnewlib_c_only.spec.in

    r8d37343 r0c602f0  
    138138
    139139%dir /opt/rtems/bin
    140 /opt/rtems/bin/cpp
    141 /opt/rtems/bin/gcov
    142 /opt/rtems/bin/@target_alias@-c++
    143 /opt/rtems/bin/@target_alias@-g++
    144 /opt/rtems/bin/@target_alias@-gcc
    145 /opt/rtems/bin/@target_alias@-protoize
    146 /opt/rtems/bin/@target_alias@-unprotoize
     140/opt/rtems/bin/cpp@exe_ext@
     141/opt/rtems/bin/gcov@exe_ext@
     142/opt/rtems/bin/@target_alias@-c++@exe_ext@
     143/opt/rtems/bin/@target_alias@-g++@exe_ext@
     144/opt/rtems/bin/@target_alias@-gcc@exe_ext@
     145/opt/rtems/bin/@target_alias@-protoize@exe_ext@
     146/opt/rtems/bin/@target_alias@-unprotoize@exe_ext@
    147147
    148148%dir /opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/include
  • scripts/gdb/gdb.spec.in

    r8d37343 r0c602f0  
    116116
    117117%dir /opt/rtems/bin
    118 /opt/rtems/bin/@target_alias@-gdb
     118/opt/rtems/bin/@target_alias@-gdb@exe_ext@
    119119
  • scripts/gnatnewlib/gnatnewlib.spec.in

    r8d37343 r0c602f0  
    166166
    167167%dir /opt/rtems/bin
    168 /opt/rtems/bin/cpp
    169 /opt/rtems/bin/gcov
    170 /opt/rtems/bin/@target_alias@-c++
    171 /opt/rtems/bin/@target_alias@-g++
    172 /opt/rtems/bin/@target_alias@-gcc
    173 /opt/rtems/bin/@target_alias@-protoize
    174 /opt/rtems/bin/@target_alias@-unprotoize
     168/opt/rtems/bin/cpp@exe_ext@
     169/opt/rtems/bin/gcov@exe_ext@
     170/opt/rtems/bin/@target_alias@-c++@exe_ext@
     171/opt/rtems/bin/@target_alias@-g++@exe_ext@
     172/opt/rtems/bin/@target_alias@-gcc@exe_ext@
     173/opt/rtems/bin/@target_alias@-protoize@exe_ext@
     174/opt/rtems/bin/@target_alias@-unprotoize@exe_ext@
    175175
    176176%dir /opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/include
     
    203203%files -n @target_alias@-chill -f build/files.chill
    204204%dir /opt/rtems/bin
    205 /opt/rtems/bin/@target_alias@-chill
     205/opt/rtems/bin/@target_alias@-chill@exe_ext@
    206206
    207207%dir /opt/rtems/info
     
    232232%files -n @target_alias@-gcj -f build/files.gcj
    233233%dir /opt/rtems/bin
    234 /opt/rtems/bin/jcf-dump
    235 /opt/rtems/bin/jv-scan
    236 /opt/rtems/bin/gcjh
    237 /opt/rtems/bin/@target_alias@-gcj
    238 
    239 /opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/jc1
    240 /opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/jvgenmain
     234/opt/rtems/bin/jcf-dump@exe_ext@
     235/opt/rtems/bin/jv-scan@exe_ext@
     236/opt/rtems/bin/gcjh@exe_ext@
     237/opt/rtems/bin/@target_alias@-gcj@exe_ext@
     238
     239/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/jc1@exe_ext@
     240/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/jvgenmain@exe_ext@
    241241
    242242
    243243%files -n @target_alias@-g77 -f build/files.g77
    244244%dir /opt/rtems/bin
    245 /opt/rtems/bin/@target_alias@-g77
     245/opt/rtems/bin/@target_alias@-g77@exe_ext@
    246246
    247247%dir /opt/rtems/info
     
    252252%doc /opt/rtems/man/man1/@target_alias@-g77.1
    253253
    254 /opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/f771
     254/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/f771@exe_ext@
    255255
    256256%post -n @target_alias@-g77
     
    276276
    277277%files -n @target_alias@-objc -f build/files.objc
    278 /opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/cc1obj
     278/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/cc1obj@exe_ext@
    279279/opt/rtems/lib/gcc-lib/@target_alias@/@gcc_version@/include/objc
  • scripts/mkbinutilspec.in

    r8d37343 r0c602f0  
    88CFG=setup.cache
    99dst=@RPM_SPECSdir@
     10exe_ext=@EXEEXT@
    1011
    1112usage()
     
    5556    -e "s%@binutils_version@%${binutils_version}%g" \
    5657    -e "s%@binutils_patch_version@%${binutils_patch_version}%g" \
     58    -e "s%@ext_ext@%${ext_ext}%g" \
    5759< ${RTEMS_DIR}/binutils/binutils.spec.in \
    5860> ${specfile}
  • scripts/mkbspspec.in

    r8d37343 r0c602f0  
    77CFG=setup.cache
    88dst=@RPM_SPECSdir@
     9exe_ext=@EXEEXT@
    910
    1011usage()
     
    5556    -e "s%@rpm_build_root@%${rpm_build_root}%g" \
    5657    -e "s%@target_alias@%${target_alias}%g" \
     58    -e "s%@ext_ext@%${ext_ext}%g" \
    5759< ${RTEMS_DIR}/rtems/rtems.spec.in \
    5860> ${specfile}
  • scripts/mkgccnewlibspec.in

    r8d37343 r0c602f0  
    88CFG=setup.cache
    99dst=@RPM_SPECSdir@
     10exe_ext=@EXEEXT@
    1011
    1112usage()
     
    6465    -e "s%@newlib_version@%${newlib_version}%g" \
    6566    -e "s%@newlib_patch_version@%${newlib_patch_version}%g" \
     67    -e "s%@ext_ext@%${ext_ext}%g" \
    6668< ${specsrc} \
    6769> ${specfile}
  • scripts/mkgdbspec.in

    r8d37343 r0c602f0  
    88CFG=setup.cache
    99dst=@RPM_SPECSdir@
     10exe_ext=@EXEEXT@
    1011
    1112usage()
     
    7071    -e "s%@gdb_patch_version@%${gdb_patch_version}%g" \
    7172    -e "s%@extra_configure_arguments@%${extra_configure_arguments}%g" \
     73    -e "s%@ext_ext@%${ext_ext}%g" \
    7274< ${RTEMS_DIR}/gdb/gdb.spec.in \
    7375> ${specfile}
     
    7577case ${target_alias} in
    7678  powerpc*)
    77      echo "/opt/rtems/bin/${target_alias}-run"
     79     echo "/opt/rtems/bin/${target_alias}-run${exe_ext}"
    7880     ;;
    7981  sparc*)
    80      echo "/opt/rtems/bin/${target_alias}-run"
    81      echo "/opt/rtems/bin/${target_alias}-sis"
     82     echo "/opt/rtems/bin/${target_alias}-run${exe_ext}"
     83     echo "/opt/rtems/bin/${target_alias}-sis${exe_ext}"
    8284     ;;
    8385  *) ;;
  • scripts/mkgnatnewlibspec.in

    r8d37343 r0c602f0  
    88CFG=setup.cache
    99dst=@RPM_SPECSdir@
     10exe_ext=@EXEEXT@
    1011
    1112usage()
     
    5758    -e "s%@newlib_version@%${newlib_version}%g" \
    5859    -e "s%@newlib_patch_version@%${newlib_patch_version}%g" \
     60    -e "s%@ext_ext@%${ext_ext}%g" \
    5961< ${RTEMS_DIR}/gccnewlib/gccnewlib.spec.in \
    6062> ${specfile}
Note: See TracChangeset for help on using the changeset viewer.