Created
December 18, 2013 18:45
-
-
Save jkent/8027585 to your computer and use it in GitHub Desktop.
Fix for running debian wheezy using FriendlyARM's 2.6.35.7 kernel.
Also fixes build with Android arm-eabi-4.6 toolchain
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ru linux-2.6.35.7.orig/arch/arm/include/asm/unistd.h linux-2.6.35.7/arch/arm/include/asm/unistd.h | |
--- linux-2.6.35.7.orig/arch/arm/include/asm/unistd.h 2011-08-07 23:52:04.000000000 -0500 | |
+++ linux-2.6.35.7/arch/arm/include/asm/unistd.h 2013-12-18 11:50:52.123791000 -0600 | |
@@ -392,6 +392,7 @@ | |
#define __NR_rt_tgsigqueueinfo (__NR_SYSCALL_BASE+363) | |
#define __NR_perf_event_open (__NR_SYSCALL_BASE+364) | |
#define __NR_recvmmsg (__NR_SYSCALL_BASE+365) | |
+#define __NR_accept4 (__NR_SYSCALL_BASE+366) | |
/* | |
* The following SWIs are ARM private. | |
diff -ru linux-2.6.35.7.orig/arch/arm/kernel/calls.S linux-2.6.35.7/arch/arm/kernel/calls.S | |
--- linux-2.6.35.7.orig/arch/arm/kernel/calls.S 2011-08-07 23:52:06.000000000 -0500 | |
+++ linux-2.6.35.7/arch/arm/kernel/calls.S 2013-12-18 11:50:28.911791000 -0600 | |
@@ -375,6 +375,7 @@ | |
CALL(sys_rt_tgsigqueueinfo) | |
CALL(sys_perf_event_open) | |
/* 365 */ CALL(sys_recvmmsg) | |
+ CALL(sys_accept4) | |
#ifndef syscalls_counted | |
.equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls | |
#define syscalls_counted | |
diff -ru linux-2.6.35.7.orig/Makefile linux-2.6.35.7/Makefile | |
--- linux-2.6.35.7.orig/Makefile 2011-08-17 06:54:21.000000000 -0500 | |
+++ linux-2.6.35.7/Makefile 2013-12-18 12:16:23.231791000 -0600 | |
@@ -582,6 +582,8 @@ | |
# conserve stack if available | |
KBUILD_CFLAGS += $(call cc-option,-fconserve-stack) | |
+KBUILD_CFLAGS += $(call cc-option,-Wno-unused-but-set-variable) | |
+ | |
# Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments | |
# But warn user when we do so | |
warn-assign = \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment