From c34e0f1f3962b0aa677a25f5f4af657aa7ee8758 Mon Sep 17 00:00:00 2001 From: Cosmin Gorgovan Date: Tue, 5 Jan 2016 11:15:56 +0000 Subject: [PATCH] Automatically patch linux backports to build against linux-okreader --- build.sh | 1 + src/linux_backports.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 src/linux_backports.patch diff --git a/build.sh b/build.sh index f86f069..438baef 100755 --- a/build.sh +++ b/build.sh @@ -86,6 +86,7 @@ compile_linux_modules() { make -j$(($(nproc)+1)) modules cd ../../ + patch -N -p1 < src/linux_backports.patch cd src/backports-3.14.22-1 KLIB_BUILD=../linux/ make defconfig-brcmfmac KLIB_BUILD=../linux/ make -j$(($(nproc)+1)) diff --git a/src/linux_backports.patch b/src/linux_backports.patch new file mode 100644 index 0000000..7ff89b6 --- /dev/null +++ b/src/linux_backports.patch @@ -0,0 +1,13 @@ +--- a/src/backports-3.14.22-1/backport-include/linux/compat.h ++++ b/src/backports-3.14.22-1/backport-include/linux/compat.h +@@ -14,8 +14,8 @@ + #endif + + #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0)) +-#define compat_put_timespec LINUX_BACKPORT(compat_put_timespec) +-extern int compat_put_timespec(const struct timespec *, void __user *); ++//#define compat_put_timespec LINUX_BACKPORT(compat_put_timespec) ++//extern int compat_put_timespec(const struct timespec *, void __user *); + #endif + + #endif /* __BACKPORT_COMPAT_H */