Automatically patch linux backports to build against linux-okreader

This commit is contained in:
Cosmin Gorgovan 2016-01-05 11:15:56 +00:00
parent f5eefd5f78
commit c34e0f1f39
2 changed files with 14 additions and 0 deletions

View File

@ -86,6 +86,7 @@ compile_linux_modules() {
make -j$(($(nproc)+1)) modules make -j$(($(nproc)+1)) modules
cd ../../ cd ../../
patch -N -p1 < src/linux_backports.patch
cd src/backports-3.14.22-1 cd src/backports-3.14.22-1
KLIB_BUILD=../linux/ make defconfig-brcmfmac KLIB_BUILD=../linux/ make defconfig-brcmfmac
KLIB_BUILD=../linux/ make -j$(($(nproc)+1)) KLIB_BUILD=../linux/ make -j$(($(nproc)+1))

13
src/linux_backports.patch Normal file
View File

@ -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 */