Changeset 8c5e54b in rtems
- Timestamp:
- 10/18/99 19:10:03 (24 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- c5b8d6d
- Parents:
- 18408af
- Location:
- scripts
- Files:
-
- 8 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/README
r18408af r8c5e54b 17 17 sequence of building rpms for several bsps. 18 18 19 20 mkbinutilspec 21 ------------- 22 23 mkbinutilspec takes two arguments: 24 25 $1 ... the target_alias for binutils RPMs of this toolset 26 27 Invoking mkbinutilspec will generate a <target_alias>-binutils.spec either in 28 29 /usr/src/packages/SPECS (SuSE convention) or 30 /usr/src/redhat/SPECS (Redhat convention) or 31 /usr/src/SPECS 32 33 Eg. ./mkbinutilspec sparc-rtems generates 34 35 On SuSE-6.2: /usr/src/packages/SPECS/sparc-rtems-binutils.spec 36 On RedHat 6.0: /usr/src/redhat/SPECS/sparc-rtems-binutils.spec 37 38 mkgccnewlibspec 39 --------------- 40 41 mkgccnewlibspec takes two arguments: 42 43 $1 ... the target_alias for the gcc/newlib RPMs of this toolset 44 45 Invoking mkgccnewlibspec will generate a <target_alias>-gccnewlibs.spec 46 either in: 47 48 /usr/src/packages/SPECS (SuSE convention) or 49 /usr/src/redhat/SPECS (Redhat convention) or 50 /usr/src/SPECS 51 52 Eg. ./mkgccnewlibspec sparc-rtems generates 53 54 On SuSE-6.2: /usr/src/packages/SPECS/sparc-rtems-gcc_newlib.spec 55 On RedHat 6.0: /usr/src/redhat/SPECS/sparc-rtems-gcc_newlib.spec 56 57 mkgdbspec 58 --------- 59 60 mkgdbspec takes two arguments: 61 62 $1 ... the target_alias for the gdb RPMs of this toolset 63 64 Invoking mkgdbspec will generate a <target_alias>-gdb.spec 65 either in: 66 67 /usr/src/packages/SPECS (SuSE convention) or 68 /usr/src/redhat/SPECS (Redhat convention) or 69 /usr/src/SPECS 70 71 Eg. ./mkgdbspec sparc-rtems generates 72 73 On SuSE-6.2: /usr/src/packages/SPECS/sparc-rtems-gcc_newlib.spec 74 On RedHat 6.0: /usr/src/redhat/SPECS/sparc-rtems-gcc_newlib.spec 75 76 77 # XXX BSPs not tested yet by Joel 78 # 79 # mkbspspec 80 # --------- 81 # 82 # mkbspspec takes two arguments: 83 # $1 ... the target_alias this bsp belongs to 84 # $2 ... the bsp to be built 85 # 86 # Invoking mkbspspec will generate a rtems-<target_alias>-<bsp>.spec either in 87 # /usr/src/packages/SPECS (SuSE convention) or 88 # /usr/src/redhat/SPECS (Redhat convention) or 89 # /usr/src/SPECS 90 # 91 # Eg. ./mkspec gensh1 sh-rtemself generates 92 # /usr/src/packages/SPECS/rtems-sh-rtemself-gensh1.spec on SuSE-6.2. 93 19 94 mkspec 20 ------ 21 22 mkspec takes two arguments: 23 $1 ... the bsp to be built 24 $2 ... the target_alias this bsp belongs to 25 26 Invoking mkspecs will generate a rtems-<target_alias>-<bsp>.spec either in 27 /usr/src/packages/SPECS (SuSE convention) or 28 /usr/src/redhat/SPECS (Redhat convention) or 29 /usr/src/SPECS 30 31 Eg. ./mkspec gensh1 sh-rtemself generates 32 /usr/src/packages/SPECS/rtems-sh-rtemself-gensh1.spec on SuSE-6.2. 95 --------- 96 97 mkspec takes two arguments: 98 99 $1 ... the target_alias for the RPMs composing this toolset 100 $2 ... the bsp to be built 101 102 Invoking mkspec will generate a set of spec files either in: 103 104 /usr/src/packages/SPECS (SuSE convention) or 105 /usr/src/redhat/SPECS (Redhat convention) or 106 /usr/src/SPECS 107 108 Eg. ./mkspec sparc-rtems erc32 generates 109 110 On SuSE-6.2: /usr/src/packages/SPECS/sparc-rtems-binutils.spec 111 /usr/src/packages/SPECS/sparc-rtems-gcc_newlib.spec 112 /usr/src/packages/SPECS/sparc-rtems-gdb.spec 113 On RedHat 6.0: /usr/src/packages/SPECS/sparc-rtems-binutils.spec 114 /usr/src/packages/SPECS/sparc-rtems-gcc_newlib.spec 115 /usr/src/packages/SPECS/sparc-rtems-gdb.spec 116 117 118 Building binutils-rpms 119 ---------------------- 120 121 0. Login as root. 122 123 1. Install a tarball of the various tool sources (with the 124 version number attached!) to /usr/src/[packages|redhat]/SOURCES 125 126 cd /usr/src/[packages|redhat]/SOURCES 127 cp .../binutils-<VERSION> . 128 cp .../binutils-<VERSION>-rtems-<DATE>.diff . 129 130 2. Generate and install the required rpm-spec file[s] 131 132 cd rtems-<VERSION>/scripts/ 133 mkbinutilspec <target_alias> 134 135 where target_alias is of the form sparc-rtems or sh-rtems-elf. 136 137 3. Build the rpms 138 139 Building a binary rpm: 140 141 rpm -bb /usr/src/[packages|redhat]/SPECS/rtems-<target_alias>-binutils.spec 142 143 Building a source and binary rpm 144 rpm -ba /usr/src/[packages|redhat]/SPECS/rtems-<target_alias>-binutils.spec 145 146 XXX Note: a BSP's src.rpm contains its spec-file and the tar-archive of the 147 sources (approx. 4-5MB per BSP). 148 149 Building TOOL-rpms 150 ------------------ 151 152 0. Login as root. 153 154 1. Install a tarball of the various tool sources (with the 155 version number attached!) to /usr/src/[packages|redhat]/SOURCES 156 157 cd /usr/src/[packages|redhat]/SOURCES 158 cp .../binutils-<VERSION> . 159 cp .../gcc-<VERSION> . 160 cp .../newlib-<VERSION> . 161 162 2. Generate and install the required rpm-spec file[s] 163 164 cd rtems-<VERSION>/scripts/ 165 mktoolspec <target_alias> 166 167 3. Build the rpms 168 169 Building a binary rpm: 170 rpm -bb /usr/src/[packages|redhat]/SPECS/rtems-<target_alias>.spec 171 172 Building a source and binary rpm 173 rpm -ba /usr/src/[packages|redhat]/SPECS/rtems-<target_alias>.spec 174 175 XXX Note: a BSP's src.rpm contains its spec-file and the tar-archive of the 176 sources (approx. 4-5MB per BSP). 33 177 34 178 Building BSP-rpms -
scripts/mkspec
r18408af r8c5e54b 6 6 sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'` 7 7 8 bsp=$19 target_alias=$28 target_alias=$1 9 bsp=$2 10 10 release=0 11 11 12 ${RTEMS_DIR}/scripts/mkbspspec $bsp $target_alias 13 ${RTEMS_DIR}/scripts/mktoolspec $target_alias 12 #${RTEMS_DIR}/scripts/mkbspspec $bsp $target_alias 13 #${RTEMS_DIR}/scripts/mkbinutilspec $target_alias 14 #${RTEMS_DIR}/scripts/mkgccnewlibspec $target_alias 15 #${RTEMS_DIR}/scripts/mkgdbspec $target_alias 16 ./mkbinutilspec $target_alias 17 ./mkgccnewlibspec $target_alias 18 ./mkgdbspec $target_alias 14 19 -
scripts/mktoolspec
r18408af r8c5e54b 1 1 #!/bin/sh 2 # 3 # Usage: mktoolspec CPU 2 4 # 3 5 … … 6 8 sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'` 7 9 8 bsp=$1 9 target_alias=$2 10 target_alias=$1 10 11 release=0 11 12 … … 31 32 > ${dst}/rtems-$target_alias-tools.spec 32 33 33 34 echo Generated ${dst}/rtems-$target_alias-tools.spec. -
scripts/toolchain.spec.in
r18408af r8c5e54b 18 18 19 19 Autoreqprov: on 20 Packager: corsepiu@faw.uni-ulm.de 20 Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com 21 21 22 22 Version: @Version@ … … 24 24 Source0: gcc-2.95.1.tar.gz 25 25 Source1: newlib-1.8.2.tar.gz 26 Source2: binutils- 2.9.5.tar.gz27 Patch0: gcc-2.95.1-rtems-1999101 4.diff28 Patch1: newlib-1.8.2-rtems-1999101 4.diff29 Patch2: binutils- 2.9.5-rtems-19991014.diff26 Source2: binutils-990901.tar.gz 27 Patch0: gcc-2.95.1-rtems-19991015.diff 28 Patch1: newlib-1.8.2-rtems-19991015.diff 29 Patch2: binutils-990901-rtems-19991015.diff 30 30 31 31 Buildroot: /tmp 32 32 # Patch: 33 33 %description 34 RTEMS is a free operating system for embedded systems.34 RTEMS is an open source operating system for embedded systems. 35 35 36 36 Authors: … … 69 69 for f in bfd binutils gas gprof ld opcodes etc 70 70 do 71 ln -s ../binutils- 2.9.5/$f .71 ln -s ../binutils-990901/$f . 72 72 done 73 73 … … 80 80 ( cd build 81 81 ../src/configure --target=@target_alias@ \ 82 --with-gnu-as --with-gnu-ld --verbose \ 83 --prefix=/opt/rtems \ 84 --with-sys-includes=$RPM_BUILD_ROOT/opt/rtems/@target_alias@/sys-include 82 --with-gnu-as --with-gnu-ld --with-newlib --verbose \ 83 --prefix=/opt/rtems 85 84 86 85 test -d $RPM_BUILD_ROOT/opt \
Note: See TracChangeset
for help on using the changeset viewer.