diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2006-02-14 14:42:33 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2006-02-14 14:42:33 +0000 |
commit | 67023def73c2d0d1b38215e07efcf9453aaeb6e3 (patch) | |
tree | f73dcfbfd3319536970d0b6668b34e712cf107a9 | |
parent | New. (diff) | |
download | rtems-67023def73c2d0d1b38215e07efcf9453aaeb6e3.tar.bz2 |
New.
-rw-r--r-- | contrib/crossrpms/cygwin/.cvsignore | 3 | ||||
-rw-r--r-- | contrib/crossrpms/cygwin/Makefile.am | 41 | ||||
-rw-r--r-- | contrib/crossrpms/cygwin/binutils-sources.add | 3 |
3 files changed, 47 insertions, 0 deletions
diff --git a/contrib/crossrpms/cygwin/.cvsignore b/contrib/crossrpms/cygwin/.cvsignore new file mode 100644 index 0000000000..d83e88c996 --- /dev/null +++ b/contrib/crossrpms/cygwin/.cvsignore @@ -0,0 +1,3 @@ +Makefile +Makefile.in +*.spec diff --git a/contrib/crossrpms/cygwin/Makefile.am b/contrib/crossrpms/cygwin/Makefile.am new file mode 100644 index 0000000000..c0d328a230 --- /dev/null +++ b/contrib/crossrpms/cygwin/Makefile.am @@ -0,0 +1,41 @@ +# $Id$ + +TARGET = i686-pc-cygwin + +noinst_DATA = +CLEANFILES = + + +BINUTILS_VERS = 20050610-1 +BINUTILS_RPMREL = 0.20060214.0 + +BINUTILS_SUBPACKAGES = $(top_builddir)/common/common.add +BINUTILS_SUBPACKAGES += ../binutils/binutils.add +BINUTILS_SUBPACKAGES += ../binutils/rpm-install.add +BINUTILS_SUBPACKAGES += $(top_builddir)/common/clean.add +BINUTILS_SUBPACKAGES += ../binutils/target-binutils.add +BINUTILS_SUBPACKAGES += ../binutils/base-binutils.add + +$(TARGET)-binutils.spec.in: $(BINUTILS_SUBPACKAGES) + cat $^ | sed \ + -e "/[@]SOURCES[@]/r ./binutils-sources.add" \ + -e "/[@]SOURCES[@]/d" \ + -e '/^%define _prefix.*$$/d' \ + -e '/^%define rpmgroup.*$$/d' \ + -e '/^%define binutils_target.*$$/d' \ + -e "s,[@]rpmprefix[@],,g" \ + -e "s,rtems[@]osversion[@],rtems,g" \ + -e "s,%{rpmgroup},Development/Tools,g" \ + > $(TARGET)-binutils.spec.in +CLEANFILES += $(TARGET)-binutils.spec.in + + +$(TARGET)-binutils.spec: $(TARGET)-binutils.spec.in + sed \ + -e "s/[@]tool_target[@]/$(TARGET)/g" \ + -e "s/[@]BINUTILS_VERS[@]/$(BINUTILS_VERS)/g" \ + -e "s/[@]BINUTILS_RPMREL[@]/$(BINUTILS_RPMREL)/g" \ + -e "s,[@]PATCH0[@],," \ + $(srcdir)/$(TARGET)-binutils.spec.in > $@ +CLEANFILES += $(TARGET)-binutils.spec +noinst_DATA += $(TARGET)-binutils.spec diff --git a/contrib/crossrpms/cygwin/binutils-sources.add b/contrib/crossrpms/cygwin/binutils-sources.add new file mode 100644 index 0000000000..91b82eec8a --- /dev/null +++ b/contrib/crossrpms/cygwin/binutils-sources.add @@ -0,0 +1,3 @@ +Source0: ftp://cygwin.com/pub/cygwin/release/binutils/binutils-%{binutils_version}-src.tar.bz2 +%{?!_with_sources:NoSource: 0} +@PATCH0@ |