diff options
author | Joerg Koenig <jck@techsat.com> | 2017-11-03 06:57:02 (GMT) |
---|---|---|
committer | Joerg Koenig <jck@techsat.com> | 2017-11-03 06:57:02 (GMT) |
commit | 48b181d5c6b3bd5a3890e7869496d46d26d6df1a (patch) | |
tree | a4e88c78b404c5b6075f19c3c6cee1a6ffa0e03e | |
download | crossppc-48b181d5c6b3bd5a3890e7869496d46d26d6df1a.zip crossppc-48b181d5c6b3bd5a3890e7869496d46d26d6df1a.tar.gz crossppc-48b181d5c6b3bd5a3890e7869496d46d26d6df1a.tar.bz2 |
Initial added
Change-Id: I6d41adf009b00888d38319f6dfc0e8104c0bcd98
-rw-r--r-- | Makefile | 91 | ||||
-rw-r--r-- | SOURCES/binutils-2.29.tar.bz2 | bin | 0 -> 29073316 bytes | |||
-rw-r--r-- | SOURCES/gcc-7.2.0.tar.gz | bin | 0 -> 111997123 bytes | |||
-rw-r--r-- | SOURCES/gcc72-vxworks.patch | 43 | ||||
-rw-r--r-- | SOURCES/gmp-6.1.2.tar.gz | bin | 0 -> 3208236 bytes | |||
-rw-r--r-- | SOURCES/isl-0.18.tar.bz2 | bin | 0 -> 1658291 bytes | |||
-rw-r--r-- | SOURCES/mpc-1.0.3.tar.gz | bin | 0 -> 669925 bytes | |||
-rw-r--r-- | SOURCES/mpfr-3.1.6.tar.bz2 | bin | 0 -> 1287202 bytes |
8 files changed, 134 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..281f1fd --- /dev/null +++ b/Makefile @@ -0,0 +1,91 @@ +CWD = $(shell readlink -f .) +VERSION=0.4.1 +SRCDIR=$(CWD)/SOURCES +BUILDDIR=$(CWD)/build +#WIND_BASE=$(CWD)/unpacked/tornado/2.2.1 +#WIND_USR=$(WIND_BASE)/target +WIND_BASE=/master/tornado/2.2.1 +WIND_USR=$(WIND_BASE)/target +GCC_TARGET=powerpc-wrs-vxworks +MASCH=$(shell uname -m) +GCC_PKGVERSION="TechSAT VxWorks 5.5/Tornado 2.2.1 Cross-Toolchain ($(MASCH)) v$(VERSION)" +INSTDIR=$(CWD)/inst/crossppc +PACKAGE=$(CWD)/crossgcc-vxworks-$(VERSION)-bin-linux-$(MASCH).tar.gz + +JOBS=-j4 + +all: prepare binutils xgcc pack clean + +prepare: + mkdir -p $(BUILDDIR) + mkdir -p $(INSTDIR) + rm -Rf $(CWD)/unpacked + mkdir -p $(CWD)/unpacked + cd $(CWD)/unpacked && \ + tar -zxf $(SRCDIR)/gcc-7.2.0.tar.gz + cd $(CWD)/unpacked/gcc-7.2.0 && \ + patch -p1 < $(SRCDIR)/gcc72-vxworks.patch + cd $(CWD)/unpacked && \ + tar -zxf $(SRCDIR)/gmp-6.1.2.tar.gz +# cd $(CWD)/unpacked && \ +# tar -zxf $(SRCDIR)/tornado-2.2.1.tar.gz + cd $(CWD)/unpacked && \ + tar -jxf $(SRCDIR)/binutils-2.29.tar.bz2 + cd $(CWD)/unpacked && \ + tar -jxf $(SRCDIR)/isl-0.18.tar.bz2 + cd $(CWD)/unpacked && \ + tar -zxf $(SRCDIR)/mpc-1.0.3.tar.gz + cd $(CWD)/unpacked && \ + tar -jxf $(SRCDIR)/mpfr-3.1.6.tar.bz2 + mv $(CWD)/unpacked/gmp-6.1.2 $(CWD)/unpacked/gcc-7.2.0/gmp + mv $(CWD)/unpacked/isl-0.18 $(CWD)/unpacked/gcc-7.2.0/isl + mv $(CWD)/unpacked/mpc-1.0.3 $(CWD)/unpacked/gcc-7.2.0/mpc + mv $(CWD)/unpacked/mpfr-3.1.6 $(CWD)/unpacked/gcc-7.2.0/mpfr + +binutils: + rm -Rf $(BUILDDIR)/binutils + mkdir -p $(BUILDDIR)/binutils + cd $(BUILDDIR)/binutils && \ + $(CWD)/unpacked/binutils-2.29/configure \ + --with-pkgversion=$(GCC_PKGVERSION) \ + --prefix=$(INSTDIR) \ + --target=$(GCC_TARGET) \ + --with-headers=$(WIND_BASE)/target/h + cd $(BUILDDIR)/binutils && \ + make $(JOBS) && \ + make install-strip + +xgcc: + rm -Rf $(BUILDDIR)/gcc + mkdir -p $(BUILDDIR)/gcc + cd $(BUILDDIR)/gcc && \ + export WIND_BASE=$(WIND_BASE) && \ + export WIND_USR=$(WIND_USR) && \ + LDFLAGS="-static-libgcc -static-libstdc++" \ + $(CWD)/unpacked/gcc-7.2.0/configure \ + --with-pkgversion=$(GCC_PKGVERSION) \ + --prefix=$(INSTDIR) \ + --target=$(GCC_TARGET) \ + --with-headers=$(WIND_BASE)/target/h \ + --disable-plugin \ + --enable-languages="c,c++" \ + --disable-multilib \ + --with-endian=big \ + --enable-threads=vxworks + cd $(BUILDDIR)/gcc && \ + export WIND_BASE=$(WIND_BASE) && \ + export WIND_USR=$(WIND_USR) && \ + make $(JOBS) && \ + make install-strip + rm -Rf $(INSTDIR)/$(GCC_TARGET)/sys-include + +pack: + cd $(INSTDIR) && \ + tar -zcf $(PACKAGE) . + +clean: + rm -Rf $(BUILDDIR) + rm -Rf $(CWD)/unpacked + rm -Rf $(CWD)/inst + + diff --git a/SOURCES/binutils-2.29.tar.bz2 b/SOURCES/binutils-2.29.tar.bz2 Binary files differnew file mode 100644 index 0000000..6194a45 --- /dev/null +++ b/SOURCES/binutils-2.29.tar.bz2 diff --git a/SOURCES/gcc-7.2.0.tar.gz b/SOURCES/gcc-7.2.0.tar.gz Binary files differnew file mode 100644 index 0000000..0b9824d --- /dev/null +++ b/SOURCES/gcc-7.2.0.tar.gz diff --git a/SOURCES/gcc72-vxworks.patch b/SOURCES/gcc72-vxworks.patch new file mode 100644 index 0000000..07b264e --- /dev/null +++ b/SOURCES/gcc72-vxworks.patch @@ -0,0 +1,43 @@ +diff -ruNb gcc-7.2.0.orig/libgcc/libgcov-driver-system.c gcc-7.2.0/libgcc/libgcov-driver-system.c +--- gcc-7.2.0.orig/libgcc/libgcov-driver-system.c 2017-01-01 13:07:43.905435000 +0100 ++++ gcc-7.2.0/libgcc/libgcov-driver-system.c 2017-11-02 22:49:00.522019661 +0100 +@@ -105,14 +105,12 @@ + *s = '\0'; + + /* Try to make directory if it doesn't already exist. */ +- if (access (filename, F_OK) == -1 +-#ifdef TARGET_POSIX_IO ++ if ( ++#ifdef F_OK ++ access (filename, F_OK) == -1 + && mkdir (filename, 0755) == -1 + #else +-#ifdef mkdir +-#undef mkdir +-#endif +- && mkdir (filename) == -1 ++ mkdir (filename) + #endif + /* The directory might have been made by another process. */ + && errno != EEXIST) +diff -ruNb gcc-7.2.0.orig/libssp/ssp.c gcc-7.2.0/libssp/ssp.c +--- gcc-7.2.0.orig/libssp/ssp.c 2017-04-02 02:35:58.914913000 +0200 ++++ gcc-7.2.0/libssp/ssp.c 2017-11-02 22:49:46.001904097 +0100 +@@ -90,7 +90,7 @@ + CryptReleaseContext(hprovider, 0); + } + #else +- int fd = open ("/dev/urandom", O_RDONLY); ++ int fd = open ("/dev/urandom", O_RDONLY, 0); + if (fd != -1) + { + ssize_t size = read (fd, &__stack_chk_guard, +@@ -121,7 +121,7 @@ + + /* Print error message directly to the tty. This avoids Bad Things + happening if stderr is redirected. */ +- fd = open (_PATH_TTY, O_WRONLY); ++ fd = open (_PATH_TTY, O_WRONLY, 0); + if (fd != -1) + { + static const char msg2[] = " terminated\n"; diff --git a/SOURCES/gmp-6.1.2.tar.gz b/SOURCES/gmp-6.1.2.tar.gz Binary files differnew file mode 100644 index 0000000..ed0c732 --- /dev/null +++ b/SOURCES/gmp-6.1.2.tar.gz diff --git a/SOURCES/isl-0.18.tar.bz2 b/SOURCES/isl-0.18.tar.bz2 Binary files differnew file mode 100644 index 0000000..4c8296c --- /dev/null +++ b/SOURCES/isl-0.18.tar.bz2 diff --git a/SOURCES/mpc-1.0.3.tar.gz b/SOURCES/mpc-1.0.3.tar.gz Binary files differnew file mode 100644 index 0000000..3da140d --- /dev/null +++ b/SOURCES/mpc-1.0.3.tar.gz diff --git a/SOURCES/mpfr-3.1.6.tar.bz2 b/SOURCES/mpfr-3.1.6.tar.bz2 Binary files differnew file mode 100644 index 0000000..2b961e0 --- /dev/null +++ b/SOURCES/mpfr-3.1.6.tar.bz2 |