summaryrefslogtreecommitdiff
path: root/target/linux/patches/4.4.79/use-libgcc-for-sh.patch
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-07-30 10:20:08 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2017-07-30 10:20:17 +0200
commite89670d5b776de9e51f76fd98976cd8b2989eb55 (patch)
tree0441a35553211bd162e100beac91a22c42dc73e2 /target/linux/patches/4.4.79/use-libgcc-for-sh.patch
parentbbeb525fbd343baaa7fe35967e8aadfdaafa3fa9 (diff)
linux: update to 4.4.79, add back required patches
Diffstat (limited to 'target/linux/patches/4.4.79/use-libgcc-for-sh.patch')
-rw-r--r--target/linux/patches/4.4.79/use-libgcc-for-sh.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/target/linux/patches/4.4.79/use-libgcc-for-sh.patch b/target/linux/patches/4.4.79/use-libgcc-for-sh.patch
new file mode 100644
index 000000000..6420219b0
--- /dev/null
+++ b/target/linux/patches/4.4.79/use-libgcc-for-sh.patch
@@ -0,0 +1,29 @@
+diff -Nur linux-4.1.13.orig/arch/sh/Makefile linux-4.1.13/arch/sh/Makefile
+--- linux-4.1.13.orig/arch/sh/Makefile 2015-11-09 23:34:10.000000000 +0100
++++ linux-4.1.13/arch/sh/Makefile 2015-12-06 19:59:31.000000000 +0100
+@@ -200,7 +206,9 @@
+ KBUILD_CFLAGS += -fasynchronous-unwind-tables
+ endif
+
+-libs-$(CONFIG_SUPERH32) := arch/sh/lib/ $(libs-y)
++LIBGCC = $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libgcc.a)
++
++libs-$(CONFIG_SUPERH32) := arch/sh/lib/ $(libs-y) $(LIBGCC)
+ libs-$(CONFIG_SUPERH64) := arch/sh/lib64/ $(libs-y)
+
+ BOOT_TARGETS = uImage uImage.bz2 uImage.gz uImage.lzma uImage.xz uImage.lzo \
+diff -Nur linux-4.1.13.orig/arch/sh/lib/Makefile linux-4.1.13/arch/sh/lib/Makefile
+--- linux-4.1.13.orig/arch/sh/lib/Makefile 2015-11-09 23:34:10.000000000 +0100
++++ linux-4.1.13/arch/sh/lib/Makefile 2015-12-06 19:59:14.000000000 +0100
+@@ -5,11 +5,6 @@
+ lib-y = delay.o memmove.o memchr.o \
+ checksum.o strlen.o div64.o div64-generic.o
+
+-# Extracted from libgcc
+-obj-y += movmem.o ashldi3.o ashrdi3.o lshrdi3.o \
+- ashlsi3.o ashrsi3.o ashiftrt.o lshrsi3.o \
+- udiv_qrnnd.o
+-
+ udivsi3-y := udivsi3_i4i-Os.o
+
+ ifneq ($(CONFIG_CC_OPTIMIZE_FOR_SIZE),y)