summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--SOURCES/gcc72-vxworks55-config.patch11
-rw-r--r--SOURCES/gcc72-vxworks55-libgcc-config.patch11
3 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a090f09..6405e4e 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,10 @@ prepare:
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/gcc-7.2.0 && \
+ patch -p1 < $(SRCDIR)/gcc72-vxworks55-config.patch
+ cd $(CWD)/unpacked/gcc-7.2.0 && \
+ patch -p1 < $(SRCDIR)/gcc72-vxworks55-libgcc-config.patch
cd $(CWD)/unpacked && \
tar -zxf $(SRCDIR)/gmp-6.1.2.tar.gz
# cd $(CWD)/unpacked && \
diff --git a/SOURCES/gcc72-vxworks55-config.patch b/SOURCES/gcc72-vxworks55-config.patch
new file mode 100644
index 0000000..8015846
--- /dev/null
+++ b/SOURCES/gcc72-vxworks55-config.patch
@@ -0,0 +1,11 @@
+--- gcc-7.2.0/gcc/config.gcc.orig 2017-11-03 09:57:18.704311082 +0100
++++ gcc-7.2.0/gcc/config.gcc 2017-11-03 09:57:25.924298679 +0100
+@@ -2506,7 +2506,7 @@
+ ;;
+ esac
+ ;;
+-powerpc-wrs-vxworks|powerpc-wrs-vxworksae|powerpc-wrs-vxworksmils)
++powerpc-wrs-vxworks|powerpc-wrs-vxworks55|powerpc-wrs-vxworksae|powerpc-wrs-vxworksmils)
+ tm_file="${tm_file} elfos.h freebsd-spec.h rs6000/sysv4.h"
+ tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm rs6000/t-vxworks"
+ extra_options="${extra_options} rs6000/sysv4.opt"
diff --git a/SOURCES/gcc72-vxworks55-libgcc-config.patch b/SOURCES/gcc72-vxworks55-libgcc-config.patch
new file mode 100644
index 0000000..5e7b7a9
--- /dev/null
+++ b/SOURCES/gcc72-vxworks55-libgcc-config.patch
@@ -0,0 +1,11 @@
+--- gcc-7.2.0/libgcc/config.host.orig 2017-11-03 10:14:17.078498523 +0100
++++ gcc-7.2.0/libgcc/config.host 2017-11-03 10:14:31.590471848 +0100
+@@ -1078,7 +1078,7 @@
+ extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
+ md_unwind_header=rs6000/linux-unwind.h
+ ;;
+-powerpc-wrs-vxworks|powerpc-wrs-vxworksae|powerpc-wrs-vxworksmils)
++powerpc-wrs-vxworks|powerpc-wrs-vxworks55|powerpc-wrs-vxworksae|powerpc-wrs-vxworksmils)
+ tmake_file="$tmake_file rs6000/t-ppccomm rs6000/t-savresfgpr t-fdpbit"
+ ;;
+ powerpc-*-lynxos*)