Changeset e4b4a771 in rtems
- Timestamp:
- 10/20/99 16:23:32 (24 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- e46cd61
- Parents:
- c5fc4a0b
- Location:
- scripts
- Files:
-
- 4 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/Makefile.am
rc5fc4a0b re4b4a771 1 1 AUTOMAKE_OPTIONS = foreign 2 2 3 SUBDIRS = . binutils gccnewlib 3 SUBDIRS = . binutils gccnewlib gdb 4 4 5 5 noinst_SCRIPTS = \ … … 12 12 mkgdbspec \ 13 13 mkrpms \ 14 mkspec \ 15 mktoolspec 14 mkspec 16 15 17 TEMPLATES = \ 18 gccnewlib.spec.in \ 19 gdb.spec.in \ 20 rtems.spec.in \ 21 toolchain.spec.in 16 TEMPLATES = 22 17 23 18 noinst_DATA = \ -
scripts/Makefile.in
rc5fc4a0b re4b4a771 69 69 AUTOMAKE_OPTIONS = foreign 70 70 71 SUBDIRS = . binutils gccnewlib 72 73 noinst_SCRIPTS = setup buildall mkbinutils_subpackage_version mkbinutilspec mkbspspec mkgccnewlibspec mkgdbspec mkrpms mkspec mktoolspec 74 75 76 TEMPLATES = gccnewlib.spec.in gdb.spec.in rtems.spec.in toolchain.spec.in 77 71 SUBDIRS = . binutils gccnewlib gdb 72 73 noinst_SCRIPTS = setup buildall mkbinutils_subpackage_version mkbinutilspec mkbspspec mkgccnewlibspec mkgdbspec mkrpms mkspec 74 75 76 TEMPLATES = 78 77 79 78 noinst_DATA = setup.def $(TEMPLATES) … … 88 87 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 89 88 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 90 CONFIG_CLEAN_FILES = mkbinutilspec mkgccnewlibspec 89 CONFIG_CLEAN_FILES = mkbinutilspec mkgccnewlibspec mkgdbspec 91 90 SCRIPTS = $(noinst_SCRIPTS) 92 91 … … 95 94 DIST_COMMON = README Makefile.am Makefile.in TODO aclocal.m4 configure \ 96 95 configure.in install-sh missing mkbinutilspec.in mkgccnewlibspec.in \ 97 mk installdirs96 mkgdbspec.in mkinstalldirs 98 97 99 98 … … 105 104 .SUFFIXES: 106 105 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 107 cd $(top_srcdir) && $(AUTOMAKE) --foreign --include-depsMakefile108 109 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 106 cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile 107 108 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) 110 109 cd $(top_builddir) \ 111 110 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status … … 121 120 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status 122 121 mkgccnewlibspec: $(top_builddir)/config.status mkgccnewlibspec.in 122 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status 123 mkgdbspec: $(top_builddir)/config.status mkgdbspec.in 123 124 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status 124 125 … … 250 251 mkdir $(distdir) 251 252 -chmod 777 $(distdir) 253 here=`cd $(top_builddir) && pwd`; \ 254 top_distdir=`cd $(distdir) && pwd`; \ 255 distdir=`cd $(distdir) && pwd`; \ 256 cd $(top_srcdir) \ 257 && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile 252 258 @for file in $(DISTFILES); do \ 253 259 d=$(srcdir); \ -
scripts/binutils/Makefile.in
rc5fc4a0b re4b4a771 1 # Makefile.in generated automatically by automake 1.4 from Makefile.am1 # Makefile.in generated automatically by automake 1.4a from Makefile.am 2 2 3 3 # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. … … 47 47 48 48 INSTALL = @INSTALL@ 49 INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)49 INSTALL_PROGRAM = @INSTALL_PROGRAM@ 50 50 INSTALL_DATA = @INSTALL_DATA@ 51 51 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 52 INSTALL_STRIP_FLAG = 52 53 transform = @program_transform_name@ 53 54 … … 94 95 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) 95 96 96 TAR = tar97 TAR = gtar 97 98 GZIP_ENV = --best 98 99 all: all-redirect 99 100 .SUFFIXES: 100 101 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 101 cd $(top_srcdir) && $(AUTOMAKE) --foreign --include-depsbinutils/Makefile102 103 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 102 cd $(top_srcdir) && $(AUTOMAKE) --foreign binutils/Makefile 103 104 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) 104 105 cd $(top_builddir) \ 105 106 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status … … 133 134 134 135 distdir: $(DISTFILES) 136 here=`cd $(top_builddir) && pwd`; \ 137 top_distdir=`cd $(top_distdir) && pwd`; \ 138 distdir=`cd $(distdir) && pwd`; \ 139 cd $(top_srcdir) \ 140 && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign binutils/Makefile 135 141 @for file in $(DISTFILES); do \ 136 142 d=$(srcdir); \ 137 143 if test -d $$d/$$file; then \ 138 cp -pr $$ /$$file $(distdir)/$$file; \144 cp -pr $$d/$$file $(distdir)/$$file; \ 139 145 else \ 140 146 test -f $(distdir)/$$file \ … … 165 171 all-redirect: all-am 166 172 install-strip: 167 $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install173 $(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install 168 174 installdirs: 169 175 $(mkinstalldirs) $(DESTDIR)$(RPM_SPECSdir) -
scripts/buildall
rc5fc4a0b re4b4a771 20 20 TARGETS="sh-rtems" 21 21 22 testing=no23 24 22 binutils=990901 25 23 gcc=2.95.1 … … 28 26 buildroot=/opt/tmp 29 27 28 testing=yes 29 do_binutils=yes 30 do_gdb=yes 31 do_gccnewlib=yes 32 staging_dir=/usr3/rtems_cds/test_cd/linux 33 30 34 # 31 35 # Now get started 32 36 # 33 37 start=`date` 34 35 38 36 39 echo PATH=$PATH … … 65 68 fi 66 69 70 if [ ${testing} = no ] ; then 71 cd ${RTEMS_DIR}/scripts 72 ./configure || exit 1 73 make || exit 1 74 fi 75 67 76 # Now generate all the specs 68 77 for target in ${TARGETS} 69 78 do 70 ${ECHO} ${RTEMS_DIR}/mkspec ${target} 79 tspecs=`find . -name "${target}*"` 80 ${ECHO} cp -r ${tspecs} ${dst} 71 81 done 72 82 … … 75 85 test -d log || mkdir log 76 86 77 78 87 # do all the tools 79 88 for target in ${TARGETS} 80 89 do 81 logfile=log/${target}-binutils 82 specfile=${dst}/${target}-binutils-${binutils}.spec 83 echo "rpm -ba --buildroot=${buildroot} ${specfile} >${logfile} 2>&1" 84 if [ ${testing} = no ] ; then 85 rpm -ba --buildroot=${buildroot} ${specfile} >${logfile} 2>&1 90 if [ ${do_binutils} = yes ] ; then 91 logfile=log/${target}-binutils 92 specfile=${dst}/${target}-binutils-${binutils}.spec 93 echo "rpm -ba --buildroot=${buildroot} ${specfile} >${logfile} 2>&1" 94 if [ ${testing} = no ] ; then 95 rpm -ba --buildroot=${buildroot} ${specfile} >${logfile} 2>&1 96 fi 97 ${ECHO} rm -rf ${dst}/../BUILD/${target}-binutils* 98 ${ECHO} rm -rf ${buildroot}/opt 99 else 100 echo Skipping binutils for ${target} 86 101 fi 87 ${ECHO} rm -rf ${dst}/../BUILD/${target}-binutils*88 ${ECHO} rm -rf ${buildroot}/opt89 102 90 # now build gdb 91 logfile=log/${target}-gdb 92 specfile=${dst}/${target}-gdb-${gdb}.spec 93 echo "rpm -ba --buildroot=${buildroot} ${specfile} >${logfile} 2>&1" 94 if [ ${testing} = no ] ; then 95 rpm -ba --buildroot=${buildroot} ${specfile} >${logfile} 2>&1 103 if [ ${do_gdb} = yes ] ; then 104 # now build gdb 105 logfile=log/${target}-gdb 106 specfile=${dst}/${target}-gdb-${gdb}.spec 107 echo "rpm -ba --buildroot=${buildroot} ${specfile} >${logfile} 2>&1" 108 if [ ${testing} = no ] ; then 109 rpm -ba --buildroot=${buildroot} ${specfile} >${logfile} 2>&1 110 fi 111 ${ECHO} rm -rf ${dst}/../BUILD/${target}-gdb* 112 ${ECHO} rm -rf ${buildroot}/opt 113 else 114 echo Skipping gdb for ${target} 96 115 fi 97 ${ECHO} rm -rf ${dst}/../BUILD/${target}-gdb*98 ${ECHO} rm -rf ${buildroot}/opt99 116 100 # now build gcc/newlib 101 # NOTE: This requires having binutils installed and we immediately 102 # remove it once finished. 103 ${ECHO} rpm -i ${dst}/../RPMS/i386/${target}-binutils-${binutils}-0.i386.rpm 117 if [ ${do_gccnewlib} = yes ] ; then 118 # now build gcc/newlib 119 # NOTE: This requires having binutils installed and we immediately 120 # remove it once finished. 121 binutils_rpm=${dst}/../RPMS/i386/${target}-binutils-${binutils}-0.i386.rpm 122 if [ ! -f ${binutils_rpm} ] ; then 123 echo There is no RPM for binutils for ${target}. 124 echo Looked for ${binutils_rpm}. 125 fi 126 ${ECHO} rpm -i ${binutils_rpm} 104 127 105 logfile=log/${target}-gccnewlib106 specfile=${dst}/${target}-gcc-${gcc}-newlib-${newlib}.spec107 echo "rpm -ba --buildroot=${buildroot} ${specfile} >${logfile} 2>&1"108 if [ ${testing} = no ] ; then109 rpm -ba --buildroot=${buildroot} ${specfile} >${logfile} 2>&1110 fi111 ${ECHO} rm -rf ${dst}/../BUILD/${target}-gcc*112 ${ECHO} rm -rf ${buildroot}/opt128 logfile=log/${target}-gccnewlib 129 specfile=${dst}/${target}-gcc-${gcc}-newlib-${newlib}.spec 130 echo "rpm -ba --buildroot=${buildroot} ${specfile} >${logfile} 2>&1" 131 if [ ${testing} = no ] ; then 132 rpm -ba --buildroot=${buildroot} ${specfile} >${logfile} 2>&1 133 fi 134 ${ECHO} rm -rf ${dst}/../BUILD/${target}-gcc* 135 ${ECHO} rm -rf ${buildroot}/opt 113 136 114 echo uninstalling binutils for ${target} 115 if [ ${testing} = no ] ; then 116 rpm -e `rpm -qa | grep rtems` 137 echo uninstalling binutils for ${target} 138 if [ ${testing} = no ] ; then 139 rpm -e `rpm -qa | grep rtems` 140 fi 141 else 142 echo Skipping gcc/newlib for ${target} 117 143 fi 118 144 done 119 145 120 staging_dir=/usr3/rtems_cds/test_cd/linux 146 if [ X${staging_dir} != X ] ; then 147 echo "Moving files to a staging directory for distribution." 148 echo "Plus it saves space in /usr. :)" 149 echo 150 echo Making staging directory.. 151 ${ECHO} mkdir ${staging_dir} 152 ${ECHO} mkdir ${staging_dir}/RPMS 153 ${ECHO} mkdir ${staging_dir}/SRPMS 121 154 122 ${ECHO} mkdir ${staging_dir} 123 ${ECHO} mkdir ${staging_dir}/RPMS 124 ${ECHO} mkdir ${staging_dir}/SRPMS 155 echo Moving RPMs to CD staging directory 156 for file in `ls -1 ${dst}/../RPMS/i386/*.rpm 2>/dev/null` 157 do 158 echo Moving ${file} 159 ${ECHO} mv ${file} ${staging_dir}/RPMS 160 done 125 161 126 echo Moving RPMs to CD staging directory 127 for file in `ls -1 ${dst}/../RPMS/i386/*.rpm 2>/dev/null` 128 do 129 ${ECHO} mv ${file} ${staging_dir}/RPMS 130 done 131 132 echo Moving SRPMs to CD staging directory 133 for file in `ls -1 ${dst}/../SRPMS/*.rpm 2>/dev/null` 134 do 135 ${ECHO} mv ${file} ${staging_dir}/SRPMS 136 done 162 echo Moving SRPMs to CD staging directory 163 for file in `ls -1 ${dst}/../SRPMS/*.rpm 2>/dev/null` 164 do 165 echo Moving ${file} 166 ${ECHO} mv ${file} ${staging_dir}/SRPMS 167 done 168 fi 137 169 138 170 # Now we are done -
scripts/gccnewlib/Makefile.in
rc5fc4a0b re4b4a771 101 101 .SUFFIXES: 102 102 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 103 cd $(top_srcdir) && $(AUTOMAKE) --foreign --include-depsgccnewlib/Makefile104 105 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 103 cd $(top_srcdir) && $(AUTOMAKE) --foreign gccnewlib/Makefile 104 105 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) 106 106 cd $(top_builddir) \ 107 107 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status … … 135 135 136 136 distdir: $(DISTFILES) 137 here=`cd $(top_builddir) && pwd`; \ 138 top_distdir=`cd $(top_distdir) && pwd`; \ 139 distdir=`cd $(distdir) && pwd`; \ 140 cd $(top_srcdir) \ 141 && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign gccnewlib/Makefile 137 142 @for file in $(DISTFILES); do \ 138 143 d=$(srcdir); \ -
scripts/gdb/Makefile.in
rc5fc4a0b re4b4a771 69 69 AUTOMAKE_OPTIONS = foreign 70 70 71 MK BINUTILSSPEC = $(SHELL) $(top_srcdir)/mkbinutilspec72 73 MK BINUTILSSPEC_DEPS = ../mkbinutilspec binutils.spec.in ../setup.cache74 75 TEMPLATES = binutils.spec.in76 77 78 RPM_SPECS_DATA = i386-rtems-$( BINUTILSVERS).spec sh-rtems-$(BINUTILSVERS).spec powerpc-rtems-$(BINUTILSVERS).spec sparc-rtems-$(BINUTILSVERS).spec m68k-rtems-$(BINUTILSVERS).spec mips64orion-rtems-$(BINUTILSVERS).spec i960-rtems-$(BINUTILSVERS).spec hppa1.1-rtems-$(BINUTILSVERS).spec71 MKGDBSPEC = $(SHELL) $(top_srcdir)/mkgdbspec 72 73 MKGDBSPEC_DEPS = ../mkgdbspec gdb.spec.in ../setup.cache 74 75 TEMPLATES = gdb.spec.in 76 77 78 RPM_SPECS_DATA = i386-rtems-$(GDBVERS).spec sh-rtems-$(GDBVERS).spec powerpc-rtems-$(GDBVERS).spec sparc-rtems-$(GDBVERS).spec m68k-rtems-$(GDBVERS).spec mips64orion-rtems-$(GDBVERS).spec i960-rtems-$(GDBVERS).spec hppa1.1-rtems-$(GDBVERS).spec 79 79 80 80 … … 100 100 .SUFFIXES: 101 101 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 102 cd $(top_srcdir) && $(AUTOMAKE) --foreign --include-deps binutils/Makefile103 104 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 102 cd $(top_srcdir) && $(AUTOMAKE) --foreign gdb/Makefile 103 104 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) 105 105 cd $(top_builddir) \ 106 106 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status … … 131 131 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) 132 132 133 subdir = binutils133 subdir = gdb 134 134 135 135 distdir: $(DISTFILES) 136 here=`cd $(top_builddir) && pwd`; \ 137 top_distdir=`cd $(top_distdir) && pwd`; \ 138 distdir=`cd $(distdir) && pwd`; \ 139 cd $(top_srcdir) \ 140 && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign gdb/Makefile 136 141 @for file in $(DISTFILES); do \ 137 142 d=$(srcdir); \ … … 207 212 208 213 209 i386-rtems-$( BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)210 $(MK BINUTILSSPEC) -cfg ../setup.cache -o . i386-rtems211 212 sh-rtems-$( BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)213 $(MK BINUTILSSPEC) -cfg ../setup.cache -o . sh-rtems214 215 powerpc-rtems-$( BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)216 $(MK BINUTILSSPEC) -cfg ../setup.cache -o . powerpc-rtems217 218 sparc-rtems-$( BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)219 $(MK BINUTILSSPEC) -cfg ../setup.cache -o . sparc-rtems220 221 m68k-rtems-$( BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)222 $(MK BINUTILSSPEC) -cfg ../setup.cache -o . m68k-rtems223 224 mips64orion-rtems-$( BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)225 $(MK BINUTILSSPEC) -cfg ../setup.cache -o . mips64orion-rtems226 227 i960-rtems-$( BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)228 $(MK BINUTILSSPEC) -cfg ../setup.cache -o . i960-rtems229 230 hppa1.1-rtems-$( BINUTILSVERS).spec: $(MKBINUTILSSPEC_DEPS)231 $(MK BINUTILSSPEC) -cfg ../setup.cache -o . hppa1.1-rtems214 i386-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) 215 $(MKGDBSPEC) -cfg ../setup.cache -o . i386-rtems 216 217 sh-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) 218 $(MKGDBSPEC) -cfg ../setup.cache -o . sh-rtems 219 220 powerpc-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) 221 $(MKGDBSPEC) -cfg ../setup.cache -o . powerpc-rtems 222 223 sparc-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) 224 $(MKGDBSPEC) -cfg ../setup.cache -o . sparc-rtems 225 226 m68k-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) 227 $(MKGDBSPEC) -cfg ../setup.cache -o . m68k-rtems 228 229 mips64orion-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) 230 $(MKGDBSPEC) -cfg ../setup.cache -o . mips64orion-rtems 231 232 i960-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) 233 $(MKGDBSPEC) -cfg ../setup.cache -o . i960-rtems 234 235 hppa1.1-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS) 236 $(MKGDBSPEC) -cfg ../setup.cache -o . hppa1.1-rtems 232 237 233 238 # Tell versions [3.59,3.63) of GNU make to not export all variables. -
scripts/mkgdbspec.in
rc5fc4a0b re4b4a771 50 50 . ./$CFG 51 51 52 specfile=${dst}/$target_alias-gdb.spec 52 specfile=${dst}/$target_alias-gdb-${gdb_version}.spec 53 53 54 sed -e "s%@Release@%${rpm_release}%g" \ 54 55 -e "s%@target_alias@%${target_alias}%g" \ 55 56 -e "s%@gdb_version@%${gdb_version}%g" \ 56 57 -e "s%@gdb_patch_version@%${gdb_patch_version}%g" \ 57 < ${RTEMS_DIR}/gdb .spec.in \58 < ${RTEMS_DIR}/gdb/gdb.spec.in \ 58 59 > ${specfile} 59 60
Note: See TracChangeset
for help on using the changeset viewer.