summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-07-25 02:51:09 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-07-25 02:51:09 +0200
commit0739eb348b657d96db7db56de19290b3cafaa18f (patch)
tree7176df4ad5cc32de1ca65302eb5c39b3b0c0d35a
parent2192c1d959f1f98a88bed9e9783598ceb2b6eaa8 (diff)
m68k: add some patches for newer gcc/linux
-rw-r--r--target/linux/patches/4.6.4/macsonic.patch11
-rw-r--r--toolchain/gcc/patches/6.1.0/fix-m86k-libgcc.patch11
2 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/patches/4.6.4/macsonic.patch b/target/linux/patches/4.6.4/macsonic.patch
new file mode 100644
index 000000000..75a6fcad2
--- /dev/null
+++ b/target/linux/patches/4.6.4/macsonic.patch
@@ -0,0 +1,11 @@
+diff -Nur linux-4.4.6.orig/drivers/net/ethernet/natsemi/Kconfig linux-4.4.6/drivers/net/ethernet/natsemi/Kconfig
+--- linux-4.4.6.orig/drivers/net/ethernet/natsemi/Kconfig 2016-03-16 16:43:17.000000000 +0100
++++ linux-4.4.6/drivers/net/ethernet/natsemi/Kconfig 2016-03-18 10:43:34.000000000 +0100
+@@ -18,6 +18,7 @@
+ config MACSONIC
+ tristate "Macintosh SONIC based ethernet (onboard, NuBus, LC, CS)"
+ depends on MAC
++ select BITREVERSE
+ ---help---
+ Support for NatSemi SONIC based Ethernet devices. This includes
+ the onboard Ethernet in many Quadras as well as some LC-PDS,
diff --git a/toolchain/gcc/patches/6.1.0/fix-m86k-libgcc.patch b/toolchain/gcc/patches/6.1.0/fix-m86k-libgcc.patch
new file mode 100644
index 000000000..e8481d549
--- /dev/null
+++ b/toolchain/gcc/patches/6.1.0/fix-m86k-libgcc.patch
@@ -0,0 +1,11 @@
+diff -Nur gcc-4.9.3.orig/libgcc/config/m68k/linux-atomic.c gcc-4.9.3/libgcc/config/m68k/linux-atomic.c
+--- gcc-4.9.3.orig/libgcc/config/m68k/linux-atomic.c 2014-01-02 23:25:22.000000000 +0100
++++ gcc-4.9.3/libgcc/config/m68k/linux-atomic.c 2015-11-29 14:42:10.566143595 +0100
+@@ -33,7 +33,6 @@
+ using the kernel helper defined below. There is no support for
+ 64-bit operations yet. */
+
+-#include <asm/unistd.h>
+ #include <stdbool.h>
+
+ #ifndef __NR_atomic_cmpxchg_32